Merge pull request #446 from webzard-io/feat/arco

Feat/arco
This commit is contained in:
tanbowensg 2022-06-13 10:13:39 +08:00 committed by GitHub
commit e4a1ccf366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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[],