riophae / vue-treeselect

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

Search and match word only show #534

Open Manojkr6637 opened 11 months ago

Manojkr6637 commented 11 months ago

vue-treeselect-0.4.0\src\mixins\treeselectMixin.js

====Add hero==== function match(enableFuzzyMatch, needle, haystack) { enableFuzzyMatch; // console.log('fuzzysearchfuzzysearch', enableFuzzyMatch, needle, haystack); // const dd = enableFuzzyMatch ? // fuzzysearch(needle, haystack) : // includes(haystack, needle) // console.log("dddddd====testing=", dd, enableFuzzyMatch) const sentence = haystack.toLowerCase(); return sentence.includes(needle.toLowerCase());

}