chore: batch start/stop models

This commit is contained in:
jialin
2025-02-17 13:49:55 +08:00
parent 8f7968302d
commit 68a62d689c
10 changed files with 93 additions and 15 deletions
+5 -2
View File
@@ -62,11 +62,14 @@ const SealTable: React.FC<SealTableProps & { pagination: PaginationProps }> = (
const handleSelectAllChange = (e: any) => {
if (e.target.checked) {
rowSelection?.onChange(props.dataSource.map((record) => record[rowKey]));
rowSelection?.onChange(
props.dataSource.map((record) => record[rowKey]),
props.dataSource
);
setSelectAll(true);
setIndeterminate(false);
} else {
rowSelection?.onChange([]);
rowSelection?.onChange([], []);
setSelectAll(false);
setIndeterminate(false);
}