|
|
@ -2178,9 +2178,9 @@
|
|
|
|
return that;
|
|
|
|
return that;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//初始执行
|
|
|
|
// 初始执行
|
|
|
|
ready.run = function(lay){
|
|
|
|
ready.run = function(lay){
|
|
|
|
//绑定关闭控件事件
|
|
|
|
// 绑定关闭控件事件
|
|
|
|
lay(document).on('mousedown', function(e){
|
|
|
|
lay(document).on('mousedown', function(e){
|
|
|
|
if(!laydate.thisId) return;
|
|
|
|
if(!laydate.thisId) return;
|
|
|
|
var that = thisModule.getThis(laydate.thisId);
|
|
|
|
var that = thisModule.getThis(laydate.thisId);
|
|
|
@ -2191,7 +2191,8 @@
|
|
|
|
if(
|
|
|
|
if(
|
|
|
|
e.target === options.elem[0] ||
|
|
|
|
e.target === options.elem[0] ||
|
|
|
|
e.target === options.eventElem[0] ||
|
|
|
|
e.target === options.eventElem[0] ||
|
|
|
|
e.target === lay(options.closeStop)[0]
|
|
|
|
e.target === lay(options.closeStop)[0] ||
|
|
|
|
|
|
|
|
(options.elem[0] && options.elem[0].contains(e.target))
|
|
|
|
) return;
|
|
|
|
) return;
|
|
|
|
|
|
|
|
|
|
|
|
that.remove();
|
|
|
|
that.remove();
|
|
|
|