เพิ่ม rules ประเภทคำสั่ง

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-04-29 17:23:58 +07:00
parent b05a95307b
commit df5f0f925d
2 changed files with 3 additions and 3 deletions

View file

@ -971,7 +971,6 @@ onMounted(async () => {
<q-card-section style="max-height: 100%" class="scroll">
<div class="row col-12 q-col-gutter-sm">
<div class="col-xs-12 col-sm-6 col-md-8">
<!-- :rules="[(val: string) => !!val || 'กรุณาเลือกประเภทคำสั่ง']" -->
<q-select
outlined
:class="classInput(true)"
@ -990,6 +989,7 @@ onMounted(async () => {
hide-selected
fill-input
input-debounce="0"
:rules="[(val: string) => !!val || 'กรุณาเลือกประเภทคำสั่ง']"
@update:model-value="updateSelectType"
@filter="(inputValue: string,
doneFn: Function) => filterSelector(inputValue, doneFn, 'commandCode'