【菜单列表】解决子集过多导致展开卡顿

This commit is contained in:
神仙都没用 2024-08-22 16:26:22 +08:00
parent be311cdfb5
commit beb4538f61

View File

@ -410,14 +410,13 @@ function onData(list: Item[]) {
//
function onChildrenLoad(row: Item, treeNode: unknown, resolve: (data: Item[]) => void) {
resolve(row._children!);
resolve(row._children || []);
}
//
function onRowClick(row: Item) {
if (row._children) {
row.children = row._children;
Table.value?.toggleRowExpansion(row);
Table.value?.Table.store.loadOrToggle(row);
}
}