chore(SelectCustom): add multiple prop

This commit is contained in:
Benjamin Canac
2022-04-28 12:44:18 +02:00
parent 0f25820a49
commit 5de5c07203

View File

@@ -1,6 +1,7 @@
<template>
<Listbox
:model-value="modelValue"
:multiple="multiple"
as="div"
:class="wrapperClass"
@update:model-value="$emit('update:modelValue', $event)"
@@ -58,7 +59,7 @@ import $ui from '#build/ui'
const props = defineProps({
modelValue: {
type: [String, Number, Object],
type: [String, Number, Object, Array],
default: ''
},
options: {
@@ -69,6 +70,10 @@ const props = defineProps({
type: Boolean,
default: false
},
multiple: {
type: Boolean,
default: false
},
placeholder: {
type: String,
default: 'Select an option'