From 6b3782a926904b2aad1a165d22f442a6d4925f3d Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 12 Jan 2024 18:44:04 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=A4=9A=E9=80=89=E5=87=A0=E4=B8=AA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=EF=BC=8C=E4=B8=8A=E4=B8=8B=E5=B7=A6=E5=8F=B3?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E5=AF=B9=E9=BD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../canvas/ContextMenuDetails.vue | 39 ++++++++++++++++-- .../modules/data-visualization/compose.ts | 40 +++++++++++++++++++ 2 files changed, 75 insertions(+), 4 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue b/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue index e32beddc99..d77debce8d 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ContextMenuDetails.vue @@ -135,6 +135,11 @@ const decompose = () => { menuOpt('decompose') } +const alignment = params => { + composeStore.alignment(params) + snapshotStore.recordSnapshotCache('decompose') +} + // 阻止事件向父级组件传播调用父级的handleMouseDown 导致areaData 被隐藏 const handleComposeMouseDown = e => { e.preventDefault() @@ -147,10 +152,33 @@ const composeDivider = computed(() => {