应用于vue
展开
Expand() {
debugger;
this.$nextTick(() => {
debugger;
for (var i = 0; i < this.$refs.tree.store._getAllNodes().length; i++) {
debugger;
this.$refs.tree.store._getAllNodes()[i].expanded = true;
}
});
},
收起
shrink() {
this.$nextTick(() => {
debugger;
for (var i = 0; i < this.$refs.tree.store._getAllNodes().length; i++) {
debugger;
this.$refs.tree.store._getAllNodes()[i].expanded = false;
}
});
},
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。