待审核评论项

PendingCommentItem评论

使用固定的本地访客身份与正文展示正式 PendingCommentItem。徽章和正文渲染来自生产组件,此条目只用于阅读,无提交操作。

预览

本地演示,评论不会保存,也不会上传图片。

叶
叶子访客审核中
这条样例评论正在等待审核。
本地演示,内容不会保存

属性

名称类型默认值说明
commentPendingComment由调用方提供包含作者、Markdown 内容及待审核时间的评论。
post_idi32由调用方提供所属文章 ID;当前展示未读取它。

用法

src/components/comments/pending_item.rs
Leptos view!
view! {
    <PendingCommentItem comment=pending.clone() post_id=post_id/>
}