refactor: 文案国际化优化 (#18105)

This commit is contained in:
王嘉豪
2026-03-18 15:20:41 +08:00
committed by wangjiahao
parent 4e00239e81
commit 0d0e519967
2 changed files with 5 additions and 3 deletions

View File

@@ -34,6 +34,8 @@ const appStore = useAppStoreWithOut()
import replaceOutlined from '@/assets/svg/icon_replace_outlined.svg'
import { CommonBackground } from '@/components/visualization/component-background/Types'
import { ShorthandMode } from '@/Types'
import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
const componentWrapperInnerRef = ref(null)
const componentEditBarRef = ref(null)
@@ -175,7 +177,7 @@ const htmlToImage = () => {
setTimeout(() => {
const vueDom = document.getElementById(viewDemoInnerId.value)
activeWatermarkCheckUser(viewDemoInnerId.value, 'canvas-main', scale.value / 100)
downloadCanvas2('img', vueDom, '图表', () => {
downloadCanvas2('img', vueDom, t('chart.chart'), () => {
// do callback
removeActiveWatermark(viewDemoInnerId.value)
downLoading.value = false
@@ -526,7 +528,7 @@ onBeforeUnmount(() => {
@mousedown="handleInnerMouseDown"
@mouseenter="onMouseEnter"
v-loading="downLoading"
element-loading-text="导出中..."
:element-loading-text="$t('visualization.export_loading')"
element-loading-background="rgba(255, 255, 255, 1)"
>
<div

View File

@@ -9,7 +9,7 @@
ref="shapeInnerRef"
:id="domId"
v-loading="downLoading"
element-loading-text="导出中..."
:element-loading-text="$t('visualization.export_loading')"
element-loading-background="rgba(255, 255, 255, 1)"
@dblclick="handleDbClick"
>