From 01276cb61b378932cd47da80e9f33b7260962365 Mon Sep 17 00:00:00 2001 From: fofolee Date: Thu, 28 Apr 2022 22:41:31 +0800 Subject: [PATCH] =?UTF-8?q?iframe=E9=AB=98=E5=BA=A6=E7=AE=97=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandRunResult.vue | 2 -- src/components/ResultArea.vue | 10 +++------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue index 6937292..008fcec 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -24,7 +24,6 @@ :enableHtml="enableHtml" :runResultStatus="runResultStatus" :runResult="runResult" - :maxHeight="maxHeight" :key="timeStamp" /> @@ -39,7 +38,6 @@ :enableHtml="enableHtml" :runResultStatus="runResultStatus" :runResult="runResult" - :maxHeight="maxHeight" :key="timeStamp" /> diff --git a/src/components/ResultArea.vue b/src/components/ResultArea.vue index 08ace8c..45fbdfe 100644 --- a/src/components/ResultArea.vue +++ b/src/components/ResultArea.vue @@ -58,7 +58,6 @@ export default { enableHtml: Boolean, runResultStatus: Boolean, runResult: Object, - maxHeight: Number, frameInitHeight: Number, }, computed: { @@ -90,12 +89,9 @@ export default { }; Object.assign(cfw, ctx); cfw.onload = () => { - this.frameHeight = Math.min( - cfw.document.body.innerText - ? cfw.document.documentElement.getBoundingClientRect().height - : 0, - this.maxHeight - ); + this.frameHeight = cfw.document.body.innerText + ? cfw.document.documentElement.getBoundingClientRect().height + : 0; this.$emit("frameLoad", this.frameHeight); }; },