2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00
Files
vue-select/docs/.vuepress/components/CreateOptionReduce.vue
T
2020-03-20 08:55:06 -07:00

29 lines
465 B
Vue

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