halower / vue-tree

tree and multi-select component based on Vue.js 2.0
https://github.com/halower/vue2-tree/blob/master/README.md
MIT License
935 stars 209 forks source link

Initialise checked state of nodes not working when using scoped property #196

Open amthekkel opened 3 years ago

amthekkel commented 3 years ago

How does one initialise pre selected checked items when using scoped=true. when building the tree data without scoped=true, nodes can be checked/selected using the selected/checked properties. however, when using scoped=true, the required nodes aren't selected. Any suggestion? tree_node

For this e.g., I would expect node-1-1-1 to be pre-selected. works without scoped property set, however, i need the ability to select parent without it selecting all leaf nodes, hence looking at the scoped property.