优化代码:删除render类的unexpandAllNode,expandToLevel方法中重置_node属性的逻辑

This commit is contained in:
wanglin2 2023-10-15 14:50:12 +08:00
parent ddbde0141a
commit e732415aa3

View File

@ -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,