mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-21 10:27:44 +08:00
优化代码:删除render类的unexpandAllNode,expandToLevel方法中重置_node属性的逻辑
This commit is contained in:
parent
ddbde0141a
commit
e732415aa3
@ -1230,7 +1230,6 @@ class Render {
|
||||
this.renderTree,
|
||||
null,
|
||||
(node, parent, isRoot) => {
|
||||
node._node = null
|
||||
if (!isRoot) {
|
||||
node.data.expand = false
|
||||
}
|
||||
@ -1251,7 +1250,6 @@ class Render {
|
||||
this.renderTree,
|
||||
null,
|
||||
(node, parent, isRoot, layerIndex) => {
|
||||
node._node = null
|
||||
node.data.expand = layerIndex < level
|
||||
},
|
||||
null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user