rowSelection: {
selectedRowKeys: this.selectedRowKeys,
onChange: this.onSelectChange,
getCheckboxProps: this.getCheckboxProps
},
getCheckboxProps(record) {
return {
props: {
defaultChecked: record.isSelected
}
};
},
//不过rowKey的需要是key rowKey="key"。不然选择回显时会错乱
网友评论