优化 laydate 的 type 为 `time,datetime` 选择器时「现在」按钮的禁用状态判断条件

pull/1413/head
贤心 2023-10-31 08:26:16 +08:00
parent 3aaf5b341e
commit 8406f4944b
1 changed files with 1 additions and 1 deletions

View File

@ -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
});