phphe / vue-draggable-nested-tree

Vue2 draggable tree component
https://hetree.phphe.com/
MIT License
344 stars 62 forks source link

manual update call to force the tree to refresh #88

Closed ben-roth closed 5 years ago

ben-roth commented 5 years ago

I have want to have a second method of selecting a nodes parent, however I want to trigger the tree to rebuild once I use this other method of changing a nodes parent. Is there any way to force the tree to rebuild based on information I am passing without using the traditional drag method?

Thanks!

phphe commented 5 years ago

I don't understand.

ben-roth commented 5 years ago

Basically I am changing the data the tree is using without using the drag method, is there a way to update the tree in the view manually via a change method or something like that?

phphe commented 5 years ago
data = tree.getPureData()

to trigger watch changed

ben-roth commented 5 years ago

Thanks!

scyuan commented 4 years ago

@ben-roth How do you solve it?