From 5df15aff3425630220b38c39279dd2195626d125 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Sat, 2 Mar 2024 12:01:12 +0000 Subject: [PATCH] feat: configurable year size --- .../nc-gui/components/nc/DateWeekSelector.vue | 61 ++++++++++++------- .../smartsheet/calendar/YearView.vue | 6 +- .../components/smartsheet/calendar/index.vue | 34 ++++++++++- .../composables/useCalendarViewStore.ts | 14 ++++- 4 files changed, 89 insertions(+), 26 deletions(-) diff --git a/packages/nc-gui/components/nc/DateWeekSelector.vue b/packages/nc-gui/components/nc/DateWeekSelector.vue index 618d39b132..a9005b0819 100644 --- a/packages/nc-gui/components/nc/DateWeekSelector.vue +++ b/packages/nc-gui/components/nc/DateWeekSelector.vue @@ -2,7 +2,7 @@ import dayjs from 'dayjs' interface Props { - size?: 'small' | 'medium' | 'xsmall' + size?: 'medium' | 'large' | 'small' selectedDate?: dayjs.Dayjs | null isDisabled?: boolean pageDate?: dayjs.Dayjs @@ -17,7 +17,7 @@ interface Props { } const props = withDefaults(defineProps(), { - size: 'medium', + size: 'large', selectedDate: null, isDisabled: false, isMondayFirst: true, @@ -139,8 +139,8 @@ const paginate = (action: 'next' | 'prev') => {