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 @@