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 日期选择器 中 value 设置 数组报错问题 #3361

Closed
Corgis opened this issue Oct 15, 2024 · 2 comments
Closed

DatePicker 日期选择器 中 value 设置 数组报错问题 #3361

Corgis opened this issue Oct 15, 2024 · 2 comments
Labels
📒 documentation Improvements or additions to documentation easy easy level of difficulties IssueShoot

Comments

@Corgis
Copy link

Corgis commented Oct 15, 2024

tdesign-vue 版本

1.10.3

重现链接

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

重现步骤

打开控制台可看到如下报错,而按照api中 对于 value 类型的描述 是可以支持String / Number / Array / Date 的,不应该会有如下错误!!
image

期望结果

能正常显示绑定的数组类型的多个日期

实际结果

报错如下
image

框架版本

vue 2.6.14

浏览器版本

Chrome ( 129.0.6668.90 ) 64位版

系统版本

No response

Node版本

v18.20.1

补充说明

No response

IssueShoot

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

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

@uyarn uyarn added the 📒 documentation Improvements or additions to documentation label Oct 15, 2024
@uyarn
Copy link
Collaborator

uyarn commented Oct 15, 2024

这个是文档上删除遗漏了,最开始的版本date-range-picker没有单独成一个子组件 而是通过 的方式使用的 所以才会有数组,谢谢反馈问题,也欢迎提PR改正文档 🌹

@uyarn uyarn added IssueShoot easy easy level of difficulties labels Oct 17, 2024
@uyarn uyarn closed this as completed Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📒 documentation Improvements or additions to documentation easy easy level of difficulties IssueShoot
Projects
None yet
Development

No branches or pull requests

2 participants