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

getNodes doesn't working #179

Open justmumu opened 4 years ago

justmumu commented 4 years ago

Hi,

When I use getNodes function like this.treeRefs.getNodes({title:"justrying"}, this.treeData, false) It doesn't return any node. It return a valid data only if I filter root node's information.

But I expect it should return any children if I filter with child title for example.

halower commented 4 years ago

this.$refs.tree1.searchNodes(node =>new RegExp(this.searchword, 'i').test(node.title))