อัพปฎิทิน

This commit is contained in:
Kittapath 2023-11-07 13:56:35 +07:00
parent 83dc2d90a5
commit 973664a0cd
2 changed files with 8 additions and 6 deletions

View file

@ -151,11 +151,11 @@ const props = defineProps({
type: Number, type: Number,
default: () => new Date().getMonth(), default: () => new Date().getMonth(),
}, },
refreshData: { // refreshData: {
// main refresh data // // main refresh data
type: Boolean, // type: Boolean,
required: true, // required: true,
}, // },
fetchDataSummaryCalendar: { fetchDataSummaryCalendar: {
// //
type: Function, type: Function,
@ -177,7 +177,9 @@ onMounted(async () => {
* props(นเดอนปเลอก) ตอนอพเดท าฏนใหพเดทใหม * props(นเดอนปเลอก) ตอนอพเดท าฏนใหพเดทใหม
*/ */
watch(props, async (count, prevCount) => { watch(props, async (count, prevCount) => {
const calen = fullCalendar.value.getApi()
const date = new Date(props.dateYear, props.dateMonth) const date = new Date(props.dateYear, props.dateMonth)
calen.gotoDate(date)
}) })
const cancel = async (text: string) => { const cancel = async (text: string) => {
title.value = text title.value = text

View file

@ -97,7 +97,7 @@
</div> </div>
</div> </div>
<div class="col-12"> <div class="col-12">
<subCalendarComponent v-if="currentTab === 'calendar'" /> <subCalendarComponent :dateYear="dateMonth.year" :dateMonth="dateMonth.month" v-if="currentTab === 'calendar'" />
</div> </div>
<div class="col-12"> <div class="col-12">