add label prop

This commit is contained in:
Adrian Zürcher
2026-02-12 12:09:55 +01:00
parent 031b4d84ec
commit 095d6411ba

View File

@@ -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,