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