vue-select
Version:
A native Vue.js component that provides similar functionality to Select2 without the overhead of jQuery.
16 lines (13 loc) • 472 B
Markdown
select` emits the `input` event any time the internal `value` is changed.
This is the same event that allow the for the `v-model` syntax. When using
Vuex for state management, you can use the `input` event to dispatch an
action, or trigger a mutation.
```html
<v-select
@input="myAction"
:options="$store.state.options"
:value="$store.state.selected"
></v-select>
```
[](codepen://sagalbot/aJQJyp?height=500)
`vue-