chore(SelectCustom): support by prop

This commit is contained in:
Benjamin Canac
2022-10-09 13:30:24 +02:00
parent 056ab30474
commit f0e482cf01

View File

@@ -1,6 +1,7 @@
<template> <template>
<Combobox <Combobox
v-slot="{ open }" v-slot="{ open }"
:by="by"
:model-value="modelValue" :model-value="modelValue"
:multiple="multiple" :multiple="multiple"
:nullable="nullable" :nullable="nullable"
@@ -104,6 +105,10 @@ const props = defineProps({
type: [String, Number, Object, Array], type: [String, Number, Object, Array],
default: '' default: ''
}, },
by: {
type: String,
default: undefined
},
options: { options: {
type: Array as PropType<{ disabled?: boolean }[]>, type: Array as PropType<{ disabled?: boolean }[]>,
default: () => [] default: () => []