3811 Add year-change emit when nav Next or Prev

pull/3821/head
Colin Stevens 2023-03-29 12:48:39 -04:00
parent 8a6c3dfa9e
commit 11c2b840ad
1 changed files with 2 additions and 0 deletions

View File

@ -899,6 +899,7 @@ export default {
if (this.currentView === 'month') { if (this.currentView === 'month') {
this.decrementYear(); this.decrementYear();
this.$emit('year-change', { month: this.currentMonth, year: this.currentYear })
} else if (this.currentView === 'year') { } else if (this.currentView === 'year') {
this.decrementDecade(); this.decrementDecade();
} else { } else {
@ -925,6 +926,7 @@ export default {
if (this.currentView === 'month') { if (this.currentView === 'month') {
this.incrementYear(); this.incrementYear();
this.$emit('year-change', { month: this.currentMonth, year: this.currentYear })
} else if (this.currentView === 'year') { } else if (this.currentView === 'year') {
this.incrementDecade(); this.incrementDecade();
} else { } else {