From 7ffb61a6bbdab4c150ae9eba6030bda011ae0fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 30 Mar 2023 11:46:23 +0300 Subject: [PATCH] Format fixes --- components/lib/calendar/Calendar.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/lib/calendar/Calendar.vue b/components/lib/calendar/Calendar.vue index 1e06d6a1d..8eb2e6200 100755 --- a/components/lib/calendar/Calendar.vue +++ b/components/lib/calendar/Calendar.vue @@ -899,7 +899,7 @@ export default { if (this.currentView === 'month') { this.decrementYear(); - this.$emit('year-change', { month: this.currentMonth, year: this.currentYear }) + this.$emit('year-change', { month: this.currentMonth, year: this.currentYear }); } else if (this.currentView === 'year') { this.decrementDecade(); } else { @@ -926,7 +926,7 @@ export default { if (this.currentView === 'month') { this.incrementYear(); - this.$emit('year-change', { month: this.currentMonth, year: this.currentYear }) + this.$emit('year-change', { month: this.currentMonth, year: this.currentYear }); } else if (this.currentView === 'year') { this.incrementDecade(); } else { @@ -1651,8 +1651,6 @@ export default { } }, onMonthSelect(event, { month, index }) { - // if (month.selectable) return; - if (this.view === 'month') { this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true }); } else { @@ -1664,8 +1662,6 @@ export default { setTimeout(this.updateFocus, 0); }, onYearSelect(event, year) { - // if (year.isSelectable) return; - if (this.view === 'year') { this.onDateSelect(event, { year: year.value, month: 0, day: 1, selectable: true }); } else {