From dad20127a1550fb220ad9c46503a8c2cd32dfd52 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Wed, 26 Feb 2025 22:10:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=9A=E4=B8=AAkey=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/AppMain/data.ts | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/layout/components/AppMain/data.ts b/src/layout/components/AppMain/data.ts index 3c71e49..57e6d10 100644 --- a/src/layout/components/AppMain/data.ts +++ b/src/layout/components/AppMain/data.ts @@ -13,7 +13,10 @@ const option = ref({ }, tooltip: {}, legend: { - data: ['出园', '入园'], + data: [ + { name: '出园', icon: 'rect', itemStyle: { color: '#4182FF' } }, + { name: '入园', icon: 'rect', itemStyle: { color: '#00FFFF' } }, + ], icon: 'rect', right: 0, top: 0, @@ -21,10 +24,6 @@ const option = ref({ orient: 'horizontal', align: 'left', textStyle: { fontSize: 14, color: '#fff' }, - data: [ - { name: '出园', icon: 'rect', itemStyle: { color: '#4182FF' } }, - { name: '入园', icon: 'rect', itemStyle: { color: '#00FFFF' } }, - ], }, xAxis: { type: 'category', @@ -50,12 +49,6 @@ const option = ref({ type: 'line', data: [3, 9, 2, 8, 3, 4, 8], smooth: true, - itemStyle: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { offset: 0, color: '#00FFFF' }, - { offset: 1, color: 'rgba(0,255,255,0)' }, - ]), - }, symbol: 'circle', symbolSize: 10, areaStyle: {