From 08d9b9b6cf1498043ccdb4955b3730ad63275d47 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 10 Dec 2024 22:52:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96(=E5=9C=B0=E5=9B=BE=E7=B1=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 31 ++++++++++++++++++- core/core-frontend/src/locales/tw.ts | 28 ++++++++++++++++- core/core-frontend/src/locales/zh-CN.ts | 28 ++++++++++++++++- .../components/BubbleAnimateCfg.vue | 12 ++++--- .../editor/editor-style/ChartStyle.vue | 2 +- .../components/BasicStyleSelector.vue | 14 ++++----- .../components/FlowMapLineSelector.vue | 6 ++-- .../components/FlowMapPointSelector.vue | 16 ++++++++-- .../components/LegendSelector.vue | 27 +++++++++++----- .../components/TooltipSelector.vue | 8 ++--- .../js/panel/charts/map/flow-map.ts | 12 +++---- .../js/panel/charts/map/symbolic-map.ts | 7 ++--- 12 files changed, 148 insertions(+), 43 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index ebc2775c29..0d271b2e09 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -1879,7 +1879,36 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr number_of_scales_tip: 'Expected number of axis ticks, not the final result', assist_line_settings: 'Auxiliary line settings', invalid_field: 'Invalid field', - k_line_yaxis_tip: 'Open Price-Close Price-Low Price-High Price' + k_line_yaxis_tip: 'Open Price-Close Price-Low Price-High Price', + carousel_enable: 'Enable Carousel', + carousel_stay_time: 'Stay Duration (seconds)', + carousel_interval: 'Carousel Interval (seconds)', + custom_tooltip_content_tip: + "Can read field values in the form of ${'{'}fieldName{'}'} (Support HTML) ", + legend_range_division: 'Legend range division', + legend_equal_range: 'Equal range', + legend_custom_range: 'Custom range', + start_coordinates: 'Start coordinates', + end_coordinates: 'End coordinates', + start_name: 'Start name', + end_name: 'End name', + flow_map_line_width: 'Line Width', + flow_map_line_width_tip: + 'When this metric is active, the line width property configured in the style will be overridden', + symbolic_map_coordinates: 'Coordinates', + symbolic_map_bubble_size_tip: + 'When this metric is active, the size property configured in the base style will be overridden. Additionally, you can configure a size range in the base style', + point_text: 'Point Text', + point_bubble_color: 'Point Bubble Color', + point_bubble_size: 'Point Bubble Size', + animation_type: 'Animation Type', + water_wave: 'Water Wave', + animation_speed: 'Animation Speed', + wave_rings: 'Wave Rings', + symbolic_map_symbol_shape: 'Symbol Shape', + symbolic_map_symbol_shape_tip: + 'When Customizing, Supports SVG, JPG, JPEG, and PNG files up to 1MB', + size_range: 'Size Range' }, dataset: { scope_edit: 'only effective when editing', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index c16f6a5208..791cabd400 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -1838,7 +1838,33 @@ export default { number_of_scales_tip: '期望的座標軸刻度數量,非最終結果', assist_line_settings: '輔助線設置', invalid_field: '無效欄位', - k_line_yaxis_tip: '開盤價-收盤價-最低價-最高價' + k_line_yaxis_tip: '開盤價-收盤價-最低價-最高價', + carousel_enable: '開啟輪播', + carousel_stay_time: '停留時長(秒)', + carousel_interval: '輪播間隔(秒)', + custom_tooltip_content_tip: "可以使用 ${'{'}fieldName{'}'} 的形式讀取欄位值(支援HTML)", + legend_range_division: '圖例區間劃分', + legend_equal_range: '等分區間', + legend_custom_range: '自定義區間', + start_coordinates: '起點經緯度', + end_coordinates: '終點經緯度', + start_name: '起點名稱', + end_name: '終點名稱', + flow_map_line_width: '線條粗細', + flow_map_line_width_tip: '該指標生效時,樣式中線條配置的線條寬度屬性將失效', + symbolic_map_coordinates: '經緯度', + symbolic_map_bubble_size_tip: + '當該指標生效時,樣式基礎樣式中的大小屬性將失效,同時可於樣式基礎樣式中的大小區間配置大小區間', + point_text: '標注點文本', + point_bubble_color: '標注點氣泡顏色', + point_bubble_size: '標注點氣泡大小', + animation_type: '動效類型', + water_wave: '水波', + animation_speed: '動效速率', + wave_rings: '水波環數', + symbolic_map_symbol_shape: '符號形狀', + symbolic_map_symbol_shape_tip: '自訂時, 支援 1MB 以內的 SVG, JPG, JPEG, PNG 檔案', + size_range: '大小區間' }, dataset: { scope_edit: '僅編輯時生效', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index f863186b6d..699618c751 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1840,7 +1840,33 @@ export default { number_of_scales_tip: '期望的坐标轴刻度数量,非最终结果', assist_line_settings: '辅助线设置', invalid_field: '无效字段', - k_line_yaxis_tip: '开盘价-收盘价-最低价-最高价' + k_line_yaxis_tip: '开盘价-收盘价-最低价-最高价', + carousel_enable: '开启轮播', + carousel_stay_time: '停留时长(秒)', + carousel_interval: '轮播间隔(秒)', + custom_tooltip_content_tip: "可以${'{'}fieldName{'}'}的形式读取字段值(支持HTML)", + legend_range_division: '图例区间划分', + legend_equal_range: '等分区间', + legend_custom_range: '自定义区间', + start_coordinates: '起点经纬度', + end_coordinates: '终点经纬度', + start_name: '起点名称', + end_name: '终点名称', + flow_map_line_width: '线条粗细', + flow_map_line_width_tip: '该指标生效时,样式中线条配置的线条宽度属性将失效', + symbolic_map_coordinates: '经纬度', + symbolic_map_bubble_size_tip: + '该指标生效时,样式基础样式中的大小属性将失效,同时可在样式基础样式中的大小区间配置大小区间', + point_text: '标注点文本', + point_bubble_color: '标注点气泡颜色', + point_bubble_size: '标注点气泡大小', + animation_type: '动效类型', + water_wave: '水波', + animation_speed: '动效速率', + wave_rings: '水波环数', + symbolic_map_symbol_shape: '符号形状', + symbolic_map_symbol_shape_tip: '自定义时, 支持 1MB 以内的 SVG, JPG, JPEG, PNG 文件', + size_range: '大小区间' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue index 4e0bc16bbc..3104c6c5d2 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/BubbleAnimateCfg.vue @@ -93,7 +93,7 @@ init() style="line-height: 20px" :class="{ dark: 'dark' === themes }" > - 动效类型 + {{ t('chart.animation_type') }} @@ -105,7 +105,7 @@ init() v-model="state.bubbleAnimateForm.type" @change="onBubbleAnimateChange()" > - 水波 + {{ t('chart.water_wave') }} @@ -113,7 +113,9 @@ init()
- + @@ -144,7 +146,9 @@ init()
- + diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue index 3c288b6e6e..72afb6d013 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/ChartStyle.vue @@ -539,7 +539,7 @@ watch( {
@@ -577,10 +577,10 @@ onMounted(() => {