From fbf71ee2ac6e83819b3c8a8c1b6e8f1643fe5057 Mon Sep 17 00:00:00 2001 From: jmal Date: Fri, 26 Aug 2022 22:28:49 +0800 Subject: [PATCH] =?UTF-8?q?:art:=E4=BC=98=E5=8C=96=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=9B=BE=E7=95=8C=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/office/Drawio.vue | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/office/Drawio.vue b/src/components/office/Drawio.vue index a73ce08..10bdbb9 100644 --- a/src/components/office/Drawio.vue +++ b/src/components/office/Drawio.vue @@ -140,6 +140,9 @@ export default { this.reday = true this.$emit('onReady') this.updateContent() + let doc = this.$refs.myFlow.contentWindow.document + let helpMenu = doc.querySelector('.geMenubarContainer .geMenubar').childNodes[5] + helpMenu.style.display = 'none' break case "load": if (this.xml.length < 1) { @@ -177,30 +180,31 @@ export default { height: 100%; .drawio-title { - text-align: center; + text-align: left; background-color: #fbfbfb; z-index: 2001; position: absolute; top: 0; - width: 100%; - height: 10px; + width: 50%; + margin-left: 50%; + height: 0; .drawio-title-name { - line-height: 40px; + line-height: 32px; } .drawio-save { float: right; - margin-top: -40px; - margin-right: 30px; - line-height: 40px; + margin-top: -32px; + margin-right: 32px; + line-height: 32px; } } .drawio-iframe { z-index: 1999; position: absolute; - top: 10px; + top: 2px; left: 0; width: 100%; height: 100%;