From c545ae5dbcbda6052e682cb4592af137b931932a Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 28 Nov 2024 13:33:13 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=82=AC?= =?UTF-8?q?=E6=B5=AE=E6=8C=89=E9=92=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../subject-setting/dashboard-style/OverallSetting.vue | 2 +- .../src/components/data-visualization/canvas/LinkOptBar.vue | 2 +- .../src/components/visualization/CanvasBaseSetting.vue | 2 +- core/core-frontend/src/locales/en.ts | 1 + core/core-frontend/src/locales/tw.ts | 1 + core/core-frontend/src/locales/zh-CN.ts | 1 + .../src/views/data-visualization/PreviewCanvas.vue | 4 ++-- 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue index 4be68cbf4f..d31ad54c8d 100644 --- a/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue +++ b/core/core-frontend/src/components/dashboard/subject-setting/dashboard-style/OverallSetting.vue @@ -206,7 +206,7 @@ {{ t('visualization.button_tips') }} - {{ t('visualization.effective_during_preview') }} + {{ t('visualization.effective_during_link') }} diff --git a/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue b/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue index 27c4832a4e..22edd09171 100644 --- a/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue +++ b/core/core-frontend/src/components/data-visualization/canvas/LinkOptBar.vue @@ -128,7 +128,7 @@ const back2Last = () => { window.location.reload() } const exportPDF = () => { - useEmitt().emitter.emit('canvasDownload') + useEmitt().emitter.emit('canvasDownload', 'pdf') } diff --git a/core/core-frontend/src/components/visualization/CanvasBaseSetting.vue b/core/core-frontend/src/components/visualization/CanvasBaseSetting.vue index 518f7f480a..d3faad4c1d 100644 --- a/core/core-frontend/src/components/visualization/CanvasBaseSetting.vue +++ b/core/core-frontend/src/components/visualization/CanvasBaseSetting.vue @@ -52,7 +52,7 @@ {{ t('visualization.show_zoom_button') }} - {{ t('visualization.effective_during_preview') }} + {{ t('visualization.effective_during_link') }} diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 526976e47f..190be559d8 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -2657,6 +2657,7 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr column_name: 'Field name' }, visualization: { + effective_during_link: 'Public link active', condition_style_set: 'Condition Style Settings', cell_merge_tips: 'After merging cells, row/column freezing and automatic line wrapping will be disabled.', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index 7eb0bbaa74..26ff19a366 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -608,6 +608,7 @@ export default { secret_length: '密鑰長度' }, components: { + effective_during_link: '公共連結生效', dashboard_style: '儀表板風格', overall_configuration: '整體配置', dashboard_background: '儀表板背景', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index 7caf81f020..f72f8638cb 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -2597,6 +2597,7 @@ export default { column_name: '字段名称' }, visualization: { + effective_during_link: '公共链接生效', condition_style_set: '条件样式设置', cell_merge_tips: '合并单元格后,行列冻结、自动换行会失效。', image: '图片', diff --git a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue index 8117beab44..d52872051d 100644 --- a/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue +++ b/core/core-frontend/src/views/data-visualization/PreviewCanvas.vue @@ -168,8 +168,8 @@ const XpackLoaded = () => p(true) onMounted(async () => { useEmitt({ name: 'canvasDownload', - callback: function () { - downloadH2('img') + callback: function (type = 'img') { + downloadH2(type) } }) await new Promise(r => (p = r))