diff --git a/.gitignore b/.gitignore index 6fc517e..f8f7e1c 100644 --- a/.gitignore +++ b/.gitignore @@ -31,3 +31,5 @@ _tmp* # jetbrains setting folder .idea/ +.playwright-cli +.workbuddy \ No newline at end of file diff --git a/src/components/DetailCountBadge.astro b/src/components/DetailCountBadge.astro index 8208560..91618e3 100644 --- a/src/components/DetailCountBadge.astro +++ b/src/components/DetailCountBadge.astro @@ -3,20 +3,20 @@ // 纯主图(无细节图)不渲染。数量走 Alpine 的 detailCount()(响应式)—— 未登录取前 PREVIEW_LIMIT 张 // 的细节子树,登录后由 gallery:full 重建映射,两态共用同一条渲染路径。 // -// look:Alpine 表达式,表示该主图的 look_index。SSR 首屏传字面量(如 "3"), -// 客户端补拉的 x-for 里传表达式(如 "im.lookIndex")。 +// mainId:Alpine 表达式,表示该主图自身 id。SSR 首屏传字面量(如 "i0008CZYI"), +// 客户端补拉的 x-for 里传表达式(如 "im.id")。 interface Props { - look: string + mainId: string } -const { look } = Astro.props -const count = `detailCount(${look})` +const { mainId } = Astro.props +const count = `detailCount(${mainId})` --- {/* 副图数量角标(共享组件):有副图的主图左下角标「张数」,点它直接开副图灯箱 */} - + {showCaptions && im.name && ( @@ -264,7 +263,7 @@ const hasImages = previewImages.length > 0