From 46ff3533f3c4f44e58c7e29f9ccab164e0a190f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=8A=B2=E6=9D=BE?= Date: Wed, 21 Oct 2020 18:43:47 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-421=20perf:=20=E4=BF=AE=E5=A4=8D=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E6=A1=86=E4=BD=8D=E7=BD=AE=EF=BC=9B=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=9C=86=E5=BF=83=E6=95=B0=E6=8D=AE=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/dashboard/overview/chartConfig.vue | 5 ++- .../page/dashboard/overview/overview2.scss | 9 +++++ .../page/dashboard/overview/overview2.vue | 38 ++++++++++++++----- 3 files changed, 41 insertions(+), 11 deletions(-) diff --git a/nezha-fronted/src/components/page/dashboard/overview/chartConfig.vue b/nezha-fronted/src/components/page/dashboard/overview/chartConfig.vue index 151697b60..781dccecc 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/chartConfig.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/chartConfig.vue @@ -474,7 +474,10 @@ radius: [14, 22], data: [], label: { - show: false + show: true, + formatter: "", + color: "#666666", + position: "center", } } ] diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview2.scss b/nezha-fronted/src/components/page/dashboard/overview/overview2.scss index b220a4114..512595c78 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/overview2.scss +++ b/nezha-fronted/src/components/page/dashboard/overview/overview2.scss @@ -376,6 +376,15 @@ width: 390px; height: 285px; } +.leaflet-pane.leaflet-my-pane { + position: absolute; + top: -150px; + left: -420px; + + .leaflet-tooltip { + transform: unset !important; + } +} .tooltip--title { color: #333333; font-size: 14px; diff --git a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue index 55bfcdb0f..e8cdf9106 100644 --- a/nezha-fronted/src/components/page/dashboard/overview/overview2.vue +++ b/nezha-fronted/src/components/page/dashboard/overview/overview2.vue @@ -1,5 +1,7 @@