add label prop
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<q-select
|
||||
ref="selectRef"
|
||||
:label="props.label || ''"
|
||||
v-model="modelValueLocal"
|
||||
:options="filteredOptions"
|
||||
:option-label="optionLabel"
|
||||
@@ -43,6 +44,9 @@ const props = defineProps({
|
||||
type: Array as PropType<T[]>,
|
||||
required: true,
|
||||
},
|
||||
label: {
|
||||
type: String,
|
||||
},
|
||||
optionLabel: {
|
||||
type: [Function, String] as PropType<((option: T) => string) | string | undefined>,
|
||||
required: true,
|
||||
|
||||
Reference in New Issue
Block a user