微调 laydate 代码段落

pull/1220/head
贤心 2023-03-27 12:49:05 +08:00
parent 596fcf0f8b
commit 56afd8f760
1 changed files with 16 additions and 18 deletions

View File

@ -2228,6 +2228,20 @@
return that.hint(opts); return that.hint(opts);
}; };
// 解绑实例
laydate.unbind = function(id){
var that = thisModule.getThis(id);
if(!that) return;
return that.unbind();
};
// 关闭日期面板
laydate.close = function(id){
var that = thisModule.getThis(id || laydate.thisId);
if(!that) return;
return that.remove();
};
// 将指定对象转化为日期值 // 将指定对象转化为日期值
laydate.parse = function(dateTime, format, one){ laydate.parse = function(dateTime, format, one){
dateTime = dateTime || {}; dateTime = dateTime || {};
@ -2271,22 +2285,6 @@
return new Date(thisDate.getTime() - 1000*60*60*24).getDate(); return new Date(thisDate.getTime() - 1000*60*60*24).getDate();
}; };
// 解绑实例
laydate.unbind = function(id){
var that = thisModule.getThis(id || laydate.thisId);
if(!that) return;
return that.unbind();
};
// 关闭日期面板
laydate.close = function(id){
var that = thisModule.getThis(id || laydate.thisId);
if(!that) return;
return that.remove();
};
//加载方式 //加载方式
isLayui ? ( isLayui ? (
laydate.ready() laydate.ready()