อัพปฎิทิน

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

View file

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