Open huiliangShen opened 5 months ago
Someone is attempting to deploy a commit to the React Component Team on Vercel.
A member of the Team first needs to authorize it.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
fd5fe22
) 99.09% compared to head (bd3f096
) 99.09%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
fix antd@4.x bug 周选择时间控件选中跨年周时无高亮问题 It's cause
isSameWeek
function. for example: use 2024 first week, first date is2023-12-31
(sunday) when local is US. so when I click2024-01-01
, it's will be run the following code.isSameWeek
receivegenerateConfig
,US
,2024-01-01
and2023-12-31
, following logic, it's will be return false, because the two date is not same year. we need to usegenerateConfig.locale.getWeekFirstDate
function to calc date then judge is same year.