Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

datetime 没有设置默认值,分钟设置间隔后,第一次点击不选择,再次点击,日期选项就变成了1950-01-01 00:00 #610

Open
jnewer opened this issue Aug 19, 2019 · 1 comment

Comments

@jnewer
Copy link

jnewer commented Aug 19, 2019

代码:
times: function () {
return [
{
values: (function () {
var hours = [];
for (var i=0; i<24; i++) hours.push(i > 9 ? i : '0'+i);
return hours;
})()
},
{
divider: true,
content: ':'
},
{
values: (function () {
return ['00','10','20','30','40','50'];
})()
}
];
},

运行环境:版本0.8.2
两次点击如下图:
datetimepicker
datetimepicker2

@jnewer jnewer changed the title datetime 设置间隔后没有默认值,第一次点击不选择,再次点击,日期选项就变成了1950 datetime 没有设置默认值,分钟设置间隔后,第一次点击不选择,再次点击,日期选项就变成了1950-01-01 00:00 Aug 19, 2019
@angelbeatsying
Copy link

你好,请问解决了。同样的问题- -

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

No branches or pull requests

2 participants