mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
3811 Add year-change emit when nav Next or Prev
This commit is contained in:
parent
8a6c3dfa9e
commit
11c2b840ad
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue