liquor-tree icon indicating copy to clipboard operation
liquor-tree copied to clipboard

tree List UI change select function

Open FactAttacker opened this issue 6 years ago • 1 comments

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

FactAttacker avatar May 16 '19 02:05 FactAttacker

oh... pardon me Oh, I got it.

[Solution] this.$nextTick( () => { this.$refs.tree.find({text: 'aaa' }).select(); })

FactAttacker avatar May 16 '19 02:05 FactAttacker