pull/1081/head
贤心 2022-07-11 00:02:20 +08:00
parent 3c3c47e5c3
commit 5e52126c05
3 changed files with 9 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "layui",
"realname": "layui",
"version": "2.7.3",
"version": "2.7.4",
"description": "Classic modular Front-End UI library",
"main": "dist/layui.js",
"license": "MIT",

View File

@ -15,7 +15,7 @@
}
,Layui = function(){
this.v = '2.7.3'; // layui 版本号
this.v = '2.7.4'; // layui 版本号
}
//识别预先可能定义的指定全局对象

View File

@ -530,6 +530,7 @@
//delete options.dateTime;
//delete that.endDate;
delete laydate.thisId;
typeof options.close === 'function' && options.close(that);
});
}
return that;
@ -1739,6 +1740,12 @@
//减去一天,得到当前月最后一天
return new Date(thisDate.getTime() - 1000*60*60*24).getDate();
};
// 关闭日期面板
laydate.close = function(id){
var elem = lay('#'+ (id ? ('layui-laydate'+ id) : Class.thisElemDate));
elem.remove();
};
//加载方式
isLayui ? (