fix(02): empty value show '-'
This commit is contained in:
parent
9ffb327417
commit
1c24168d6f
3 changed files with 81 additions and 19 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue