fix: upload a image can clear other message

This commit is contained in:
jialin
2024-10-17 16:06:38 +08:00
parent fbefb2014d
commit e10c5e28b5
12 changed files with 505 additions and 17 deletions
+6 -1
View File
@@ -11,10 +11,15 @@ export default function useTableRowSelection() {
setSelectedRowKeys([]);
};
const removeSelectedKey = (rowKey: React.Key) => {
setSelectedRowKeys((keys) => keys.filter((key) => key !== rowKey));
};
const rowSelection = {
selectedRowKeys,
clearSelections,
onChange: onSelectChange
onChange: onSelectChange,
removeSelectedKey
};
return rowSelection;