chore: 需要监听使用箭头展开的情况 否则展开/折叠的数据不一致

This commit is contained in:
dap 2024-10-07 11:19:14 +08:00
parent efa7770c1d
commit 8f8d3455d6
2 changed files with 10 additions and 0 deletions

View File

@ -82,6 +82,11 @@ const [BasicTable, tableApi] = useVbenVxeGrid({
tableApi.grid.setTreeExpand(row, !isExpanded);
row.expand = !isExpanded;
},
// 使 /
toggleTreeExpand: (e: any) => {
const { row = {}, expanded } = e;
row.expand = expanded;
},
},
});
const [DeptDrawer, drawerApi] = useVbenDrawer({

View File

@ -79,6 +79,11 @@ const [BasicTable, tableApi] = useVbenVxeGrid({
tableApi.grid.setTreeExpand(row, !isExpanded);
row.expand = !isExpanded;
},
// 使 /
toggleTreeExpand: (e: any) => {
const { row = {}, expanded } = e;
row.expand = expanded;
},
},
});
const [MenuDrawer, drawerApi] = useVbenDrawer({