From 990b0ee4b4a4b4345cf56a6942958b673c94ea52 Mon Sep 17 00:00:00 2001 From: xudan Date: Tue, 23 Sep 2025 18:33:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=B8=8A=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E8=8F=9C=E5=8D=95=E6=8B=96=E6=8B=BD=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E9=87=8D=E5=91=BD=E5=90=8D=E4=BD=8D=E7=BD=AE=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E4=BB=A5=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=8F=AF?= =?UTF-8?q?=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/context-menu/context-menu.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/context-menu/context-menu.vue b/src/components/context-menu/context-menu.vue index 64d19c8..d0afb09 100644 --- a/src/components/context-menu/context-menu.vue +++ b/src/components/context-menu/context-menu.vue @@ -69,7 +69,11 @@ const emit = defineEmits(); const menuRef = ref(null); const handleRef = ref(null); -const { x, y, style } = useDraggable(menuRef, { +const { + x: positionX, + y: positionY, + style, +} = useDraggable(menuRef, { handle: handleRef, }); @@ -77,8 +81,8 @@ watch( () => props.visible, (isVisible) => { if (isVisible) { - x.value = props.x; - y.value = props.y; + positionX.value = props.x; + positionY.value = props.y; } }, );