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

[date-picker] 当绑定time-picker时,预设时间不能正常使用 #4901

Open
NetFreeOps opened this issue Jan 5, 2025 · 2 comments
Open
Labels
usage the issue about component usage

Comments

@NetFreeOps
Copy link

NetFreeOps commented Jan 5, 2025

tdesign-vue-next 版本

1.8.0

重现链接

重现步骤

<t-date-picker enable-time-picker v-model="addJobData.nextExecuteTime" type="datetime" :presets="{ '下午两点': '14:00:00', '上午八点': '08:00:00' }" />
当点击按钮时,会直接确认成当前时间,而不是设置预设时间

期望结果

点击预设时间按钮可以正确预设时间,就如同单独的time-picker一样

实际结果

点击该按钮时,调用了确认时间,而不是预设时间

框架版本

No response

浏览器版本

No response

系统版本

win11

Node版本

20.11.0

补充说明

No response

Copy link
Contributor

github-actions bot commented Jan 5, 2025

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

@uyarn
Copy link
Collaborator

uyarn commented Jan 6, 2025

看起来预设时间是个纯时间部分呀 format没有同时修复成HH:MM:DD 是预期展示成什么形式呢?只展示时间部分吗?

@uyarn uyarn added the usage the issue about component usage label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usage the issue about component usage
Projects
None yet
Development

No branches or pull requests

2 participants