From a7e386d8617108d0e24c90691d94379abbecd4c9 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 26 Jul 2022 14:44:54 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2066=20fix=EF=BC=9Acolumn=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=8A=98=E5=8F=A0=E6=97=B6=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/alert/alertStateInfo.vue | 5 ++--- .../src/components/common/rightBox/chart/chartConfig.vue | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/nezha-fronted/src/components/common/alert/alertStateInfo.vue b/nezha-fronted/src/components/common/alert/alertStateInfo.vue index cdf8ee4d2..2970f58bf 100644 --- a/nezha-fronted/src/components/common/alert/alertStateInfo.vue +++ b/nezha-fronted/src/components/common/alert/alertStateInfo.vue @@ -86,7 +86,7 @@ export default { ? document.body.clientWidth : document.documentElement.clientWidth let leftOffSetView = 0 - let leftOffSet = this.detailList ? -80 : 10 + let leftOffSet = this.detailList ? -60 : 20 let topOffSet = this.detailList ? 60 : 22 let topOffSetView = 0 let labelPosition = { @@ -122,9 +122,8 @@ export default { } if (position.left > clientWidth / 2) { delete labelPosition.left - labelPosition.right = - clientWidth - position.left - leftOffSetView - position.width * 3.3 + 'px' + clientWidth - position.left - leftOffSetView + 'px' } return labelPosition } diff --git a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue index e09f84c05..c6ec0c422 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/chartConfig.vue @@ -488,7 +488,7 @@ - {{item.value}} + {{item.title}}