mirror of
https://gitee.com/layui/layui.git
synced 2025-11-24 16:43:14 +08:00
优化 laydate 的 type 为 time,datetime 选择器时「现在」按钮的禁用状态判断条件
This commit is contained in:
@@ -1245,7 +1245,7 @@
|
||||
// 现在按钮
|
||||
that.limit({
|
||||
elem: lay(that.footer).find(ELEM_NOW),
|
||||
date: that.systemDate(),
|
||||
date: that.systemDate(/^(datetime|time)$/.test(options.type) ? new Date() : null),
|
||||
index: 0,
|
||||
time: timeParams
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user