diff --git a/packages/nc-gui/components/nc/MonthYearSelector.vue b/packages/nc-gui/components/nc/MonthYearSelector.vue index aec139a800..2813b4c635 100644 --- a/packages/nc-gui/components/nc/MonthYearSelector.vue +++ b/packages/nc-gui/components/nc/MonthYearSelector.vue @@ -12,7 +12,7 @@ const props = withDefaults(defineProps(), { selectedDate: null, isDisabled: false, pageDate: new Date(), - yearPicker: false, + yearPicker: false }); const pageDate = useVModel(props, 'pageDate', emit); @@ -20,8 +20,8 @@ const selectedDate = useVModel(props, 'selectedDate', emit); const years = computed(() => { const date = new Date(pageDate.value); - const startYear = date.getFullYear() - 5; - const endYear = date.getFullYear() + 6; + const startYear = date.getFullYear(); + const endYear = date.getFullYear() + 11; const years = []; for (let i = startYear; i <= endYear; i++) { years.push({ @@ -146,7 +146,7 @@ const compareYear = (date1: Date, date2: Date) => { -
+