mirror of https://github.com/layui/layui
update
parent
3c3c47e5c3
commit
5e52126c05
|
@ -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",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
}
|
||||
|
||||
,Layui = function(){
|
||||
this.v = '2.7.3'; // layui 版本号
|
||||
this.v = '2.7.4'; // layui 版本号
|
||||
}
|
||||
|
||||
//识别预先可能定义的指定全局对象
|
||||
|
|
|
@ -530,6 +530,7 @@
|
|||
//delete options.dateTime;
|
||||
//delete that.endDate;
|
||||
delete laydate.thisId;
|
||||
typeof options.close === 'function' && options.close(that);
|
||||
});
|
||||
}
|
||||
return that;
|
||||
|
@ -1740,6 +1741,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 ? (
|
||||
laydate.ready()
|
||||
|
|
Loading…
Reference in New Issue