This commit is contained in:
setthawutttty 2024-03-14 17:53:11 +07:00
parent 033c666acc
commit 7fe32bc723
2 changed files with 5 additions and 0 deletions

View file

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

View file

@ -19,6 +19,7 @@ interface FormFilter {
isProbation: boolean;
}
interface MyObjectRef {
date: object | null;
detail: object | null;
[key: string]: any
}