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 2d544cc456..377c3f9db1 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/ComponentWrapper.vue @@ -209,9 +209,10 @@ 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 ) diff --git a/core/core-frontend/src/custom-component/common/CommonAttr.vue b/core/core-frontend/src/custom-component/common/CommonAttr.vue index 35bdaf2941..fe24ecf702 100644 --- a/core/core-frontend/src/custom-component/common/CommonAttr.vue +++ b/core/core-frontend/src/custom-component/common/CommonAttr.vue @@ -96,10 +96,9 @@ const colorPickerWidth = computed(() => { // 暂时关闭 const eventsShow = computed(() => { return ( - !dashboardActive.value && ['Picture', 'CanvasIcon', 'CircleShape', 'SvgTriangle', 'RectShape', 'ScrollText'].includes( element.value.component - ) + ) || element.value.innerType === 'rich-text' ) }) @@ -169,10 +168,10 @@ const stopEvent = e => { v-if="element && element.events && eventsShow" :effect="themes" title="事件" - name="style" + name="events" class="common-style-area" > - + diff --git a/core/core-frontend/src/custom-component/common/CommonEvent.vue b/core/core-frontend/src/custom-component/common/CommonEvent.vue index 697c4d58b7..d2485739cc 100644 --- a/core/core-frontend/src/custom-component/common/CommonEvent.vue +++ b/core/core-frontend/src/custom-component/common/CommonEvent.vue @@ -1,5 +1,5 @@