Tree select hierarchical component for vue 3
npm install @komgrip/vue3-treeselect> A multi-select component with nested options support for Vue 3. Thank to riophae and his sources and library for vue 2 taken as basis.
Breaking changes from his library:
* property value => modelValue
* event input => updated:modelValue
* Now use slots with
- Single & multiple select with nested options support
- Fuzzy matching
- Async searching
- Delayed loading (load data of deep level options only when needed)
- Keyboard support (navigate using Arrow Up & Arrow Down keys, select option using Enter key, etc.)
- Rich options & highly customizable
- Supports a wide range of browsers (see below)
- RTL support
Requires Vue 3.0+
It's recommended to install vue3-treeselect via npm, and build your app using a bundler like webpack.
``bash`
npm install --save @komgrip/vue3-treeselect
This example shows how to integrate vue3-treeselect with your Vue SFCs.
`vue
`
If you just don't want to use webpack or any other bundlers, you can simply include the standalone UMD build in your page. In this way, make sure Vue as a dependency is included before vue3-treeselect.
`html`
Note: please use a desktop browser since the website hasn't been optimized for mobile devices.
- Chrome
- Edge
- Firefox
- Safari
It should function well on IE9, but the style can be slightly broken due to the lack of support of some relatively new CSS features, such as transition and animation. Nevertheless it should look 90% same as on modern browsers.
You can open an issue.
1. Fork & clone the repo
2. Install dependencies by yarn or npm installnpm run dev
3. Check out a new branch
4. & hacknpm test` passes
5. Make sure
6. Push your changes & file a pull request
This project is inspired by vue-treeselect.
Special thanks go to their respective authors!
Some icons used in this project:
- "link" icon made by Smashicons is licensed under CC 3.0 BY
- "spinner" icon from SpinKit is licensed under the MIT License
- "caret" icon made by Dave Gandy is licensed under CC 3.0 BY
- "delete" icon made by Freepik is licensed under CC 3.0 BY
- "checkmark symbol" & "minus symbol" icons made by Catalin Fertu are licensed under CC 3.0 BY
Released under the MIT License.