From 93a274a365f00dedfd1dad5021439e0f51f91054 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Sat, 2 Mar 2024 12:01:11 +0000 Subject: [PATCH 1/8] feat(nc-gui): refresh year view --- .../nc-gui/components/nc/DateWeekSelector.vue | 46 +++++++++++++++---- .../smartsheet/calendar/SideMenu.vue | 21 +++++---- .../smartsheet/calendar/YearView.vue | 3 +- .../components/smartsheet/calendar/index.vue | 9 +++- 4 files changed, 59 insertions(+), 20 deletions(-) diff --git a/packages/nc-gui/components/nc/DateWeekSelector.vue b/packages/nc-gui/components/nc/DateWeekSelector.vue index fbc3cd604e..a1ea8b0a92 100644 --- a/packages/nc-gui/components/nc/DateWeekSelector.vue +++ b/packages/nc-gui/components/nc/DateWeekSelector.vue @@ -2,6 +2,7 @@ import dayjs from 'dayjs' interface Props { + size?: 'small' | 'medium' selectedDate?: dayjs.Dayjs | null isDisabled?: boolean pageDate?: dayjs.Dayjs @@ -16,6 +17,7 @@ interface Props { } const props = withDefaults(defineProps(), { + size: 'medium', selectedDate: null, isDisabled: false, isMondayFirst: true, @@ -135,7 +137,7 @@ const paginate = (action: 'next' | 'prev') => {