feat(gallery): 灯箱 v2 收编——caption 字段全链+21 条视觉轨拟稿

schema caption?:string(人为描述,注释区别 alt 无障碍语义)+
Sveltia textarea 字段+21 条 json 全量上稿(视觉轨看图代拟策展
语气,用户可后台逐条改);GalleryPage 灯箱重构与缩放交互已随
44626f8/54769bc 入库,本笔补数据面。

车道:op-artalk(专项 8/8+E2E 34/34);视觉复核三问 PASS
(舞台纯净/meta 分层/caption 策展语气),唯一需修点=放大态
caption 遮挡→v2.1 ③ zoom 自动隐层已立项在治

验证: E2E 34/34;caption 渲染实测「落日把海与城一齐烫成金
箔…」;content-lint 0/0/0;schema 过构建

Spec: none (灯箱 v2 数据面收编,交互面已在库)

Co-authored-by: GLM-5.3
This commit is contained in:
wait4xandGLM-5.3 committed 2026-11-01 12:51:20 +08:00
1 parent 44626f8edc
commit d8997c3c72
23 files changed
+68 -44

No files matched your search

+2
View File
@@ -48,6 +48,8 @@ const photoExifSchema = z.object({
const photosFields = {
title: z.string(),
group: z.enum(['street', 'landscape']),
// 人为描述:展示在灯箱 caption 层的策展文案(区别于 alt 的无障碍用途)
caption: z.string().optional(),
alt: z.string().optional(),
exif: photoExifSchema.optional(),
};