2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00
Files
vue-select/docs/.vitepress/components/LimitSelectionQuantity.vue
T
Jeff Sagal 96ff08406c vitepress wip
mostly working, feeling like vuepress should still be considered
2022-02-23 10:25:36 -08: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>