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-time-picker] value 传入 dayjs().valueOf() 这个值,选择器的时分都是默认的00,而不是传入的值 #2934

Closed
HYzihong opened this issue Jun 30, 2024 · 2 comments

Comments

@HYzihong
Copy link

tdesign-miniprogram 版本

重现链接

No response

重现步骤

data:
{
datePicker: {
mode: 'second',
format: 'YYYY-MM-DD HH:mm:ss',
title: "请选择日期:",
show: false,
value: dayjs().valueOf()
},
start: '2020-01-01 00:00:00',
end: '2030-01-01 00:00:00',
}

期望结果

date-time-picker 显示传入的年月日 时分秒

实际结果

date-time-picker 显示传入的年月日 时,分秒 都是默认的00,如果不滚动分秒,bindchange得出来的时间戳,分秒还是传入的,不是00

基础库版本

No response

补充说明

No response

Copy link
Contributor

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

@HYzihong
Copy link
Author

是我配置了steps导致的这个问题,
steps: {
minute: 5,
second: 10
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant