From bf2ea2a2c6949459e8055709cad6719c1ab72576 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 12 Aug 2024 17:25:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E6=8C=87=E6=A0=87?= =?UTF-8?q?=E5=8D=A1=E3=80=81=E5=AF=8C=E6=96=87=E6=9C=AC=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E8=AE=BE=E7=BD=AE=20#10960?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/ComponentWrapper.vue | 8 ++++---- .../src/custom-component/common/CommonAttr.vue | 2 +- .../src/custom-component/common/CommonEvent.vue | 14 +++++++++++--- .../src/custom-component/component-list.ts | 4 +++- core/core-frontend/src/utils/canvasUtils.ts | 4 +++- .../components/editor/editor-style/ChartStyle.vue | 6 +++++- 6 files changed, 27 insertions(+), 11 deletions(-) diff --git a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue index 821e72d8e6..f903fcfc67 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -209,12 +209,12 @@ const onPointClick = param => { const eventEnable = computed( () => - (['Picture', 'CanvasIcon', 'CircleShape', 'SvgTriangle', 'RectShape', 'ScrollText'].includes( + ['Picture', 'CanvasIcon', 'CircleShape', 'SvgTriangle', 'RectShape', 'ScrollText'].includes( config.value.component ) || - config.value.innerType === 'rich-text') && - config.value.events && - config.value.events.checked + (['indicator', 'rich-text'].includes(config.value.innerType) && + config.value.events && + config.value.events.checked) ) const onWrapperClick = e => { diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index 0c8874f0ea..56aee1c0e7 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -2,7 +2,7 @@ import { computed, nextTick, onMounted, ref, toRefs } from 'vue' import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain' import { storeToRefs } from 'pinia' -import { styleData, selectKey, optionMap, horizontalPosition } from '@/utils/attr' +import { styleData } from '@/utils/attr' import ComponentPosition from '@/components/visualization/common/ComponentPosition.vue' import BackgroundOverallCommon from '@/components/visualization/component-background/BackgroundOverallCommon.vue' import { useI18n } from '@/hooks/web/useI18n' diff --git a/core/core-frontend/src/custom-component/common/CommonEvent.vue b/core/core-frontend/src/custom-component/common/CommonEvent.vue index d2485739cc..1efdedfc5a 100644 --- a/core/core-frontend/src/custom-component/common/CommonEvent.vue +++ b/core/core-frontend/src/custom-component/common/CommonEvent.vue @@ -1,8 +1,10 @@