Closed mithun-infodigita closed 2 years ago
<template> <v-select v-model="payment_methods_ids" :options="payment_methods" label="name" multiple placeholder="Select" class="payment_methods__select2" :reduce="(payment_method) => payment_method.id" > </v-select> </template> <script> import vSelect from "vue-select"; import "vue-select/dist/vue-select.css"; export default { components: { vSelect, }, data() { return { payment_methods: [ { id: 1, name: 'Master Card', }, { id: 2, name: 'Visa' , }, { id: 2, name: 'Paypal' , }, ], payment_methods_ids: [], }; }, }; </script>
https://stackoverflow.com/questions/51392719/set-initial-vuetify-v-select-value Please refer this link for default value hope it is useful