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
26 lines
583 B
Vue
26 lines
583 B
Vue
<template>
|
|
<custom-select :options="['Vue.js', 'React', 'Angular']" />
|
|
</template>
|
|
|
|
<script>
|
|
import Vue from 'vue';
|
|
import vSelect from '../../../src/components/Select';
|
|
|
|
const components = {
|
|
Deselect: Vue.component('Deselect', {
|
|
render: (createElement) => createElement('button', '❌'),
|
|
}),
|
|
OpenIndicator: Vue.component('OpenIndicator', {
|
|
render: (createElement) => createElement('span', '🔽'),
|
|
}),
|
|
};
|
|
|
|
const mySelect = {...vSelect};
|
|
|
|
mySelect.props.components.default = () => components;
|
|
|
|
export default {
|
|
components: {'custom-select': mySelect}
|
|
}
|
|
</script>
|