From b374bcddb17d88b9ac8be666488870c009cfc444 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Fri, 22 Dec 2023 15:25:26 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BC=A0=E6=A0=87=E5=9C=A8=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=AD=97=E4=BD=93=E4=B8=8A=E4=B9=9F=E5=8F=AF?= =?UTF-8?q?=E6=8B=96=E6=8B=BD=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/DraggableDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/common/DraggableDialog.vue b/src/components/common/DraggableDialog.vue index 65310a8..31cc8f6 100644 --- a/src/components/common/DraggableDialog.vue +++ b/src/components/common/DraggableDialog.vue @@ -27,7 +27,7 @@ :style="`height: ${props.titleHeight}px;background: ${props.titleColor}`" >
{{ props.title }}
@@ -113,7 +113,7 @@ function onMouseUp() { startOffset.y = 0; } function onMouseDown(e: MouseEvent) { - if (headerRef.value?.$el !== e.target) return; + if (!e.target || !headerRef.value?.$el.contains(e.target)) return; startOffset.x = e.offsetX; startOffset.y = e.offsetY; start.x = e.clientX - offset.x;