2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-20 03:09:36 +03:00
Files
vue-select/docs/components/LimitSelectionQuantity.vue
Jeff Sagal ae2eb99f86 wip
2021-07-28 15:56:54 -07:00

22 lines
371 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 "../assets/data/books.js";
export default {
data() {
return { selected: [] };
},
computed: {
books: () => books,
},
};
</script>