chore: 需要监听使用箭头展开的情况 否则展开/折叠的数据不一致
This commit is contained in:
parent
efa7770c1d
commit
8f8d3455d6
@ -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({
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user