Skip to content

Commit a3fe38b

Browse files
committed
fix(Calendar): 修复renderDay date返回的完整日期有误
1 parent ec2c44b commit a3fe38b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/Calendar/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export function getWeeksArray(lastDays: number[], days: number[], nextDays: numb
117117
colorType: getHoliday.colorType,
118118
lunarMonth: getHoliday.lunarMonth,
119119
lunar: getHoliday.lunar,
120-
date: year + '-' + (month + 1) + '-' + lstVal,
120+
date: year + '-' + month + '-' + lstVal,
121121
});
122122
});
123123
days.forEach((Val, Indx) => {
@@ -146,7 +146,7 @@ export function getWeeksArray(lastDays: number[], days: number[], nextDays: numb
146146
colorType: getHoliday.colorType,
147147
lunarMonth: getHoliday.lunarMonth,
148148
lunar: getHoliday.lunar,
149-
date: year + '-' + (month + 1) + '-' + nextVal,
149+
date: year + '-' + (month + 2) + '-' + nextVal,
150150
});
151151
});
152152
res = res.concat(lastArr, currentArr, nextArr);

0 commit comments

Comments
 (0)