:row-selection=“rowSelection“ 清除勾选复选框

rowSelection () {
  const { selectedRowKeys } = this; // 这一行
  return {
    selectedRowKeys, // 这一行必须加
    onChange: (selectedRowKeys, selectedRows) => {
      this.selectedRowKeys  = selectedRowKeys
      this.selectRows = selectedRows
    },

    getCheckboxProps: record => ({
      props: {
        name: record.id.toString()
      }
    })
  }
}

clead() {
this.selectedRowKeys = [],
this.selectRows= [],
this.handleSearch()
},

你可能感兴趣的:(java,前端,javascript)