tdesign-vue icon indicating copy to clipboard operation
tdesign-vue copied to clipboard

[DatePicker] 周选择器时跨年周场景下获得的时间格式异常

Open zdz4510 opened this issue 1 year ago • 2 comments

tdesign-vue 版本

1.9.4

重现链接

https://tdesign.tencent.com/vue/components/date-picker?tab=demo#%E5%91%A8%E9%80%89%E6%8B%A9%E5%99%A8

重现步骤

使用周[范围]选择器时,当选择某年的【第一周】时,若鼠标点中的是【上一年末的日期】,则会导致显示年份计算错误(如:选择2014-1周时,若鼠标悬停至2013年12月31日,控件显示的时间会变成错误的2013-1周)

期望结果

正常应该是2014-1周

实际结果

https://github.com/user-attachments/assets/39edd90b-8c91-4b88-96a4-1b9b1d249a33

框架版本

vue 2.6.10

浏览器版本

No response

系统版本

No response

Node版本

v14.15.4

补充说明

No response

zdz4510 avatar Aug 05 '24 01:08 zdz4510

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

github-actions[bot] avatar Aug 05 '24 01:08 github-actions[bot]

我这也有相同的问题,很头痛,临时把周选择器换成其它的了

activeroc avatar Aug 06 '24 01:08 activeroc

fixed 1.10.2

uyarn avatar Sep 24 '24 12:09 uyarn