mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
chore(SelectCustom): add multiple prop
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user