mirror of https://github.com/layui/layui
优化 laydate 的 type 为 `time,datetime` 选择器时「现在」按钮的禁用状态判断条件
parent
3aaf5b341e
commit
8406f4944b
|
@ -1245,7 +1245,7 @@
|
||||||
// 现在按钮
|
// 现在按钮
|
||||||
that.limit({
|
that.limit({
|
||||||
elem: lay(that.footer).find(ELEM_NOW),
|
elem: lay(that.footer).find(ELEM_NOW),
|
||||||
date: that.systemDate(),
|
date: that.systemDate(/^(datetime|time)$/.test(options.type) ? new Date() : null),
|
||||||
index: 0,
|
index: 0,
|
||||||
time: timeParams
|
time: timeParams
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue