From 834aacbc19ac0ab5656e3e64af8909adf7e3ce86 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 24 Nov 2022 14:21:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E4=BB=AA=E8=A1=A8):=20=E4=BF=AE=E5=A4=8DTa?= =?UTF-8?q?b=E7=BB=84=E4=BB=B6=E9=A2=84=E8=A7=88=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=94=BE=E5=A4=A7=E5=86=85=E9=83=A8=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/editor/ComponentWrapper.vue | 4 +-- frontend/src/views/panel/edit/index.vue | 34 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue index 4a757dd5fc..289774c142 100644 --- a/frontend/src/components/canvas/components/editor/ComponentWrapper.vue +++ b/frontend/src/components/canvas/components/editor/ComponentWrapper.vue @@ -199,7 +199,7 @@ export default { return style }, componentActiveFlag() { - return !this.mobileLayoutStatus && ((this.curComponent && this.config === this.curComponent && !this.previewVisible && !this.showPosition.includes('email-task')) || this.showPosition.includes('multiplexing')) + return !this.mobileLayoutStatus && ((this.curComponent && this.config.id === this.curComponent.id && !this.previewVisible && !this.showPosition.includes('email-task')) || this.showPosition.includes('multiplexing')) }, scale() { return Math.min(this.previewCanvasScale.scalePointWidth, this.previewCanvasScale.scalePointHeight) @@ -274,7 +274,7 @@ export default { } else { return { ... - getStyle(style, ['top', 'left', 'width', 'height', 'rotate']), + getStyle(style, ['top', 'left', 'width', 'height', 'rotate']), position: 'relative' } } diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 1634189267..41080baef7 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -165,8 +165,8 @@ v-show=" show &&showIndex===1" :canvas-id="canvasId" /> - - + + @@ -181,7 +181,7 @@ :canvas-pid="'0'" @canvasScroll="canvasScroll" > - + - + {{ panelInfo.name }} @@ -215,7 +215,7 @@ :canvas-pid="'0'" :mobile-layout-status="true" > - + @@ -245,14 +245,14 @@ /> - + - + @@ -270,7 +270,7 @@ />
- +
@@ -283,10 +283,11 @@ @click="changeRightDrawOpen(false)" /> - {{ $t('panel.position_adjust') }} + {{ $t('panel.position_adjust') }} - +
@@ -445,7 +446,8 @@ /> - {{ $t('panel.panel_cache_use_tips') }} + {{ $t('panel.panel_cache_use_tips') }}
{ - if (this.show) { - this.showIndex === -1 + if (this.show) { + this.showIndex === -1 + } + this.show = !this.show } - this.show = !this.show - } ) } this.showIndex = type