pub fn PostCover(props: PostCoverProps) -> impl IntoViewExpand description
文章封面组件。
Props:
src:封面原图 URLpost_id:参与文章共享过渡的文章 ID(可选)
渲染 .blur-img 结构,与正文图片一致;data-single="true" 标记为单张,
由 lightbox.js 接管点击放大(原地缩放飞出 + 原图展示)。
服务端读取真实尺寸写入 --ar,确保占位期间维持正确宽高比。
§Required Props
src:impl Into<String>
§Optional Props
post_id:impl Into<MaybeProp<i32>>