2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-10 07:52:23 +03:00
Files
vue-select/docs/.vuepress/components/LimitSelectionQuantity.vue
2021-08-01 12:30:50 -07:00

22 lines
358 B
Vue

<template>
<v-select
v-model="selected"
multiple
placeholder="Choose up to 3 books!"
label="title"
:options="books"
:selectable="() => selected.length < 3"
/>
</template>
<script>
import books from '../data/books'
export default {
data() {
return { selected: [] }
},
computed: {
books: () => books,
},
}
</script>