新增2套主题风格

This commit is contained in:
thinkgem
2022-02-14 16:30:37 +08:00
parent 52c1dec7a8
commit 233a00ad89
9 changed files with 530 additions and 19 deletions

View File

@@ -859,7 +859,7 @@ layer.getFrameIndex = function(name){
};
//iframe层自适应宽高diffVal差值范围内进行自适应高度
layer.iframeAuto = function(index, diffVal){
layer.iframeAuto = function(index, diffVal, $this){
if(!index) return;
var iframe = document.getElementById(doms[4] + index);
if (iframe) {
@@ -875,8 +875,8 @@ layer.iframeAuto = function(index, diffVal){
if (layerTop > 0){
var $iframe = layero.find('iframe');
if (Math.abs($iframe.height() - heg) < (diffVal || 9000)){
layero.css({height: layerHeight, top: layerTop});
$iframe.css({height: heg});
layero.animate({height: layerHeight, top: layerTop}, 20);
$iframe.animate({height: heg}, 20);
}
}
}