mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-10 07:52:23 +03:00
29 lines
465 B
Vue
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>
|