From 9d563f16c4e585a8c670219426fe4102a6200982 Mon Sep 17 00:00:00 2001 From: masky5859 Date: Mon, 17 Jun 2024 19:07:26 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat/=E3=82=AB=E3=83=AC=E3=83=B3=E3=83=80?= =?UTF-8?q?=E3=83=BC=E3=81=AE=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=82=80=E3=83=87?= =?UTF-8?q?=E3=83=BC=E3=82=BF=E3=82=92=E9=99=90=E5=AE=9A=E3=81=A7=E3=81=8D?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Calendar.vue | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/src/pages/Calendar.vue b/src/pages/Calendar.vue index 8faf0fda..627f0cc9 100644 --- a/src/pages/Calendar.vue +++ b/src/pages/Calendar.vue @@ -1,12 +1,13 @@ From d740287b6d4a2fc356dec196727bc626dcebf27b Mon Sep 17 00:00:00 2001 From: masky5859 Date: Sat, 6 Jul 2024 15:11:07 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat/=E6=9C=88=E3=81=94=E3=81=A8=E3=81=AB?= =?UTF-8?q?=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88=E3=82=92=E5=8F=96=E5=BE=97?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/shared/Calendar.vue | 5 ++++ src/pages/Calendar.vue | 44 ++++++++---------------------- 2 files changed, 17 insertions(+), 32 deletions(-) diff --git a/src/components/shared/Calendar.vue b/src/components/shared/Calendar.vue index 4179e3a3..edffe2dd 100644 --- a/src/components/shared/Calendar.vue +++ b/src/components/shared/Calendar.vue @@ -56,6 +56,7 @@ @click:event="showEvent" @click:more="viewDay" @click:date="viewDay" + @input="onMonthChange" /> event?.admins.includes(this.$store.direct.state.me?.userId ?? '') ?? false } + onMonthChange(value) { + value = new Date(value) + this.$emit('monthChanged', value) + } } diff --git a/src/pages/Calendar.vue b/src/pages/Calendar.vue index 627f0cc9..80f56f49 100644 --- a/src/pages/Calendar.vue +++ b/src/pages/Calendar.vue @@ -1,13 +1,16 @@