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 @@