3811 Add year-change emit when nav Next or Prev
parent
8a6c3dfa9e
commit
11c2b840ad
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue