From 702fedbe241137b8578424ebebe0e7f995d05ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Mon, 24 Jul 2023 14:30:17 +0800 Subject: [PATCH] =?UTF-8?q?CN-1119=20fix:=20NPM=E9=A1=B5=E9=9D=A2=E5=9C=B0?= =?UTF-8?q?=E7=90=86=E4=BD=8D=E7=BD=AE=E6=A8=A1=E5=9D=97=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E7=9A=84=E5=90=9E=E5=90=90=E9=87=8F=E8=B6=8B=E5=8A=BF=E5=9B=BE?= =?UTF-8?q?=EF=BC=8C=E9=BC=A0=E6=A0=87=E6=82=AC=E6=B5=AE=E5=9C=A8=E8=B6=8B?= =?UTF-8?q?=E5=8A=BF=E5=9B=BE=E4=B8=8A=E4=B8=8E=E9=BC=A0=E6=A0=87=E6=9C=AA?= =?UTF-8?q?=E6=82=AC=E6=B5=AE=E6=97=B6=E7=9A=84=E8=B6=8B=E5=8A=BF=E5=9B=BE?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmLine.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/npm/NpmLine.vue b/src/views/charts2/charts/npm/NpmLine.vue index 0556482f..95f7ccbc 100644 --- a/src/views/charts2/charts/npm/NpmLine.vue +++ b/src/views/charts2/charts/npm/NpmLine.vue @@ -93,7 +93,8 @@ export default { country: this.$store.state.panel.npmLocationCountry, // province: '', showError: false, - errorMsg: '' + errorMsg: '', + sizes: [3, 4, 6, 8, 9, 10] } }, watch: { @@ -185,7 +186,12 @@ export default { smooth: true, showSymbol: false, emphasis: { - focus: 'series' + itemStyle: { + borderColor: t.color, + borderWidth: 2, + shadowColor: t.color, + shadowBlur: t.positioning ? this.sizes[t.positioning] + 2 : 0 + } }, name: t.legend ? t.legend : this.$t(chartData.i18n) || chartData.name, stack: this.chartData.params.isStack ? 'network.total' : '',