validate
This commit is contained in:
parent
033c666acc
commit
7fe32bc723
2 changed files with 5 additions and 0 deletions
|
|
@ -48,8 +48,10 @@ const modalHistory = ref<boolean>(false);
|
|||
const date = ref<Date | null>(null);
|
||||
const detail = ref<string>();
|
||||
|
||||
const dateRef = ref<object | null>(null);
|
||||
const detailRef = ref<object | null>(null);
|
||||
const objectRef: MyObjectRef = {
|
||||
date: dateRef,
|
||||
detail: detailRef,
|
||||
};
|
||||
|
||||
|
|
@ -472,6 +474,8 @@ onMounted(() => {
|
|||
outlined
|
||||
dense
|
||||
:model-value="date2Thai(date)"
|
||||
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]"
|
||||
hide-bottom-space
|
||||
:label="`${'วันที่'}`"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ interface FormFilter {
|
|||
isProbation: boolean;
|
||||
}
|
||||
interface MyObjectRef {
|
||||
date: object | null;
|
||||
detail: object | null;
|
||||
[key: string]: any
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue