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