From fb3fbf339b9e3c59f1db3286ef5caa9b156b2ab7 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 25 Jul 2024 15:01:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):?= =?UTF-8?q?=20=E4=BC=98=E5=8C=96=E8=BF=87=E6=BB=A4=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E6=98=BE=E7=A4=BA=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E9=98=B2=E6=AD=A2=E8=BF=87=E6=BB=A4=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95=E5=81=8F=E7=A7=BB?= =?UTF-8?q?=E5=A4=AA=E5=A4=9A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/data-visualization/canvas/CanvasCore.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue index daffd76982..b3af403303 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -526,6 +526,10 @@ const handleContextMenu = e => { // 组件处于编辑状态的时候 如富文本 不弹出右键菜单 if (!curComponent.value || (curComponent.value && !curComponent.value.editing)) { + if (['VQuery'].includes(curComponent.value.component)) { + left = left * curBaseScale.value + 150 + top = top * curBaseScale.value + curComponent.value.style.top * (1 - curBaseScale.value) + } contextmenuStore.showContextMenu({ top, left, position: 'canvasCore' }) const iconDom = document.getElementById('close-button') if (iconDom) {