From 3ef7b3da9421585423e07d1acfbe56bcf981dfb1 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 20 Jan 2025 18:50:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E7=AD=89=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 4 ++-- core/core-frontend/src/locales/tw.ts | 4 ++-- core/core-frontend/src/locales/zh-CN.ts | 4 ++-- core/core-frontend/src/views/chart/components/views/index.vue | 2 ++ 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index f0542879ac..8623868512 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -2809,8 +2809,8 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr }, visualization: { dashboard_adaptor: 'Zoom Mode', - scale_keep_height_and_width: 'Default Aspect Ratio', - scale_with_width: 'Actual Aspect Ratio', + scale_keep_height_and_width: 'Canvas Ratio', + scale_with_width: 'Component Ratio', multi_selected: '{0} components selected', number1: '1', number2: '2', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index fa169ee2da..cc6776e589 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -2737,8 +2737,8 @@ export default { }, visualization: { dashboard_adaptor: '縮放模式', - scale_keep_height_and_width: '按預設寬高比例縮放', - scale_with_width: '按照實際寬高比例縮放', + scale_keep_height_and_width: '按畫布比例縮放', + scale_with_width: '按元件比例縮放', multi_selected: '已選{0}項', number1: '一', number2: '二', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index b4344616bc..74ed6b0dc7 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -2739,8 +2739,8 @@ export default { }, visualization: { dashboard_adaptor: '缩放模式', - scale_keep_height_and_width: '按默认宽高比例缩放', - scale_with_width: '按照实际宽高比例缩放', + scale_keep_height_and_width: '按画布比例缩放', + scale_with_width: '按组件比例缩放', multi_selected: '已选{0}项', number1: '一', number2: '二', diff --git a/core/core-frontend/src/views/chart/components/views/index.vue b/core/core-frontend/src/views/chart/components/views/index.vue index 7afe0fce96..281695e05f 100644 --- a/core/core-frontend/src/views/chart/components/views/index.vue +++ b/core/core-frontend/src/views/chart/components/views/index.vue @@ -920,6 +920,8 @@ const vClickOutside = { } function onTitleChange() { + element.value.name = view.value.title + element.value.label = view.value.title snapshotStore.recordSnapshotCache('onTitleChange') }