From ebed10b82f93cb317da7750eda9536f643e04e47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A6=E5=90=9B?= <73606411+setube@users.noreply.github.com> Date: Thu, 25 Dec 2025 19:24:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96Dialog=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E6=A0=B7=E5=BC=8F=E5=B9=B6=E5=AE=8C=E5=96=84=E5=A4=9A?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E2=80=9C=E5=BB=BA=E9=80=A0=E2=80=9D=E6=96=87?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整AlertDialogContent与DialogContent的宽度与定位样式,提升弹窗显示效果。多语言文件中buildingsView部分新增“build”字段,完善德语、英语、韩语、俄语、简体中文的“建造”相关文案,提升界面一致性与本地化体验。 --- src/components/ui/alert-dialog/AlertDialogContent.vue | 2 +- src/components/ui/dialog/DialogContent.vue | 2 +- src/locales/de.ts | 2 ++ src/locales/en.ts | 1 + src/locales/ko.ts | 1 + src/locales/ru.ts | 1 + src/locales/zh-CN.ts | 1 + 7 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/ui/alert-dialog/AlertDialogContent.vue b/src/components/ui/alert-dialog/AlertDialogContent.vue index dad3813..c914295 100644 --- a/src/components/ui/alert-dialog/AlertDialogContent.vue +++ b/src/components/ui/alert-dialog/AlertDialogContent.vue @@ -9,7 +9,7 @@ v-bind="{ ...$attrs, ...forwarded }" :class=" cn( - 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', + 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-1/2 left-1/2 z-50 grid w-[calc(100vw-2rem)] max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200', props.class ) " diff --git a/src/components/ui/dialog/DialogContent.vue b/src/components/ui/dialog/DialogContent.vue index 9042d4f..5ad2df9 100644 --- a/src/components/ui/dialog/DialogContent.vue +++ b/src/components/ui/dialog/DialogContent.vue @@ -6,7 +6,7 @@ v-bind="{ ...$attrs, ...forwarded }" :class=" cn( - 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-1/2 left-1/2 z-60 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-2xl', + 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-1/2 left-1/2 z-60 grid w-[calc(100vw-2rem)] max-w-2xl -translate-x-1/2 -translate-y-1/2 gap-4 rounded-lg border p-6 shadow-lg duration-200', props.class ) " diff --git a/src/locales/de.ts b/src/locales/de.ts index b58c3d1..0505d8d 100644 --- a/src/locales/de.ts +++ b/src/locales/de.ts @@ -392,8 +392,10 @@ export default { tabConsumption: 'Verbrauchsdetails' }, buildingsView: { + title: 'Gebäude', spaceUsage: 'Platzbedarf', upgradeCost: 'Ausbaukosten', + build: 'Bauen', upgrade: 'Ausbauen', maxLevelReached: 'Maximale Stufe erreicht', requirementsNotMet: 'Anforderungen nicht erfüllt', diff --git a/src/locales/en.ts b/src/locales/en.ts index f7dc47f..a2fa5f5 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -382,6 +382,7 @@ export default { title: 'Buildings', spaceUsage: 'Space Usage', upgradeCost: 'Upgrade Cost', + build: 'Build', upgrade: 'Upgrade', maxLevelReached: 'Max Level Reached', requirementsNotMet: 'Requirements Not Met', diff --git a/src/locales/ko.ts b/src/locales/ko.ts index b7bb512..cba87d1 100644 --- a/src/locales/ko.ts +++ b/src/locales/ko.ts @@ -388,6 +388,7 @@ export default { title: '건물', spaceUsage: '공간 사용', upgradeCost: '업그레이드 비용', + build: '건설', upgrade: '업그레이드', maxLevelReached: '최대 레벨 도달', requirementsNotMet: '요구 사항 미충족', diff --git a/src/locales/ru.ts b/src/locales/ru.ts index 4bbd3ce..89316a3 100644 --- a/src/locales/ru.ts +++ b/src/locales/ru.ts @@ -402,6 +402,7 @@ export default { spaceUsage: 'Использование полей', level: 'Уровень', upgradeCost: 'Стоимость улучшения', + build: 'Построить', upgrade: 'Улучшить', maxLevelReached: 'Достигнут максимальный уровень', requirementsNotMet: 'Требования не выполнены', diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 1f5c76c..8ad8df2 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -384,6 +384,7 @@ export default { title: '建筑', spaceUsage: '占用空间', upgradeCost: '升级消耗', + build: '建造', upgrade: '升级', maxLevelReached: '等级已满', requirementsNotMet: '条件不足',