Skip to content
New issue

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

[DatePicker] 周选择器场景,选择日期和高亮日期差一周,晚一步 #3785

Closed
chaishi opened this issue Dec 28, 2023 · 4 comments
Assignees
Labels
easy easy level of difficulties issueShoot to be published to be published

Comments

@chaishi
Copy link
Collaborator

chaishi commented Dec 28, 2023

tdesign-vue-next 版本

1.7.2

重现链接

https://stackblitz.com/edit/gb9buy?file=package.json,src%2Fdemo.vue

重现步骤

选的是 第 4 周,出现的结果是第 5 周。失去焦点,变成了第 5 周

企业微信截图_d0a26ba0-50f6-4a5d-aa1f-6471d3808bf9

No response

期望结果

No response

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

IssueShoot

  • 预估时长: 3
  • 期望完成时间: 2024-01-11 00:00:00 +0000 UTC
  • 开发难度: 低
  • 参与人数: 1
  • 需求对接人: ivringpeng
  • 验收标准: 实现期望改造效果,提 PR 并通过验收无误
  • 备注: 最终激励以实际提交 pull request 并合并为准
Copy link
Contributor

👋 @chaishi,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Copy link
Contributor

github-actions bot commented Dec 28, 2023

♥️ 有劳 @xkelvinx666 @xiaosansiji @honkinglin 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @chaishi

@uyarn uyarn added issueShoot easy easy level of difficulties labels Dec 28, 2023
@chaishi chaishi changed the title [DatePicker] 周选择器场景,设置valueType 后,日期组件选中值无法改变 [DatePicker] 周选择器场景,选择的日期和再次展开后对应高亮的日期不匹配,差了一周 Jan 8, 2024
@chaishi chaishi changed the title [DatePicker] 周选择器场景,选择的日期和再次展开后对应高亮的日期不匹配,差了一周 [DatePicker] 周选择器场景,选择日期和高亮日期差一周,晚一步 Jan 8, 2024
@uyarn uyarn added middle middle level of difficulties easy easy level of difficulties and removed easy easy level of difficulties middle middle level of difficulties labels Jan 8, 2024
@Summer-Shen
Copy link
Contributor

我想处理这个 issue,想了解下期望 firstDayOfWeek 的值如何影响本年度第一周的定义?目前使用的是 ISO 定义,即本年度第一个星期四所在的星期。

@Summer-Shen
Copy link
Contributor

Summer-Shen commented Jan 11, 2024

我这边实现的效果如下:

  • firstDayOfWeek 为一周第 1 天,则这周的第 4 天我们记为星期 x
  • 本年度第一个星期 x 所在的星期是本年度的第一周。

PR 会提交到 tdesign-common。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy easy level of difficulties issueShoot to be published to be published
Projects
None yet
Development

No branches or pull requests

6 participants