Merge pull request #3821 from colinstevens06/3811

3811 Add year-change emit when nav Next or Prev
pull/3841/head
Tuğçe Küçükoğlu 2023-03-30 11:39:16 +03:00 committed by GitHub
commit ebfb634dd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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