浏览代码

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

拧巴的猫 4 年之前
父节点
当前提交
37b1585288
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
           month = month == 12 ? 1 : ++month;
           break;
           break;
       }
       }
-      return [year, Utils.getNumTwoBit(month), monthData.curData[2]];
+      return [year, Utils.getNumTwoBit(month), Utils.getMonthDays(year, month)];
     },
     },
 
 
     getDaysStatus(days, type) {
     getDaysStatus(days, type) {