From d1073720e68c2be8171583caffb2afd2b5058670 Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Tue, 10 Dec 2024 16:32:30 +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=9F=BA=E7=A1=80=E6=8A=98=E7=BA=BF=E5=9B=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 11 +++++- core/core-frontend/src/locales/tw.ts | 10 ++++- core/core-frontend/src/locales/zh-CN.ts | 10 ++++- .../editor-senior/components/AssistLine.vue | 11 +++--- .../components/dialog/AssistLineEdit.vue | 2 +- .../components/DualYAxisSelectorInner.vue | 2 +- .../editor-style/components/LabelSelector.vue | 39 ++++++++++++------- .../components/MiscStyleSelector.vue | 2 +- .../editor-style/components/XAxisSelector.vue | 2 +- .../editor-style/components/YAxisSelector.vue | 2 +- 10 files changed, 63 insertions(+), 28 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 5e5d288690..ad318ce663 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -1869,7 +1869,16 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr chart_symbolic_map: 'Symbolic map', chart_stock_line: 'K line', liquid_condition_style_tips: `Condition style settings, determine water wave chart interval colors, leave blank to disable thresholds, range (0-100), incremental levels
Example: input 30,70; this means: divided into 3 segments, namely [0,30], [30,70], [70,100]`, - conversion_rate: 'Conversion rate' + conversion_rate: 'Conversion rate', + show_extremum: 'Show extremum', + left_axis: 'Left axis', + right_axis: 'Right axis', + no_other_configurable_properties: 'No other configurable properties', + custom_label_content_tip: + "Can read field values in the form of ${'{'}fieldName{'}'} (does not support line breaks) ", + number_of_scales_tip: 'Expected number of axis ticks, not the final result', + assist_line_settings: 'Auxiliary line settings', + invalid_field: 'Invalid field' }, 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 304333609f..00316dc1e6 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -1829,7 +1829,15 @@ export default { chart_symbolic_map: '符號地圖', chart_stock_line: 'K 線圖', liquid_condition_style_tips: `條件樣式設定,決定水波圖區間顏色,為空則不啟用閾值,範圍(0-100),逐級遞增
例如:輸入 30,70;表示:分為3段,分別為[0,30],[30,70],[70,100]`, - conversion_rate: '轉換率' + conversion_rate: '轉換率', + show_extremum: '顯示極值', + left_axis: '左軸', + right_axis: '右軸', + no_other_configurable_properties: '無其他可配置屬性', + custom_label_content_tip: "可以使用 ${'{'}fieldName{'}'} 的形式讀取欄位值(不支援換行)", + number_of_scales_tip: '期望的座標軸刻度數量,非最終結果', + assist_line_settings: '輔助線設置', + invalid_field: '無效欄位' }, dataset: { scope_edit: '僅編輯時生效', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index ba1b4433db..aab57956ae 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -1831,7 +1831,15 @@ export default { chart_symbolic_map: '符号地图', chart_stock_line: 'K 线图', liquid_condition_style_tips: `条件样式设置,决定水波图颜色,为空则不开启阈值,范围(0-100),逐级递增
例如:输入 30,70;表示:分为3段,分别为[0,30],[30,70],[70,100]`, - conversion_rate: '转化率' + conversion_rate: '转化率', + show_extremum: '显示最值', + left_axis: '左轴', + right_axis: '右轴', + no_other_configurable_properties: '无其他可配置属性', + custom_label_content_tip: "可以${'{'}fieldName{'}'}的形式读取字段值(不支持换行)", + number_of_scales_tip: '期望的坐标轴刻度数量,非最终结果', + assist_line_settings: '辅助线设置', + invalid_field: '无效字段' }, dataset: { scope_edit: '仅编辑时生效', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/AssistLine.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/AssistLine.vue index 5abc4b472a..d1ef9aee7b 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/AssistLine.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/AssistLine.vue @@ -149,14 +149,16 @@ onMounted(() => { @@ -337,7 +339,6 @@ span { .line-style { width: 100%; font-weight: 400; - padding: 4px 8px; display: flex; flex-direction: row; align-items: center; diff --git a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/AssistLineEdit.vue b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/AssistLineEdit.vue index e843ce0a0d..9924a28677 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/AssistLineEdit.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-senior/components/dialog/AssistLineEdit.vue @@ -41,7 +41,7 @@ const yAxisTypes = [ const state = reactive({ lineArr: [], lineObj: { - name: '辅助线', + name: t('chart.assist_line'), field: '0', // 固定值 fieldId: '', summary: 'avg', diff --git a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue index ffa1f35a85..919c301282 100644 --- a/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue +++ b/core/core-frontend/src/views/chart/components/editor/editor-style/components/DualYAxisSelectorInner.vue @@ -257,7 +257,7 @@ onMounted(() => {