king
2024-02-03 06a670976e2145a10ea05207041d3cf3164cd380
src/menu/components/share/pastecomponent/index.jsx
@@ -114,6 +114,10 @@
        return
      }
      if (res.copyType === 'editcols') {
        res.copyType = 'cols'
      }
      let type = res.copyType
      let config = fromJS(this.props.config).toJS()
@@ -168,6 +172,9 @@
      } else if (type === 'cols') {
        config.cols = config.cols.filter(col => !col.origin)
        if ((config.subtype === 'normaltable' || config.subtype === 'editable') && res.cols.length === 1) {
          config.cols.push(...res.cols)
        } else {
        let keys = config.cols.map(col => (col.field || '$empty'))
        let cols = []
@@ -188,6 +195,7 @@
          config.cols.push(...cols)
        }
      }
      }
      this.props.updateConfig(config, type)
      this.setState({visible: false})