We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在使用date-pick ,type为week时,如果我们设置了first-day-of-week属性,那么我们得到的周结果跟实际周会有误差。
1:版本2.40.2 2:使用date-picker组件,设置first-day-of-week为6(也就是周日为起始日期) 3:设置value为2024年十二月八号的时间戳(初步已经看到,本周应该是2024年第五十周,但组件得到49周) 4:切换周,总比实际周少1.
none
"naive-ui": "^2.40.2", "vue": "3.3.4",
npm
The text was updated successfully, but these errors were encountered:
看起来原因是,周的value取的是面板上第一个日期的时间戳,当把周日作为起始的时候,计算逻辑却没有更新,导致起始日期是上一周的最后一天,计算成了上一周。
Sorry, something went wrong.
No branches or pull requests
Describe the bug
在使用date-pick ,type为week时,如果我们设置了first-day-of-week属性,那么我们得到的周结果跟实际周会有误差。
Steps to reproduce
1:版本2.40.2
2:使用date-picker组件,设置first-day-of-week为6(也就是周日为起始日期)
3:设置value为2024年十二月八号的时间戳(初步已经看到,本周应该是2024年第五十周,但组件得到49周)
4:切换周,总比实际周少1.
Link to minimal reproduction
none
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: