pub fn CommentCardShell(props: CommentCardShellProps) -> impl IntoViewExpand description
评论卡片外壳组件。
Props:
depth:归一化后的嵌套深度(孤儿评论已由调用方按 0 处理)muted:是否降低整体透明度展示(待审核评论用,缺省false)avatar_url/author_name:头像 URL 与无障碍 alt 文本author_element:作者名展示节点(链接或纯文本,由调用方根据author_url构建)author_badge:作者名与分隔符之间的徽章(如已审核评论的“作者“标签); 无需展示时传().into_any()timestamp:时间展示节点(由调用方构建)status_badge:时间之后的状态徽章(如待审核评论的“审核中“标签); 无需展示时传().into_any()content_html:已渲染为安全 HTML 的评论正文content_extra_class:正文容器附加 CSS 类(已审核评论需额外挂md-content以命中全局 Markdown 排版/代码高亮 CSS 作用域,缺省空串)children:正文下方的附加区域(如已审核评论的回复按钮与回复表单)
样式见 styles/components/comments.css:顶层评论之间以发丝线分隔,回复左侧一条
细线并按 --comment-indent 缩进。
§Required Props
depth:i32avatar_url:impl Into<String>author_name:impl Into<String>author_element: [AnyView]author_badge: [AnyView]timestamp: [AnyView]status_badge: [AnyView]content_html:impl Into<String>
§Optional Props
muted:boolcontent_extra_class: [&'static str]children: [Children]