king
2024-10-11 8e003c1a94d26cc4d477e7aa03593ccb4d7e6c61
src/templates/zshare/editTable/index.jsx
@@ -385,14 +385,14 @@
  }
  clear = () => {
    const _this = this
    const that = this
    
    confirm({
      title: '确定清空列表吗?',
      content: '',
      onOk() {
        _this.setState({ data: [], editingKey: '' }, () => {
          _this.props.onChange([])
        that.setState({ data: [], editingKey: '' }, () => {
          that.props.onChange([])
        })
      },
      onCancel() {}