2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00
Files
vue-select/docs/.vuepress/components/CreateOption.vue
T
2020-03-20 08:55:06 -07:00

27 lines
416 B
Vue

<template>
<div>
<v-select
v-model="selected"
multiple
taggable
:options="options"
:create-option="text => ({ label: text, isTag: true })"
/>
<pre><code>selected: {{ selected }}</code></pre>
</div>
</template>
<script>
export default {
data: () => ({
selected: [],
options: [
{
label: "Vue",
isTag: false
}
]
})
};
</script>