优化代码:删除render类的unexpandAllNode,expandToLevel方法中重置_node属性的逻辑
This commit is contained in:
parent
ddbde0141a
commit
e732415aa3
@ -1230,7 +1230,6 @@ class Render {
|
|||||||
this.renderTree,
|
this.renderTree,
|
||||||
null,
|
null,
|
||||||
(node, parent, isRoot) => {
|
(node, parent, isRoot) => {
|
||||||
node._node = null
|
|
||||||
if (!isRoot) {
|
if (!isRoot) {
|
||||||
node.data.expand = false
|
node.data.expand = false
|
||||||
}
|
}
|
||||||
@ -1251,7 +1250,6 @@ class Render {
|
|||||||
this.renderTree,
|
this.renderTree,
|
||||||
null,
|
null,
|
||||||
(node, parent, isRoot, layerIndex) => {
|
(node, parent, isRoot, layerIndex) => {
|
||||||
node._node = null
|
|
||||||
node.data.expand = layerIndex < level
|
node.data.expand = layerIndex < level
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user