diff --git a/frontend/src/components/image-lightbox.vue b/frontend/src/components/image-lightbox.vue
new file mode 100644
index 0000000..971e17b
--- /dev/null
+++ b/frontend/src/components/image-lightbox.vue
@@ -0,0 +1,203 @@
+
+
+
+
+
+
+
+
+
+
+ {{
+ title || "预览"
+ }}
+
+
+
+
{{
+ zoomLabel
+ }}
+
+
+
+
+
+
+
+
+
+
![]()
1 ? reset() : zoomIn()"
+ />
+
+
+
+
+ 滚轮缩放 · 放大后拖动平移 · 双击切换 · Esc 关闭
+
+
+
+
+
diff --git a/frontend/src/pages/admin/protect/index.vue b/frontend/src/pages/admin/protect/index.vue
index c73eb98..7d2e185 100644
--- a/frontend/src/pages/admin/protect/index.vue
+++ b/frontend/src/pages/admin/protect/index.vue
@@ -4,6 +4,7 @@ import type { Component } from "vue";
import {
CheckCircle2,
+ Eye,
FileUp,
Loader2,
PackageCheck,
@@ -19,6 +20,7 @@ import { toast } from "vue-sonner";
import SingleFilter from "@/components/data-table/single-filter.vue";
import ProtectDataTable from "@/pages/admin/protect/components/data-table.vue";
+import ImageLightbox from "@/components/image-lightbox.vue";
import { BasicPage } from "@/components/global-layout";
import api, { BASE_URL } from "@/services/api";
@@ -106,12 +108,8 @@ function themeSub(label: string) {
return parts.length > 1 ? parts.slice(1).join("·").trim() : "";
}
// 点卡片角上的放大镜看大图
-const previewTheme = ref<{ value: string; label: string } | null>(null);
-const previewOpen = ref(false);
-function openThemePreview(theme: { value: string; label: string }) {
- previewTheme.value = theme;
- previewOpen.value = true;
-}
+// 皮肤大图:全屏图片查看器(滚轮缩放 / 拖动平移 / Esc 关闭)
+const lightboxOpen = ref(false);
// 组合框选一套,下方预览图跟着切换(不再铺一整片网格)
const currentThemeOption = computed(
() =>
@@ -650,21 +648,32 @@ onBeforeUnmount(() => {
{{ t("admin.protect.themeLabel") }}
-
-
-
-
-
-
-
- {{ o.label }}
-
-
-
+
+
+
+
+
+
+
+
+ {{ o.label }}
+
+
+
+
+
+ {{
+ t("admin.protect.themeView")
+ }}
+
{
type="button"
class="absolute inset-0 flex items-end justify-end p-2 opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100"
:aria-label="t('admin.protect.themeZoom')"
- @click="
- openThemePreview({
- value: shellTheme,
- label: currentThemeLabel,
- })
- "
+ @click="lightboxOpen = true"
>
{
-
-
-
-
- {{ previewTheme?.label }}
- {{
- t("admin.protect.themeZoomHint")
- }}
-
-
-
-
- {{ t("common.close") }}
-
-
- {{ t("admin.protect.themeUseThis") }}
-
-
-
-
+
+
diff --git a/frontend/src/plugins/i18n/en.json b/frontend/src/plugins/i18n/en.json
index afe88ec..5b4e712 100644
--- a/frontend/src/plugins/i18n/en.json
+++ b/frontend/src/plugins/i18n/en.json
@@ -2676,6 +2676,7 @@
"themeBits64": "64-bit",
"themeBits32": "32/64-bit",
"themeZoom": "Preview",
+ "themeView": "View",
"themeZoomHint": "Actual rendering of the produced verification dialog (raw screenshot)",
"themeUseThis": "Use this skin"
},
diff --git a/frontend/src/plugins/i18n/zh.json b/frontend/src/plugins/i18n/zh.json
index 4c1e333..5afc310 100644
--- a/frontend/src/plugins/i18n/zh.json
+++ b/frontend/src/plugins/i18n/zh.json
@@ -2695,6 +2695,7 @@
"themeBits64": "64 位",
"themeBits32": "32/64 位",
"themeZoom": "看大图",
+ "themeView": "查看",
"themeZoomHint": "这是产物验证弹窗的实际渲染效果(截图,未做任何美化)",
"themeUseThis": "用这套皮肤"
},
diff --git a/frontend/src/types/auto-import-components.d.ts b/frontend/src/types/auto-import-components.d.ts
index bcb5dbe..6f24cb5 100644
--- a/frontend/src/types/auto-import-components.d.ts
+++ b/frontend/src/types/auto-import-components.d.ts
@@ -46,6 +46,7 @@ declare module 'vue' {
GlobalLayoutBasicPage: typeof import('./../components/global-layout/basic-page.vue')['default']
GlobalLayoutTwoCol: typeof import('./../components/global-layout/two-col.vue')['default']
GlobalLayoutTwoColAside: typeof import('./../components/global-layout/two-col-aside.vue')['default']
+ ImageLightbox: typeof import('./../components/image-lightbox.vue')['default']
InspiraUiFlickeringGrid: typeof import('./../components/inspira-ui/flickering-grid.vue')['default']
InspiraUiGlowingEffect: typeof import('./../components/inspira-ui/glowing-effect.vue')['default']
InspiraUiMarquee: typeof import('./../components/inspira-ui/marquee/index.vue')['default']
@@ -449,6 +450,7 @@ declare global {
const GlobalLayoutBasicPage: typeof import('./../components/global-layout/basic-page.vue')['default']
const GlobalLayoutTwoCol: typeof import('./../components/global-layout/two-col.vue')['default']
const GlobalLayoutTwoColAside: typeof import('./../components/global-layout/two-col-aside.vue')['default']
+ const ImageLightbox: typeof import('./../components/image-lightbox.vue')['default']
const InspiraUiFlickeringGrid: typeof import('./../components/inspira-ui/flickering-grid.vue')['default']
const InspiraUiGlowingEffect: typeof import('./../components/inspira-ui/glowing-effect.vue')['default']
const InspiraUiMarquee: typeof import('./../components/inspira-ui/marquee/index.vue')['default']