From 508a578f0b46fd083f5bdcb678d505891e949e73 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 25 Jul 2024 11:40:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F=E6=94=AF=E6=8C=81=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=A0=B7=E5=BC=8F=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/CanvasCore.vue | 13 ++++ .../data-visualization/canvas/Shape.vue | 15 ++-- .../visualization/ComponentEditBar.vue | 6 +- .../editor/editor-style/ChartStyle.vue | 10 ++- .../editor-style/ChartStyleBatchSet.vue | 11 ++- .../src/views/data-visualization/index.vue | 75 +++++++++++-------- 6 files changed, 89 insertions(+), 41 deletions(-) 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 1532403877..daffd76982 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -1371,6 +1371,15 @@ const contextMenuShow = computed(() => { const markLineShow = computed(() => isMainCanvas(canvasId.value)) +// 批量设置 + +const dataVBatchOptAdaptor = () => { + dvMainStore.setBatchOptStatus(true) + areaData.value.components.forEach(component => { + dvMainStore.addCurBatchComponent(component) + }) +} + // 点击事件导致选择区域变更 const groupAreaClickChange = async () => { let groupAreaCom @@ -1378,8 +1387,12 @@ const groupAreaClickChange = async () => { if (groupAreaHis && groupAreaHis.length > 0) { groupAreaCom = groupAreaHis[0] } + if (areaData.value.components.length === 0) { + dvMainStore.setBatchOptStatus(false) + } // 显示Group视括组件 if (areaData.value.components.length > 1) { + dataVBatchOptAdaptor() // 重新计算边界 composeStore.calcComposeArea() if (groupAreaHis.length === 0) { diff --git a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue index 795cdd1e5e..6387da7b24 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -59,7 +59,7 @@ :style="getPointStyle(item)" @mousedown="handleMouseDownOnPoint(item, $event)" > -
+