From 872fbec4c6d4f230896fbd46d32c6749c439ba84 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 20 Apr 2026 19:27:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E4=BD=8D=E7=BD=AE=E5=90=91=E4=B8=8B=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/views/index.vue | 152 +++++++++--------- 1 file changed, 74 insertions(+), 78 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 28671e896e..1ff20d6d97 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -1000,17 +1000,6 @@ const iconSize = computed(() => { return 16 * scale.value + 'px' }) -/** - * 保证标题容器高度最小高度不低于图标高度 - */ -const titleContainerMinHeight = computed(() => { - if (['picture-group', 'rich-text'].includes(element.value.innerType)) { - return '0px' - } else if (!titleShow.value) { - return 16 * scale.value + 4 + 'px' - } - return 16 * scale.value + 'px' -}) /** * 修改透明度 * 边框透明度为0时会是存色,顾配置低透明度 @@ -1148,8 +1137,7 @@ const clearG2Tooltip = () => { class="title-container" :style="{ 'justify-content': titleAlign, - 'margin-bottom': marginBottom, - 'min-height': titleContainerMinHeight + 'margin-bottom': marginBottom }" > -
- - - - - - - - - - - - +
- - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
@@ -1367,25 +1358,30 @@ const clearG2Tooltip = () => { gap: 8px; - .icons-container { - display: inline-flex; - flex-direction: row; - align-items: center; - flex-wrap: nowrap; - gap: 8px; + .icons-container-out { + position: relative; + .icons-container { + position: absolute; + left: 0; + display: inline-flex; + flex-direction: row; + align-items: center; + flex-wrap: nowrap; + gap: 8px; - color: #646a73; + color: #646a73; - &.icons-container__dark { - color: #a6a6a6; - } + &.icons-container__dark { + color: #a6a6a6; + } - &.is-editing { - gap: 6px; - } + &.is-editing { + gap: 6px; + } - .inner-icon { - cursor: pointer; + .inner-icon { + cursor: pointer; + } } } }