优化:插入子节点时自动展开

This commit is contained in:
wanglin2 2022-10-11 18:48:52 +08:00
parent 352711c871
commit e53c6cd559

View File

@ -446,6 +446,8 @@ class Render {
}, },
"children": [] "children": []
}) })
// 插入子节点时自动展开子节点
node.nodeData.data.expand = true
if (node.isRoot) { if (node.isRoot) {
node.initRender = true node.initRender = true
// this.mindMap.batchExecution.push('renderNode' + index, () => { // this.mindMap.batchExecution.push('renderNode' + index, () => {