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

[DateTimePicker 时间选择器] 时间选择器选项只能是带年吗? #3185

Closed
BigCleverXu opened this issue Oct 9, 2024 · 3 comments
Labels
wontfix This will not be worked on

Comments

@BigCleverXu
Copy link

这个功能解决了什么问题

当我只想要【月-日-时】的时间选项,不想要年的选项,当前组件就不支持了,只能单独写picker好像有点麻烦

你建议的方案是什么

通过修改返回格式,自定义显示时间的选项

Copy link
Contributor

github-actions bot commented Oct 9, 2024

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

@anlyyao
Copy link
Collaborator

anlyyao commented Oct 10, 2024

https://tdesign.tencent.com/miniprogram/components/date-time-picker?tab=api

是的,目前仅支持 year = 年;month = 年月;date = 年月日;hour = 年月日时; minute = 年月日时分。和 format 也是对应关系

@anlyyao anlyyao added the wontfix This will not be worked on label Oct 10, 2024
@anlyyao anlyyao closed this as completed Oct 10, 2024
@BigCleverXu
Copy link
Author

以后会有单独控制年月日的属性吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants