From e75f3b4ed6d04ab6e0fc994c0aacb726e80f2240 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 30 Nov 2023 10:55:18 +0100 Subject: [PATCH] feat: exposes gotoPeriod method to top level --- src/Qalendar.vue | 7 ++++++- src/components/header/Header.vue | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Qalendar.vue b/src/Qalendar.vue index 168f5281..2dc7a56f 100644 --- a/src/Qalendar.vue +++ b/src/Qalendar.vue @@ -18,6 +18,7 @@ diff --git a/src/components/header/Header.vue b/src/components/header/Header.vue index e5998164..2816e69b 100644 --- a/src/components/header/Header.vue +++ b/src/components/header/Header.vue @@ -12,13 +12,13 @@ @@ -188,7 +188,7 @@ export default defineComponent({ this.$emit('updated-period', value); }, - goToPeriod(event: MouseEvent, direction: 'previous' | 'next') { + goToPeriod(direction: 'previous' | 'next') { (this.$refs.periodSelect as typeof DatePicker).goToPeriod(direction); }, }