mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-13 08:32:26 +03:00
27 lines
416 B
Vue
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>
|