mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-16 09:10:33 +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
25 lines
395 B
Vue
25 lines
395 B
Vue
<template>
|
|
<div>
|
|
<v-select
|
|
:options="['Canada', 'United States']"
|
|
:components="{Deselect}"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import Vue from 'vue';
|
|
|
|
export default {
|
|
computed: {
|
|
Deselect () {
|
|
return Vue.component('Deselect', {
|
|
render (createElement) {
|
|
return createElement('button', 'Clear');
|
|
},
|
|
});
|
|
},
|
|
},
|
|
};
|
|
</script>
|