From cab8f1520fe1402f7281d2d0a196b57cafe08552 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Tue, 29 Dec 2020 18:05:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E4=B8=8B=E9=9D=A2=E5=8C=85=E5=B1=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- component/pear/css/pear-module/frame.css | 4 ++-- component/pear/modules/admin.js | 2 +- component/pear/modules/frame.js | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/component/pear/css/pear-module/frame.css b/component/pear/css/pear-module/frame.css index 8835c21..85bdaf5 100644 --- a/component/pear/css/pear-module/frame.css +++ b/component/pear/css/pear-module/frame.css @@ -40,8 +40,8 @@ position: absolute; display: none; width: 100%; - height: 100%; - top: 0px; + height: calc(100% - 45px) !important; + top: 42px; z-index: 19; background-color: #fff } diff --git a/component/pear/modules/admin.js b/component/pear/modules/admin.js index 419ed95..0e6dc2b 100644 --- a/component/pear/modules/admin.js +++ b/component/pear/modules/admin.js @@ -121,7 +121,7 @@ layui.define(['table', 'jquery', 'element', 'yaml','form', 'tab', 'menu', 'frame } else { bodyFrame = pearFrame.render({ elem: 'content', - title: '工作空间 / 首页', + title: '首页', url: param.tab.index.href, width: '100%', height: '100%' diff --git a/component/pear/modules/frame.js b/component/pear/modules/frame.js index d81a460..6a00864 100644 --- a/component/pear/modules/frame.js +++ b/component/pear/modules/frame.js @@ -53,13 +53,14 @@ layui.define(['table', 'jquery', 'element'], function (exports) { } function createFrameHTML(option){ + var header = "
"+option.title+"
" var iframe = ""; var loading = '
'+ '
'+ ''+ '
'+ '
'; - $("#"+option.elem).html(iframe+loading); + $("#"+option.elem).html("
"+header+iframe+loading+"
"); } exports(MOD_NAME,new pearFrame()); }) \ No newline at end of file