king
2021-09-24 95ccc1acc6d8ede1c839493e7aecc9c97fd34c8c
src/menu/components/table/normal-table/columns/index.jsx
@@ -513,6 +513,20 @@
    })
  }
  clear = () => {
    const _this = this
    confirm({
      content: '确定清空显示列吗?',
      onOk() {
        _this.setState({columns: []}, () => {
          _this.props.updatecolumn({..._this.props.config, cols: []})
        })
      },
      onCancel() {}
    })
  }
  componentDidMount () {
    MKEmitter.addListener('submitStyle', this.getStyle)
  }
@@ -555,6 +569,7 @@
          <Icon title="复制显示列" type="copy" onClick={this.copycolumn} />
          <MarkColumn columns={fields} type="line" marks={lineMarks} onSubmit={this.updateLineMarks} />
          <Icon title="同步字段集" type="file-sync" onClick={this.syncfield} />
          <Icon title="清空显示列" type="delete" onClick={this.clear}/>
        </div>
        <DndProvider>
          <Table