From 3c67956186ac6d867ee10ef82bc457f573657447 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 17 Apr 2024 12:24:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=A9=E6=94=BE=E6=8C=89=E9=92=AE=E9=85=8D?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E9=A1=B9=EF=BC=8C=E9=80=82=E5=BA=94=E6=B5=85?= =?UTF-8?q?=E8=89=B2=E5=92=8C=E6=B7=B1=E8=89=B2=E6=A8=A1=E5=BC=8F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/zh-CN.ts | 4 +- .../src/models/chart/chart-attr.d.ts | 15 +++- .../editor-senior/components/MapMapping.vue | 10 --- .../components/BasicStyleSelector.vue | 53 +++++++++-- .../chart/components/editor/util/chart.ts | 21 +++-- .../js/panel/charts/map/bubble-map.ts | 12 +-- .../components/js/panel/charts/map/common.ts | 2 +- .../components/js/panel/charts/map/map.ts | 20 ++--- .../components/js/panel/common/common_antv.ts | 89 ++++++++++++++++--- .../components/js/panel/types/impl/l7plot.ts | 13 ++- 10 files changed, 167 insertions(+), 72 deletions(-) diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 0be8929032..33b0ba3795 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -449,7 +449,9 @@ export default { latitude: '纬度', gradient: '渐变', layer_controller: '指标切换', - suspension: '悬浮', + show_zoom: '显示缩放按钮', + button_color: '按钮颜色', + button_background_color: '按钮背景色', chart_background: '组件背景', date_format: '请选择日期解析格式', solid_color: '纯色', diff --git a/core/core-frontend/src/models/chart/chart-attr.d.ts b/core/core-frontend/src/models/chart/chart-attr.d.ts index 28777b7a6f..18924a54eb 100644 --- a/core/core-frontend/src/models/chart/chart-attr.d.ts +++ b/core/core-frontend/src/models/chart/chart-attr.d.ts @@ -161,9 +161,10 @@ declare interface ChartBasicStyle { */ areaBorderColor: string /** + * @deprecated * 悬浮工具栏 */ - suspension: boolean + suspension?: boolean /** * 地图底色 */ @@ -192,6 +193,18 @@ declare interface ChartBasicStyle { * 环形图/玫瑰图外径占比 */ radius: number + /** + * 是否显示地图缩放按钮 + */ + showZoom: boolean + /** + * 地图缩放按钮颜色 + */ + zoomButtonColor: string + /** + * 地图缩放按钮背景颜色 + */ + zoomBackground: string } /** * 表头属性 diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue index a43f5796cb..cf01122c95 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/MapMapping.vue @@ -1,6 +1,5 @@