Skip to content

Instantly share code, notes, and snippets.

@cn-2k
Created December 28, 2021 18:14
Show Gist options
  • Save cn-2k/e97bc50ef8351e981241abeaf1d8944a to your computer and use it in GitHub Desktop.
Save cn-2k/e97bc50ef8351e981241abeaf1d8944a to your computer and use it in GitHub Desktop.
const multiValue = ref()
const groups = reactive([])
groups = datas.roles.map((item) => ({
value: item.name,
label: item.name,
}))
<p>{{ multiValue }}</p>
<multiselect
v-model="multiValue"
mode="tags"
label="label"
:searchable="true"
:options="groups"
option-label="label"
value-prop="label"
:track-by="'label'"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment