From 66d4f7b21e22e7e79332b529390d15c73439410b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 8 Jul 2021 10:51:09 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=E4=BB=AA=E8=A1=A8=E6=9D=BF=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=96=87=E6=9C=AC=E5=92=8C=E7=9F=A9=E5=BD=A2=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=82=AC=E6=B5=AE=E6=A0=B7=E5=BC=8F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=BB=84=E4=BB=B6=E4=BE=9D=E7=84=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/components/Editor/ContextMenu.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/canvas/components/Editor/ContextMenu.vue b/frontend/src/components/canvas/components/Editor/ContextMenu.vue index 2806cec0df..e3fddce02d 100644 --- a/frontend/src/components/canvas/components/Editor/ContextMenu.vue +++ b/frontend/src/components/canvas/components/Editor/ContextMenu.vue @@ -94,6 +94,7 @@ export default { this.deleteCurCondition() this.$store.commit('deleteComponent') this.$store.commit('recordSnapshot') + this.$store.commit('setCurComponent', { component: null, index: null }) }, deleteCurCondition() { From 9755fdf4e251732cbbfde0c455a6c622acd1ac97 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 8 Jul 2021 11:18:02 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=E3=80=90=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E3=80=91=E6=8B=96=E6=94=BE=E8=A7=86=E5=9B=BE=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E9=97=B4=E4=BD=8D=E7=BD=AE=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=A1=8C=E5=88=97=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/canvas/components/Editor/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/canvas/components/Editor/index.vue b/frontend/src/components/canvas/components/Editor/index.vue index 6119004f42..6a3909799e 100644 --- a/frontend/src/components/canvas/components/Editor/index.vue +++ b/frontend/src/components/canvas/components/Editor/index.vue @@ -28,7 +28,7 @@ class-name-active="de-drag-active" :class="{'gap_class':canvasStyleData.panel.gap==='yes'}" :snap="true" - :snap-tolerance="1" + :snap-tolerance="2" :change-style="customStyle" @refLineParams="getRefLineParams" > @@ -84,6 +84,12 @@ height: item.lineLength, }" /> + @@ -521,7 +527,7 @@ export default { } }, getRefLineParams(params) { - // console.log(params) + // console.log(JSON.stringify(params)) const { vLine, hLine } = params this.vLine = vLine this.hLine = hLine