refactor(功能用例): 优化展开子节点
This commit is contained in:
parent
dd578a6633
commit
949ede28f7
|
@ -177,7 +177,8 @@ export function handleRenderNode(node: MinderJsonNode, renderNode: MinderJsonNod
|
|||
export function expendNodeAndChildren(node: MinderJsonNode) {
|
||||
if (node.children?.length) {
|
||||
node.expand();
|
||||
handleRenderNode(node, node.children);
|
||||
node.renderTree();
|
||||
node.layout();
|
||||
node.children?.forEach((child) => expendNodeAndChildren(child));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue