From 146855a6dab6af7401f59278c9a1d83a5bd9a4fd Mon Sep 17 00:00:00 2001 From: tanhao <2424726204@qq.com> Date: Wed, 7 Jun 2023 17:33:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=B0=E5=9B=BE=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8B=E7=BA=A7=E8=BF=9B=E5=85=A5=E3=80=81?= =?UTF-8?q?=E9=A3=9E=E8=A1=8C=E8=BD=A8=E8=BF=B9=E8=BF=90=E5=8A=A8=EF=BC=8C?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E7=BB=84=E4=BB=B6=E4=BF=AE=E5=A4=8D=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=8D=A1=E9=A1=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Charts/Maps/MapBase/config.ts | 25 +++- .../components/Charts/Maps/MapBase/config.vue | 52 +++++++- .../components/Charts/Maps/MapBase/data.json | 117 ++++++++++++++++-- .../components/Charts/Maps/MapBase/index.vue | 99 +++++++++++++-- .../components/ChartsItemBox/index.vue | 29 +++-- 5 files changed, 289 insertions(+), 33 deletions(-) diff --git a/src/packages/components/Charts/Maps/MapBase/config.ts b/src/packages/components/Charts/Maps/MapBase/config.ts index 888fe6b7..d8a92446 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 + enter: false, + showHainanIsLands: false, + backSize: 50, + backColor: '#ffffff' }, tooltip: { show: true, @@ -145,6 +148,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: .3 //尾迹线条曲直度 + } + }, + data: [] } ] } diff --git a/src/packages/components/Charts/Maps/MapBase/config.vue b/src/packages/components/Charts/Maps/MapBase/config.vue index b3ef4961..e1436c05 100644 --- a/src/packages/components/Charts/Maps/MapBase/config.vue +++ b/src/packages/components/Charts/Maps/MapBase/config.vue @@ -1,7 +1,7 @@ + + \ No newline at end of file diff --git a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue index cca0c4a1..6b23a809 100644 --- a/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue +++ b/src/views/chart/ContentCharts/components/ChartsItemBox/index.vue @@ -18,18 +18,14 @@ >
- - {{ item.title }} - + {{ item.title }}
- - {{ item.title }} - + {{ item.title }}
@@ -206,12 +202,21 @@ $halfCenterHeight: 50px; display: flex; align-items: center; justify-content: space-between; - padding: 2px 15px; + padding: 2px 6px 2px 15px; @include fetch-bg-color('background-color3'); &-text { font-size: 12px; margin-left: 8px; user-select: none; + white-space: nowrap; + flex: 1; + width: 0; + text-align: right; + overflow: hidden; + text-overflow: ellipsis; + display: inline-block; + transition: color .3s var(--n-bezier); + color: #99999a; } } .list-center { @@ -231,6 +236,13 @@ $halfCenterHeight: 50px; .list-bottom-text { font-size: 12px; padding-left: 5px; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + display: inline-block; + transition: color .3s var(--n-bezier); + color: #99999a; + max-width: 90%; } } .list-model { @@ -294,7 +306,8 @@ $halfCenterHeight: 50px; } } .list-bottom { - display: block; + display: flex; + align-items: center; } } /* 缩小展示 */