mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-07 07:12:23 +03:00
22 lines
358 B
Vue
22 lines
358 B
Vue
<template>
|
|
<v-select
|
|
multiple
|
|
placeholder="Choose up to 3 books!"
|
|
label="title"
|
|
v-model="selected"
|
|
:options="books"
|
|
:selectable="() => selected.length < 3"
|
|
/>
|
|
</template>
|
|
<script>
|
|
import books from '../data/books';
|
|
export default {
|
|
data() {
|
|
return { selected: [] }
|
|
},
|
|
computed: {
|
|
books: () => books,
|
|
}
|
|
}
|
|
</script>
|