fix(02): empty value show '-'

This commit is contained in:
puriphatt 2024-08-19 14:43:42 +07:00
parent 9ffb327417
commit 1c24168d6f
3 changed files with 81 additions and 19 deletions

View file

@ -128,7 +128,6 @@ onMounted(async () => {
map-options
hide-selected
hide-bottom-space
v-model="brId"
for="select-br-id"
input-debounce="0"
option-label="label"
@ -141,6 +140,9 @@ onMounted(async () => {
:label="$t('formDialogInputBrId')"
:options="brOptions"
@filter="brFilter"
:model-value="readonly ? brId || '-' : brId"
@update:model-value="(v) => (typeof v === 'string' ? (brId = v) : '')"
@clear="brId = ''"
>
<template v-slot:no-option>
<q-item>