Skip to content

Commit

Permalink
fix($em-fe): fix datem and datetimem
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouWeiru committed Oct 17, 2019
1 parent 4907010 commit bb2fefa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/emfe-date-m/src/EmfeDateM.vue
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export default {
dayEnd = dateCountOfLastMonth + 1;
}
for (let i = 1; i < dateCountOfLastMonth + 1; i++) {
if (i > this.dayStart && i < dayEnd) {
if (i >= this.dayStart && i <= dayEnd) {
this.days.push(TimeTool.handleConputedDate(i, this.disabledDays, 'day', enabledDate, this, this.enabledDate.length > 1));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/emfe-datetime-m/src/EmfeDatetimeM.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default {
dayEnd = dateCountOfLastMonth + 1;
}
for (let i = 1; i < dateCountOfLastMonth + 1; i++) {
if (i > this.dayStart && i < dayEnd) {
if (i >= this.dayStart && i <= dayEnd) {
this.days.push(TimeTool.handleConputedDate(i, this.disabledDays));
}
}
Expand Down

0 comments on commit bb2fefa

Please sign in to comment.