riophae / vue-treeselect

A multi-select component with nested options support for Vue.js
https://vue-treeselect.js.org/
MIT License
2.91k stars 509 forks source link

How, when clicking on the parent, insert not the parent, but all the children? #444

Open pl-ekleft opened 3 years ago

pl-ekleft commented 3 years ago

I cannot figure out how to select the parent and all children.

Example:

- [x] a
      - [x] aa
      - [x] ab
- [ ] b
      - [x] ba
      - [ ] bb

output ["aa", "ab", "ba"] or ["a", "aa", "ab", "ba"]

Is it even possible? Is there a parameter or option?