diff --git a/packages/arco-lib/src/components/Table/Table.tsx b/packages/arco-lib/src/components/Table/Table.tsx index 4940b295..3e24fb27 100644 --- a/packages/arco-lib/src/components/Table/Table.tsx +++ b/packages/arco-lib/src/components/Table/Table.tsx @@ -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[],