king
2021-08-08 5ed69b4bb3416ec61abf424375af8650864dbdfa
2021-08-08
10个文件已修改
67 ■■■■ 已修改文件
src/components/imgScale/index.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/mobshell/index.jsx 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pc/menushell/index.jsx 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pc/quotecomponent/index.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/share/normalTable/index.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.jsx 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/modalconfig/dragelement/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/columncomponent/colspanform/index.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/fieldscomponent/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/imgScale/index.jsx
@@ -39,12 +39,14 @@
    if (url || !src) return
    let index = 0
    let _list = []
    if (list.length > 0) {
    if (list.length > 1) {
      index = list.indexOf(src)
      _list = list
    }
    this.setState({url: src, className: 'opening', list, scale: 1, rotate: 0, index})
    this.setState({url: src, className: 'opening', list: _list, scale: 1, rotate: 0, index})
    setTimeout(() => {
      this.setState({className: 'open'})
    }, 300)
src/mob/mobshell/index.jsx
@@ -76,6 +76,8 @@
        return
      }
      let style = null
      if (item.component === 'search') { // 搜索组件不可重复添加
        if (cards.filter(card => card.type === 'search').length > 0) {
          notification.warning({
@@ -94,6 +96,9 @@
          })
          return
        }
        if (!menu.style.paddingBottom) {
          style = {...menu.style, paddingBottom: '50px'}
        }
      } else if (item.component === 'topbar') {
        if (cards.filter(card => card.type === 'topbar').length > 0) {
          notification.warning({
@@ -102,6 +107,9 @@
            duration: 5
          })
          return
        }
        if (!menu.style.paddingTop) {
          style = {...menu.style, paddingTop: '50px'}
        }
      }
@@ -177,7 +185,11 @@
        _cards.push(Navbar)
      }
      handleList({...menu, components: _cards})
      if (style) {
        handleList({...menu, style, components: _cards})
      } else {
        handleList({...menu, components: _cards})
      }
      setCards(_cards)
    }
  })
src/pc/menushell/index.jsx
@@ -76,6 +76,8 @@
        return
      }
      let style = null
      if (item.component === 'search') { // 搜索组件不可重复添加
        if (cards.filter(card => card.type === 'search').length > 0) {
          notification.warning({
@@ -93,6 +95,10 @@
            duration: 5
          })
          return
        }
        if (!menu.style.paddingTop) {
          style = {...menu.style, paddingTop: '50px'}
        }
      }
@@ -149,7 +155,11 @@
      const { index: overIndex } = findCard(`${targetId}`)
      const _cards = update(cards, { $splice: [[overIndex + 1, 0, newcard]] })
      handleList({...menu, components: _cards})
      if (style) {
        handleList({...menu, style, components: _cards})
      } else {
        handleList({...menu, components: _cards})
      }
      setCards(_cards)
    }
  })
src/pc/quotecomponent/index.jsx
@@ -84,6 +84,12 @@
        config.components.unshift(_config)
        if (sessionStorage.getItem('appType') !== 'pc' && !config.style.paddingBottom) {
          config.style.paddingBottom = '50px'
        } else if (sessionStorage.getItem('appType') === 'pc' && !config.style.paddingTop) {
          config.style.paddingTop = '50px'
        }
        this.setState({
          visible: false
        })
src/tabviews/custom/components/share/normalTable/index.jsx
@@ -284,7 +284,10 @@
        <div>
          {photos.map((url, i) => (
            <Col key={i} span={cols}>
              <div className="ant-mk-picture" style={{paddingTop, backgroundImage: `url('${url}')`}}></div>
              <div className="ant-mk-picture" onClick={() => {
                if (col.scale !== 'true') return
                MKEmitter.emit('mkImageScale', url, photos)
              }} style={{paddingTop, backgroundImage: `url('${url}')`}}></div>
            </Col>
          ))}
        </div>
src/tabviews/zshare/normalTable/index.jsx
@@ -555,8 +555,9 @@
        <div className="picture-col">
          {photos && photos.map((url, i) => {
            if (item.scale === 'true') {
              return <img style={{maxHeight: maxHeight}} className="image-scale" onClick={() => {
                MKEmitter.emit('mkImageScale', url, photos.length > 1 ? photos : '')
              return <img style={{maxHeight: maxHeight}} className="image-scale" onClick={(e) => {
                e.stopPropagation()
                MKEmitter.emit('mkImageScale', url, photos)
              }} key={`${i}`} src={url} alt=""/>
            } else {
              return <img style={{maxHeight: maxHeight}} key={`${i}`} src={url} alt=""/>
@@ -870,8 +871,9 @@
          <div className="content-fence-top" style={images[0] ? {textAlign: images[0].align} : null}>
            {images.map((_img, index) => {
              if (_img.scale) {
                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={() => {
                  MKEmitter.emit('mkImageScale', _img.url, images.length > 1 ? images.map(g => g.url) : '')
                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={(e) => {
                  e.stopPropagation()
                  MKEmitter.emit('mkImageScale', _img.url, images.map(g => g.url))
                }} key={`${index}`} src={_img.url} alt=""/>
              } else {
                return (<img style={{maxHeight: _img.maxHeight}} key={`${index}`} src={_img.url} alt=""/>)
@@ -892,7 +894,7 @@
            {images.map((_img, index) => {
              if (_img.scale) {
                return <img style={{maxHeight: _img.maxHeight}} className="image-scale" onClick={() => {
                  MKEmitter.emit('mkImageScale', _img.url, images.length > 1 ? images.map(g => g.url) : '')
                  MKEmitter.emit('mkImageScale', _img.url, images.map(g => g.url))
                }} key={`${index}`} src={_img.url} alt=""/>
              } else {
                return (<img style={{maxHeight: _img.maxHeight}} key={`${index}`} src={_img.url} alt=""/>)
src/tabviews/zshare/normalTable/index.scss
@@ -137,7 +137,7 @@
        .picture-col {
          img {
            max-width: 100%;
            display: block;
            display: inline-block;
          }
          img + img {
            margin-top: 10px;
src/templates/modalconfig/dragelement/index.scss
@@ -63,6 +63,9 @@
        line-height: 1.3;
        float: left;
      }
      .ant-btn + .field-name {
        float: none;
      }
      .ant-checkbox-group {
        line-height: 40px;
        .ant-checkbox-wrapper {
src/templates/sharecomponent/columncomponent/colspanform/index.jsx
@@ -187,9 +187,7 @@
                  }
                ]
              })(
                <Select
                  getPopupContainer={() => document.getElementById('columncolspan')}
                >
                <Select getPopupContainer={() => document.getElementById('columncolspan')} >
                  <Select.Option value="vertical">{this.props.dict['header.form.vertical']}</Select.Option>
                  <Select.Option value="horizontal">{this.props.dict['header.form.horizontal']}</Select.Option>
                  <Select.Option value="vertical2">{this.props.dict['header.form.vertical2']}</Select.Option>
src/templates/sharecomponent/fieldscomponent/index.scss
@@ -8,6 +8,9 @@
      .ant-empty {
        margin: 15vh 8px;
      }
      .ant-card-bordered {
        border: 1px solid #e8e8e8;
      }
    }
    .ant-modal-body::-webkit-scrollbar {
      width: 7px;