liquor-tree
liquor-tree copied to clipboard
tree List UI change select function
hello! this is good lib!!
ex)
[Tree Structure]
▼ 1
....▼1-1
.......▶1-1-1 <- selected
....▶1-2
....▶1-3
[i want]
this.$refs.tree.find({text: 'aaa' }).select(); or this.$refs.tree.find({text: 'aaa' }).select(true);
// let children= this.$refs.tree.selected(); // let parent = this.$refs.tree.find({text:children.parent.text}); // parent.select();
[i want ui]
▼ 1
....▼1-1 <- selected
.......▶1-1-1
....▶1-2
....▶1-3
but I didn't solve it.
:D
oh... pardon me Oh, I got it.
[Solution] this.$nextTick( () => { this.$refs.tree.find({text: 'aaa' }).select(); })