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 日期选择器默认规则如何修改 #4668

Closed
ouyanghui100 opened this issue Oct 21, 2024 · 4 comments
Closed

DatePicker 日期选择器默认规则如何修改 #4668

ouyanghui100 opened this issue Oct 21, 2024 · 4 comments
Labels
usage the issue about component usage

Comments

@ouyanghui100
Copy link

tdesign-vue-next 版本

1.9.3

重现链接

No response

重现步骤

<t-date-range-picker v-bind="$attrs" :presets="presets" format="YYYY-MM-DD HH:mm" value-type="YYYY-MM-DD HH:mm:ss" enable-time-picker :timePickerProps=“{ steps: [1, 10, 1] }” : presets=“null” />

期望结果

这里我将“分”的步长设为10,不应该出现59分类似的效果

实际结果

因为默认值的存在,可以选中59,让步长规则失效

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

image

Copy link
Contributor

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

@ouyanghui100
Copy link
Author

有什么方法能修改这个初始值吗?或者提供让他符合disabledTime和steps等规则·

@uyarn uyarn added the usage the issue about component usage label Oct 21, 2024
@uyarn
Copy link
Collaborator

uyarn commented Oct 21, 2024

可以使用defaultTime这个API来配置 看下这个例子
image

@ouyanghui100
Copy link
Author

好的,感谢。

@uyarn uyarn closed this as completed Oct 21, 2024
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