import { storiesOf } from '@storybook/vue' import { defineComponent, ref, computed, onMounted } from '@vue/composition-api' import { useSelect } from '../index' import md from '../docs/select.md' const Count = defineComponent({ template: `
EXAMPLE - select
options: {{options}}
selected: {{selected}}
input:

`, setup() { let { options, selected } = useSelect("id") const keyChange = function (keyword) { options.value = [ { id: 1 }, { id: 2 }, { id: 3 }, ] } return { keyChange, options, selected } } }) storiesOf('UI|useSelect', module) .add('select', () => Count, { readme: { sidebar: md } })