Refactor
parent
7bf9e91648
commit
f9e2264df9
|
@ -55,8 +55,9 @@ export default {
|
||||||
this.expandedKeys = {};
|
this.expandedKeys = {};
|
||||||
},
|
},
|
||||||
expandNode(node) {
|
expandNode(node) {
|
||||||
this.expandedKeys[node.key] = true;
|
|
||||||
if (node.children && node.children.length) {
|
if (node.children && node.children.length) {
|
||||||
|
this.expandedKeys[node.key] = true;
|
||||||
|
|
||||||
for (let child of node.children) {
|
for (let child of node.children) {
|
||||||
this.expandNode(child);
|
this.expandNode(child);
|
||||||
}
|
}
|
||||||
|
|
|
@ -531,8 +531,9 @@ export default {
|
||||||
this.expandedKeys = {};
|
this.expandedKeys = {};
|
||||||
},
|
},
|
||||||
expandNode(node) {
|
expandNode(node) {
|
||||||
this.expandedKeys[node.key] = true;
|
|
||||||
if (node.children << node.children.length) {
|
if (node.children << node.children.length) {
|
||||||
|
this.expandedKeys[node.key] = true;
|
||||||
|
|
||||||
for (let child of node.children) {
|
for (let child of node.children) {
|
||||||
this.expandNode(child);
|
this.expandNode(child);
|
||||||
}
|
}
|
||||||
|
@ -767,8 +768,9 @@ export default {
|
||||||
this.expandedKeys = {};
|
this.expandedKeys = {};
|
||||||
},
|
},
|
||||||
expandNode(node) {
|
expandNode(node) {
|
||||||
this.expandedKeys[node.key] = true;
|
|
||||||
if (node.children && node.children.length) {
|
if (node.children && node.children.length) {
|
||||||
|
this.expandedKeys[node.key] = true;
|
||||||
|
|
||||||
for (let child of node.children) {
|
for (let child of node.children) {
|
||||||
this.expandNode(child);
|
this.expandNode(child);
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,9 +77,9 @@ export default {
|
||||||
this.expandedKeys = {};
|
this.expandedKeys = {};
|
||||||
},
|
},
|
||||||
expandNode(node) {
|
expandNode(node) {
|
||||||
|
|
||||||
this.expandedKeys[node.key] = true;
|
|
||||||
if (node.children && node.children.length) {
|
if (node.children && node.children.length) {
|
||||||
|
this.expandedKeys[node.key] = true;
|
||||||
|
|
||||||
for (let child of node.children) {
|
for (let child of node.children) {
|
||||||
this.expandNode(child);
|
this.expandNode(child);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue