From 3b2682009118cfc010087496dd7bb5772fb6d01b Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Tue, 26 Dec 2023 22:27:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=A7=E5=B1=8F=E7=BB=84?= =?UTF-8?q?=E5=90=88=E6=94=AF=E6=8C=81=E5=8F=8C=E5=87=BB=E5=86=85=E9=83=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=86=8D=E8=A7=A3=E9=94=81=E7=A7=BB=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/CanvasCore.vue | 9 +++++ .../data-visualization/canvas/Shape.vue | 38 ++++++++++++++++-- .../custom-component/common/CanvasGroup.vue | 1 + .../src/custom-component/component-list.ts | 5 +++ .../src/custom-component/group/Component.vue | 39 +++++++++++++++++-- .../modules/data-visualization/compose.ts | 1 + .../modules/data-visualization/dvMain.ts | 9 +++++ core/core-frontend/src/utils/canvasUtils.ts | 1 + .../src/views/data-visualization/index.vue | 1 - 9 files changed, 97 insertions(+), 7 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 4af2b06de1..e6cb00c61d 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/CanvasCore.vue @@ -148,6 +148,11 @@ const props = defineProps({ type: Number, required: false, default: 1 + }, + canvasActive: { + type: Boolean, + required: false, + default: true } }) @@ -1301,6 +1306,7 @@ defineExpose({ :index="index" :class="{ lock: item.isLock && editMode === 'edit' }" :base-cell-info="baseCellInfo" + :canvas-active="canvasActive" @onStartResize="onStartResize($event, item, index)" @onStartMove="onStartMove($event, item, index)" @onMouseUp="onMouseUp($event, item, index)" @@ -1327,6 +1333,7 @@ defineExpose({ :request="item.request" @input="handleInput" :dv-info="dvInfo" + :canvas-active="canvasActive" /> 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 17f32fea59..936e4e1a9d 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/Shape.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/Shape.vue @@ -1,5 +1,5 @@