morning-star 2025-07-09 18:59:45 +08:00 committed by GitHub
commit 1a9a2ffca6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -1805,6 +1805,15 @@
that.closeList();
}
if(!options.range){
that.limit({
type: type,
elem: lay(that.footer).find(ELEM_CONFIRM),
date: dateTime,
disabledType: 'datetime' // 按钮,检测日期和时间
});
}
that.setBtnStatus(); //同步按钮可点状态
//若为月选择器,只有当选择月份时才自动关闭;
@ -2421,7 +2430,8 @@
options.range || that.limit({
elem: lay(that.footer).find(ELEM_CONFIRM),
date: {
year: listYM[0]
year: listYM[0],
month: isYear ? 0 : listYM[1] - 1,
},
disabledType: 'datetime' // 按钮,检测日期和时间
});