From e7cb8e63dd1e555b8ac85ae419d4c51d42a16472 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 12 Oct 2021 17:48:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=9F=A9=E9=98=B5=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BF=AE=E6=94=B9=20=E6=96=87=E6=A1=88=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/components/Editor/index.vue | 2 +- .../components/canvas/components/Toolbar.vue | 49 ++++++++++++++----- frontend/src/lang/tw.js | 2 +- frontend/src/lang/zh.js | 2 +- frontend/src/views/panel/edit/index.vue | 6 ++- frontend/src/views/panel/list/PanelList.vue | 4 +- 6 files changed, 45 insertions(+), 20 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index 8e1107895f..e2e7b17f93 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -1682,7 +1682,7 @@ export default { } }, startMoveIn() { - if (this.dragComponentInfo.auxiliaryMatrix) { + if (this.$store.state.dragComponentInfo.auxiliaryMatrix) { const moveInItemInfo = this.$store.state.dragComponentInfo this.addItemBox(moveInItemInfo) // console.log('startMoveIn:') diff --git a/frontend/src/components/canvas/components/Toolbar.vue b/frontend/src/components/canvas/components/Toolbar.vue index c400d1f7cc..201da4765e 100644 --- a/frontend/src/components/canvas/components/Toolbar.vue +++ b/frontend/src/components/canvas/components/Toolbar.vue @@ -12,8 +12,8 @@
@@ -455,7 +455,9 @@ export default { const self = evt.target.closest('.el-drawer__wrapper') // 点击样式按钮 排除 const stick = evt.target.closest('.el-icon-magic-stick') - if (!parent && !self && !stick) { + const xuanfuanniu = evt.target.closest('.icon-xuanfuanniu') + const shujujuzhen = evt.target.closest('.icon-shujujuzhen') + if (!parent && !self && !stick && !xuanfuanniu && !shujujuzhen) { this.show = false window.removeEventListener('click', this.closeSidebar) this.showIndex = -1 diff --git a/frontend/src/views/panel/list/PanelList.vue b/frontend/src/views/panel/list/PanelList.vue index fa0cdb8578..1bb8a1fad0 100644 --- a/frontend/src/views/panel/list/PanelList.vue +++ b/frontend/src/views/panel/list/PanelList.vue @@ -798,11 +798,11 @@ export default { } -