king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
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() {}