优化:页面右侧打开多个窗口时,支持隐藏前面窗口的【关闭】按钮
This commit is contained in:
parent
59d83c83cb
commit
c645fd3268
@ -30,6 +30,7 @@ layui.define(function (exports) {
|
||||
skin:'layui-layer-gougu-admin',
|
||||
end: function(){
|
||||
$('body').removeClass('right-open');
|
||||
$(parent.$('.express-close')).show();
|
||||
if (layui.pageTable && layui.pageTable.resize) {
|
||||
layui.pageTable.resize();
|
||||
}
|
||||
@ -38,6 +39,8 @@ layui.define(function (exports) {
|
||||
var btn = '<div data-index="'+index+'" class="express-close" title="关闭">关闭</div>';
|
||||
obj.append(btn);
|
||||
$('body').addClass('right-open');
|
||||
//console.log($(parent.$('.express-close')));
|
||||
$(parent.$('.express-close')).hide();
|
||||
that.loading = false;
|
||||
obj.on('click','.express-close', function () {
|
||||
layer.close(index);
|
||||
|
Loading…
x
Reference in New Issue
Block a user