From 72cdfb8a61ebe6035a3aa775d046f41b41854173 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 25 Nov 2024 11:12:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E5=9C=A8=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E6=97=B6=EF=BC=8C=E6=98=BE=E7=A4=BA=E8=81=94=E5=8A=A8?= =?UTF-8?q?=E3=80=81=E8=B7=B3=E8=BD=AC=E7=AD=89=E6=A0=87=E8=AF=86=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E5=8D=A0=E7=94=A8=E5=9B=BE=E8=A1=A8=E9=AB=98?= =?UTF-8?q?=E5=BA=A6=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=9B=BE=E8=A1=A8=E5=87=BA?= =?UTF-8?q?=E7=8E=B0=E6=8A=96=E5=8A=A8=E5=81=87=E7=9B=B8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/chart/components/views/index.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 2d94dbe92e..57cfeb0b4c 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -879,6 +879,9 @@ const toolTip = computed(() => { }) const marginBottom = computed(() => { + if (!titleShow.value) { + return 0 + } if (titleShow.value || trackMenu.value.length > 0 || state.title_remark.show) { return 12 * scale.value + 'px' } @@ -890,8 +893,22 @@ const iconSize = computed(() => { }) const titleIconStyle = computed(() => { + // 不显示标题时,图标的样式 + const style = { + position: 'absolute', + color: 'rgb(255, 252, 252)', + position: 'absolute', + border: '1px solid rgb(173, 170, 170)', + 'background-color': 'rgba(173, 170, 170)', + 'border-radius': '2px', + padding: '0 2px 0 2px', + top: '2px', + 'z-index': 1, + left: '6px' + } return { - color: canvasStyleData.value.component.seniorStyleSetting.linkageIconColor + color: canvasStyleData.value.component.seniorStyleSetting.linkageIconColor, + ...(titleShow.value ? {} : style) } }) const chartHover = ref(false)