增加弹窗布局

develop
就眠仪式 2020-07-23 15:29:55 +08:00
parent 09a41f23ce
commit 2500757540
4 changed files with 66 additions and 3 deletions

View File

@ -30,3 +30,64 @@ body::-webkit-scrollbar-thumb:hover {
body::-webkit-scrollbar-corner { body::-webkit-scrollbar-corner {
background: #f6f6f6; background: #f6f6f6;
} }
.mainBox::-webkit-scrollbar {
width: 0px;
height: 0px;
}
.mainBox::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.mainBox::-webkit-scrollbar-track {
background: white;
border-radius: 2px;
}
.mainBox::-webkit-scrollbar-thumb {
background: #E6E6E6;
border-radius: 2px;
}
.mainBox::-webkit-scrollbar-thumb:hover {
background: #E6E6E6;
}
.mainBox::-webkit-scrollbar-corner {
background: #f6f6f6;
}
.mainBox {
width: 100%;
position: absolute;
top: 0px;
left: 0px;
bottom: 50px;
overflow: auto;
}
.bottom {
width: 100%;
position: absolute;
bottom: 0px;
left: 0px;
height: 45px;
line-height: 45px;
background-color: #F8F8F8;
border-top: 1px solid #eee;
}
.button-container {
position: absolute;
right: 15px;
}
.main-container {
margin: 15px;
}
.main-container .layui-form-item {
margin-bottom: 15px !important;
margin-top: 10px !important;
}

View File

@ -368,11 +368,10 @@ layui.define(['table', 'jquery', 'element', 'form', 'tab', 'menu', 'frame'],
}); });
}) })
function getData() { function getData() {
$.ajaxSettings.async = false; $.ajaxSettings.async = false;
var data = null; var data = null;
$.getJSON("setting.json", function(result) { $.getJSON("pear.config.json", function(result) {
data = result; data = result;
}); });
$.ajaxSettings.async = true; $.ajaxSettings.async = true;

View File

@ -372,8 +372,11 @@ layui.define(['jquery', 'element'], function(exports) {
var nextNode = removeTab.next("li"); var nextNode = removeTab.next("li");
if(!removeTab.hasClass("layui-this")){ if(!removeTab.hasClass("layui-this")){
alert(id);
removeTab.remove(); removeTab.remove();
var tabContent = $(".layui-tab[lay-filter='" + elem + "']").find("iframe[id='" + id + "']").parent(); var tabContent = $(".layui-tab[lay-filter='" + elem + "']").find("iframe[id='" + id + "']").parent();
return false; return false;
} }