Skip to content

Commit

Permalink
fix(calendar): fix month toggle no have animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Hzy0913 committed Jan 18, 2019
1 parent b6d20ac commit 5981412
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mpvue-calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@
prev(e) {
e.stopPropagation();
if (this.monthIndex === 1) {
this.oversliding = false;
this.month = 11;
this.year = parseInt(this.year) - 1;
this.monthIndex = this.monthIndex - 1;
Expand Down Expand Up @@ -782,6 +783,7 @@
}
},
changeMonth(value) {
this.oversliding && (this.oversliding = false);
this.yearsShow = false;
this.month = value;
this.render(this.year, this.month);
Expand Down

0 comments on commit 5981412

Please sign in to comment.