Browse Source

fix(calendar): 组件个别月份不展示问题 (#596)

拧巴的猫 4 years ago
parent
commit
37b1585288
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/calendar/calendar.vue

+ 1 - 1
src/packages/calendar/calendar.vue

@@ -151,7 +151,7 @@ export default {
           month = month == 12 ? 1 : ++month;
           break;
       }
-      return [year, Utils.getNumTwoBit(month), monthData.curData[2]];
+      return [year, Utils.getNumTwoBit(month), Utils.getMonthDays(year, month)];
     },
 
     getDaysStatus(days, type) {