0.7.10-alpha.0 • Published 1 year ago
@gaopeng123/hooks.use-antd-table-selection v0.7.10-alpha.0
useAntdTableSelection
antd表格处理多选逻辑
Usage
const [{selectedRows, selectedRowKeys, rowSelection}, {clearSelected}] = useAntdSelection({idKey: 'userId', defaultSelectedRowKeys: []});
return (
<ProTable<TableListItem>
actionRef={ref}
columns={columns}
// @ts-ignore
rowSelection={rowSelection}
...
/>
);
0.7.9-alpha.2
1 year ago
0.7.9
1 year ago
0.7.10-alpha.0
1 year ago
0.7.8
1 year ago
0.7.7
1 year ago
0.7.6
2 years ago
0.7.2
2 years ago
0.7.1
2 years ago
0.7.0
2 years ago