mirror of
https://github.com/tenrok/vue-select.git
synced 2026-05-20 03:09:36 +03:00
22 lines
371 B
Vue
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>
|