Skip to content

Commit 9ae5048

Browse files
committed
Bug fixes in version 2.6.2
1 parent d9ec9d1 commit 9ae5048

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
},
77
"name": "vue-functional-calendar",
88
"description": "Lightweight, high-performance calendar component based on Vue.js",
9-
"version": "2.6.2",
9+
"version": "2.6.3",
1010
"license": "MIT",
1111
"repository": {
1212
"type": "git",

src/components/FunctionalCalendar.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@
9292
<h2 class="vfc-top-date"
9393
v-if="checkHiddenElement('month')">
9494
<a href="#" @click.prevent="openMonthPicker(key)"
95-
:class="{'vfc-cursor-pointer vfc-underline':changeMonthFunction, 'vfc-underline-active':showMonthPicker}">
95+
:class="{'vfc-cursor-pointer vfc-underline':fConfigs.changeMonthFunction, 'vfc-underline-active':showMonthPicker}">
9696
{{ calendarItem.month }}
9797
</a>
9898
<a href="#" @click.prevent="openYearPicker(key)"
99-
:class="{'vfc-cursor-pointer vfc-underline':changeMonthFunction, 'vfc-underline-active':showYearPicker}">
99+
:class="{'vfc-cursor-pointer vfc-underline':fConfigs.changeYearFunction, 'vfc-underline-active':showYearPicker}">
100100
{{ calendarItem.year }}
101101
</a>
102102
</h2>
@@ -780,8 +780,10 @@
780780
}
781781
},
782782
openYearPicker() {
783-
this.showYearPicker = !this.showYearPicker;
784-
this.showMonthPicker = false;
783+
if (this.fConfigs.changeYearFunction) {
784+
this.showYearPicker = !this.showYearPicker;
785+
this.showMonthPicker = false;
786+
}
785787
},
786788
openTimePicker() {
787789
this.showTimePicker = true;

0 commit comments

Comments
 (0)