待审核评论项
PendingCommentItem评论使用固定的本地访客身份与正文展示正式 PendingCommentItem。徽章和正文渲染来自生产组件,此条目只用于阅读,无提交操作。
本地演示,评论不会保存,也不会上传图片。
叶
叶子访客审核中
这条样例评论正在等待审核。
本地演示,内容不会保存
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
comment | PendingComment | 由调用方提供 | 包含作者、Markdown 内容及待审核时间的评论。 |
post_id | i32 | 由调用方提供 | 所属文章 ID;当前展示未读取它。 |
用法
src/components/comments/pending_item.rsview! {
<PendingCommentItem comment=pending.clone() post_id=post_id/>
}