From 19165c76d5ed6728517dd923099ca8c1d63b4577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Sat, 16 Sep 2023 16:52:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8A=BD=E5=8F=96PR=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E4=B8=8B=E9=92=BB=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Maps/MapBase/config.ts | 31 +- .../components/Charts/Maps/MapBase/config.vue | 67 ++- .../components/Charts/Maps/MapBase/data.json | 26 ++ .../components/Charts/Maps/MapBase/index.vue | 412 +++++++++++------- 4 files changed, 369 insertions(+), 167 deletions(-) diff --git a/src/packages/components/Charts/Maps/MapBase/config.ts b/src/packages/components/Charts/Maps/MapBase/config.ts index dd020e50..d9844001 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.ts +++ b/src/packages/components/Charts/Maps/MapBase/config.ts @@ -11,7 +11,10 @@ export const option = { dataset: dataJson, mapRegion: { adcode: 'china', - showHainanIsLands: true + showHainanIsLands: true, + enter: false, + backSize: 20, + backColor: '#ffffff' }, tooltip: { show: true, @@ -103,19 +106,19 @@ export const option = { borderColor: 'rgba(147, 235, 248, 0.8)', textStyle: { color: '#FFFFFF', - fontSize: 12, + fontSize: 12 } }, label: { show: false, color: '#FFFFFF', - fontSize: 12, + fontSize: 12 }, emphasis: { disabled: false, label: { color: '#FFFFFF', - fontSize: 12, + fontSize: 12 }, itemStyle: { areaColor: '#389BB7', @@ -148,6 +151,26 @@ export const option = { shadowOffsetY: 2, shadowBlur: 10 } + }, + { + type: 'lines', + zlevel: 2, + effect: { + show: true, + period: 4, //箭头指向速度,值越小速度越快 + trailLength: 0.4, //特效尾迹长度[0,1]值越大,尾迹越长重 + symbol: 'arrow', //箭头图标 + symbolSize: 7 //图标大小 + }, + lineStyle: { + normal: { + color: '#4fb6d2', + width: 1, //线条宽度 + opacity: 0.1, //尾迹线条透明度 + curveness: 0.3 //尾迹线条曲直度 + } + }, + data: [] } ] } diff --git a/src/packages/components/Charts/Maps/MapBase/config.vue b/src/packages/components/Charts/Maps/MapBase/config.vue index b3ef4961..e0363d8f 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.vue +++ b/src/packages/components/Charts/Maps/MapBase/config.vue @@ -69,11 +69,7 @@ - + - + @@ -180,6 +176,22 @@ 显示南海群岛 + + 点击进入下级 + + + + + + + + + @@ -191,7 +203,7 @@ - + @@ -223,6 +235,47 @@ + + + + + + + 值越小速度越快 + + + + + + 特效尾迹长度[0,1]值越大,尾迹越长重 + + + + + + + + + + + + + + + + + + + +