Fix:修复/快捷键能收起根节点的子节点的问题
This commit is contained in:
parent
1cfd50a42b
commit
fcdcda929c
@ -1553,7 +1553,7 @@ class Render {
|
|||||||
// 切换激活节点的展开状态
|
// 切换激活节点的展开状态
|
||||||
toggleActiveExpand() {
|
toggleActiveExpand() {
|
||||||
this.activeNodeList.forEach(node => {
|
this.activeNodeList.forEach(node => {
|
||||||
if (node.nodeData.children.length <= 0) {
|
if (node.nodeData.children.length <= 0 || node.isRoot) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.toggleNodeExpand(node)
|
this.toggleNodeExpand(node)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user