Одиночный выбор:
<multiselect v-model="value" :options="options" :custom-label="nameWithLang" placeholder="Select one" label="name" track-by="name"></multiselect>
data: () => ({
value: {name: 'MyValue', text: 'MyText'},
options: [{name: 'MyValue', text: 'MyText'}]
}),
methods: {
methods: {
nameWithLang ({ name, text }) {
return `${name} — [${text}]`
}
}
}
Множественный выбор:
data: () => ({
value: [{name: 'MyValue', text: 'MyText'}],
options: [{name: 'MyValue', text: 'MyText'}]
})