From d504eeaa9dd7e674024b152582d9926da1ce0edc Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 7 Aug 2024 10:04:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E4=BB=AA?= =?UTF-8?q?=E8=A1=A8=E6=9D=BF=E5=9B=BE=E7=89=87=E5=AF=8C=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E7=AD=89=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../data-visualization/canvas/ComponentWrapper.vue | 5 +++-- .../src/custom-component/common/CommonAttr.vue | 7 +++---- .../src/custom-component/common/CommonEvent.vue | 12 ++++-------- .../components/editor/editor-style/ChartStyle.vue | 12 ++++++++++++ .../src/views/chart/components/editor/index.vue | 1 + 5 files changed, 23 insertions(+), 14 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 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 @@