From 61679c8157f1277581a379dc89bd1025e0a5e183 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Sat, 15 Jan 2022 11:19:33 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E7=9B=B4=E7=BA=BF=E9=80=89=E4=B8=AD?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/element/LineElement/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/components/element/LineElement/index.vue b/src/views/components/element/LineElement/index.vue index 30e9e42c..0c987ee4 100644 --- a/src/views/components/element/LineElement/index.vue +++ b/src/views/components/element/LineElement/index.vue @@ -35,6 +35,7 @@ /> .editable-element-shape { position: absolute; + pointer-events: none; - &.lock .line-path { - cursor: default; + &.lock { + .line-path, .line-point { + cursor: default; + } } } @@ -144,7 +148,8 @@ export default defineComponent({ overflow: visible; } } -.line-path { +.line-path, .line-point { + pointer-events: all; cursor: move; }