From d56fc014c4d1a686dbf61ac542e27e57a04866f4 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 20 May 2021 11:18:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=AA=E8=A1=A8=E7=9B=98=E7=BC=96?= =?UTF-8?q?=E8=BE=91=20=E5=81=9A=E5=87=BA=E8=8F=9C=E5=8D=95=E4=B8=8D?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/PreviewEject.vue | 3 +- frontend/src/views/panel/ViewSelect/index.vue | 2 +- frontend/src/views/panel/edit/index.vue | 160 +++++++++++------- 3 files changed, 101 insertions(+), 64 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/PreviewEject.vue b/frontend/src/components/canvas/components/Editor/PreviewEject.vue index 62bad79e79..9e84d2b3eb 100644 --- a/frontend/src/components/canvas/components/Editor/PreviewEject.vue +++ b/frontend/src/components/canvas/components/Editor/PreviewEject.vue @@ -57,7 +57,7 @@ export default { customStyle() { let style = {} if (this.canvasStyleData.openCommonStyle) { - if (this.canvasStyleData.panel.backgroundType === 'image'&&this.canvasStyleData.panel.imageUrl) { + if (this.canvasStyleData.panel.backgroundType === 'image' && this.canvasStyleData.panel.imageUrl) { style = { width: '100%', height: '100%', @@ -80,6 +80,7 @@ export default { mounted() { const _this = this + debugger // 加载数据 _this.restore() const erd = elementResizeDetectorMaker() diff --git a/frontend/src/views/panel/ViewSelect/index.vue b/frontend/src/views/panel/ViewSelect/index.vue index a902115051..83367c9260 100644 --- a/frontend/src/views/panel/ViewSelect/index.vue +++ b/frontend/src/views/panel/ViewSelect/index.vue @@ -128,7 +128,7 @@ export default { overflow-y : auto } .detail-class { - width: 100%; + width: 300px; position: fixed; bottom: 0px; } diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 151d316117..af4dae2521 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -11,66 +11,82 @@ - - - -
-
- -
- + + +
+
+ test + +
+ +
+ +
+
+ {{ $t('panel.view') }}
- -
-
- {{ $t('panel.view') }} +
+ +
+
+
+ +
+
+
+
-
- -
-
-
- -
-
-
- -
-
-
- {{ $t('panel.module') }} -
+
+
+ {{ $t('panel.module') }}
-
-
-
-
- - - -
-
-
- +
+ + + + + + + + + + + - - -
- -
-
- - + + + + + + + + +
+ +
+
+ { this.show = false }) @@ -222,7 +240,10 @@ export default { this.$router.replace('/panel/index') }, showPanel(type) { - this.show = !this.show + debugger + if (this.showIndex === -1 || this.showIndex === type) { + this.show = !this.show + } this.showIndex = type }, addEventClick() { @@ -230,7 +251,7 @@ export default { }, closeSidebar(evt) { const parent = evt.target.closest('.button-div-class') - const self = evt.target.closest('.leftPanel') + const self = evt.target.closest('.el-drawer__wrapper') // 点击样式按钮 排除 const stick = evt.target.closest('.el-icon-magic-stick') if (!parent && !self && !stick) { @@ -239,13 +260,13 @@ export default { this.showIndex = -1 } }, - insertToBody() { - this.$nextTick(() => { - const elx = this.$refs.leftPanel - const body = document.querySelector('body') - body.insertBefore(elx, body.firstChild) - }) - }, + // insertToBody() { + // this.$nextTick(() => { + // const elx = this.$refs.leftPanel + // const body = document.querySelector('body') + // body.insertBefore(elx, body.firstChild) + // }) + // }, resetID(data) { if (data) { @@ -422,4 +443,19 @@ export default { } } +.this_canvas{ + height: calc(100vh - 91px); + overflow: auto; +} +.el-main{ + height: calc(100vh - 91px); + padding: 0!important; + overflow: auto; + position: relative; +} + +.el-main >>> .el-drawer__wrapper{ + width: 310px!important; +} +