From 2936884c9094348516518086c469bc9db637341a Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 24 Nov 2020 17:05:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=BC=80?= =?UTF-8?q?=E5=90=AF=E4=B8=80=E4=B8=AA=E5=BA=95=E9=83=A8=E4=BE=A7=E6=BB=91?= =?UTF-8?q?=E5=90=8E=20=E5=86=8D=E5=BC=80=E5=90=AFterminal=E5=90=8E=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=AB=98=E5=BA=A6=20=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E9=94=99=E4=B9=B1=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/cli/webSSH.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/nezha-fronted/src/components/cli/webSSH.vue b/nezha-fronted/src/components/cli/webSSH.vue index a92d9ca79..313076bd4 100644 --- a/nezha-fronted/src/components/cli/webSSH.vue +++ b/nezha-fronted/src/components/cli/webSSH.vue @@ -7,9 +7,9 @@
--> -
+
-
+
@@ -318,6 +318,8 @@ window.removeEventListener('resize',this.windowChange); this.closeConfirmShow = false; + let subListDom = document.querySelector("#shell-service .sub-list"); //副列表 + subListDom.style.height = "250px"; }, handleClick(){ @@ -552,20 +554,20 @@ },*/ dragEagle(e) { //let mainListDom = document.querySelector(".main-list"); //主列表 - let subBoxDom = document.querySelector(".sub-box"); //副列表 - let subListDom = document.querySelector(".sub-list"); //副列表 + let subBoxDom = document.querySelector("#shell-service.sub-box"); //副列表 + let subListDom = document.querySelector("#shell-service .sub-list"); //副列表 let contentRightDom = document.querySelector(".content-right"); //右侧内容区 let resizeBarHeight = 9; //resize横条高度 let minHeight = 15; //terminal最小高度限制为15 //let contentHideHeight = 100; //主、副列表高度低于100时隐藏内容 //let mainModalDom = document.querySelector(".main-modal"); //主列表遮罩 - let resizeModalDom = document.querySelector(".resize-modal"); //副列表遮罩 - let resizeBarDom = document.querySelector(".sub-list-resize"); //拖动条 + let resizeModalDom = document.querySelector("#shell-service .resize-modal"); //副列表遮罩 + let resizeBarDom = document.querySelector("#shell-service .sub-list-resize"); //拖动条 let contentRightHeight = contentRightDom.offsetHeight;//可视高度 //点击时俩dom的初始高度: let subInitialHeight = subListDom.offsetHeight+resizeBarHeight; - + console.log(subListDom.offsetHeight); //mainModalDom.style.display = "block"; resizeModalDom.style.cssText = `height: ${subInitialHeight}px; display: block;`; resizeBarDom.style.display = "none";