From 441116b9fc21fd05b1bfade0ffc7c52ca3efb8f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 18 Sep 2024 16:58:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/drag-group/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/drag-group/index.vue b/src/components/common/drag-group/index.vue index c04fb321..d464ea73 100644 --- a/src/components/common/drag-group/index.vue +++ b/src/components/common/drag-group/index.vue @@ -47,7 +47,7 @@ onUnmounted(() => { const edit_index = ref(-1); // 判断点击的是否是可以点击的区域,其他区域隐藏掉编辑属性 const outerClick = (e: any) => { - if ((!isEmpty(e.target.className) && !e.target.className.includes('do-not-trigger')) || (!isEmpty(e.target.parentNode.className) && !e.target.parentNode.className.includes('do-not-trigger'))) { + if (!isEmpty(e.target.className) && !e.target.className.includes('do-not-trigger') && !isEmpty(e.target.parentNode.className) && !e.target.parentNode.className.includes('do-not-trigger')) { edit_close_processing(edit_index.value); edit_index.value = -1; } From 7c553be223aca7e8d87b8c57b1abcb7e57cb8cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Wed, 18 Sep 2024 17:02:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/drag-group/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/common/drag-group/index.vue b/src/components/common/drag-group/index.vue index d464ea73..8bcce21a 100644 --- a/src/components/common/drag-group/index.vue +++ b/src/components/common/drag-group/index.vue @@ -47,7 +47,7 @@ onUnmounted(() => { const edit_index = ref(-1); // 判断点击的是否是可以点击的区域,其他区域隐藏掉编辑属性 const outerClick = (e: any) => { - if (!isEmpty(e.target.className) && !e.target.className.includes('do-not-trigger') && !isEmpty(e.target.parentNode.className) && !e.target.parentNode.className.includes('do-not-trigger')) { + if (!e.target.className.includes('do-not-trigger') && !e.target.parentNode.className.includes('do-not-trigger')) { edit_close_processing(edit_index.value); edit_index.value = -1; }