mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-01-06 16:34:25 +08:00
commit
e4a1ccf366
@ -487,6 +487,16 @@ export const Table = implementRuntimeComponent({
|
||||
checkCrossPage: checkCrossPage,
|
||||
// This option is required to achieve multi-selection across pages when customizing paging
|
||||
preserveSelectedRowKeys: useCustomPagination ? checkCrossPage : undefined,
|
||||
onSelect: (selected, record) => {
|
||||
mergeState({
|
||||
selectedRow: selected ? record : undefined,
|
||||
});
|
||||
},
|
||||
onSelectAll: () => {
|
||||
mergeState({
|
||||
selectedRow: undefined,
|
||||
});
|
||||
},
|
||||
onChange(selectedRowKeys, selectedRows) {
|
||||
mergeState({
|
||||
selectedRowKeys: selectedRowKeys as string[],
|
||||
|
Loading…
Reference in New Issue
Block a user