From ff0ea598ec07bffc032cc671bde39e6c959b3369 Mon Sep 17 00:00:00 2001 From: nevermoregb Date: Thu, 3 Apr 2025 10:02:50 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A9=94=EC=9D=B8=EB=8B=AC=EB=A0=A5=20STYLE=20?= =?UTF-8?q?=EC=9D=B4=20=EB=8B=A4=EB=A5=B8=EA=B3=B3=EC=97=90=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9=EC=95=88=EB=90=98=EA=B2=8C=20=EC=88=98=EC=A0=95,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/main/MainEventCalendar.vue | 26 +++++++++++------------ src/components/main/MainEventList.vue | 7 +----- 2 files changed, 14 insertions(+), 19 deletions(-) diff --git a/src/components/main/MainEventCalendar.vue b/src/components/main/MainEventCalendar.vue index 902f759..9295536 100644 --- a/src/components/main/MainEventCalendar.vue +++ b/src/components/main/MainEventCalendar.vue @@ -156,7 +156,7 @@ monthBirthdayPartyList.value = []; monthDinnerList.value = []; monthTeaTimeList.value = []; - monthTeaTimeList.value = []; + monthWorkShopList.value = []; if (res?.eventList?.length) { res.eventList.forEach(item => { @@ -520,6 +520,10 @@ }, }); + const handleWheelEvent = e => { + handleCloseModal(); + }; + // 달력 뷰 변경 감지 (월 변경 시 데이터 다시 가져오기) watch( () => fullCalendarRef.value?.getApi().currentData.viewTitle, @@ -551,35 +555,31 @@ await fetchEventList(param); useFilterEventList(month, day); - // 이벤트모달 외부 클릭 감지 - // document.addEventListener('click', e => { - // if (showModal.value && !e.target.closest('.event-modal') && !e.target.closest('.fc-daygrid-day')) { - // showModal.value = false; - // } - // }); + // 스크롤 감지 이벤트 리스너 + window.addEventListener('wheel', handleWheelEvent); }); -