mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-13 08:32:26 +03:00
efc5093207
* implement API for overwriting child components * add test coverage * update documentation for Components & Styling * update docs * refactor API, update docs * remove the service worker * fix tests
30 lines
487 B
Vue
30 lines
487 B
Vue
<template>
|
|
<div>
|
|
<v-select
|
|
multiple
|
|
v-model="selected"
|
|
:options="['Canada', 'United States']"
|
|
:components="{Deselect}"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Vue from 'vue';
|
|
|
|
export default {
|
|
data: () => ({
|
|
selected: ['Canada']
|
|
}),
|
|
computed: {
|
|
Deselect () {
|
|
return Vue.component('Deselect', {
|
|
render (createElement) {
|
|
return createElement('button', 'Clear');
|
|
},
|
|
});
|
|
},
|
|
},
|
|
};
|
|
</script>
|