Expand description
评论组件图鉴:固定样例与局部上下文,展示节点仍由正式评论组件渲染。
Structs§
- Comment
Card 🔒Shell Preview Props - Props for the
CommentCardShellPreviewcomponent. - Comment
Item 🔒Preview Props - Props for the
CommentItemPreviewcomponent. - Comment
List 🔒Preview Props - Props for the
CommentListPreviewcomponent. - Comment
Preview 🔒Props - Props for the
CommentPreviewcomponent. - Shell
Reply 🔒Button Props - Props for the
ShellReplyButtoncomponent. - Shell
Sample 🔒 - 卡片外壳的一条固定样例。
Enums§
Constants§
Functions§
- Comment
Card 🔒Shell Preview - Required Props
- Comment
Item 🔒Preview - Required Props
- Comment
List 🔒Preview - Required Props
- Comment
Preview 🔒 - Required Props
- Shell
Reply 🔒Button - Required Props
- approved_
sample 🔒 - base_
comment 🔒 - 固定样例评论的公共字段;其余字段由调用处用结构体更新语法覆盖。
- initial_
approved 🔒 - initial_
pending 🔒 - item_
mode_ 🔒rows - list_
mode_ 🔒data - local_
pending_ 🔒comment - 图鉴提交仅生成内存中的待审核项,复用正式列表的合并和渲染路径。
- local_
submit 🔒 - 图鉴提交:只写入当前预览的内存列表,不请求、不持久化。
- mode_
buttons 🔒 - 形态切换按钮组;点击先写入
mode,再回调on_pick处理附带状态。 - pending_
sample 🔒 - preview 🔒
- provide_
local_ 🔒context - 图鉴用的本地评论上下文:不触达评论接口、不持久化、不允许上传图片。
- render_
shell_ 🔒comment - render_
shell_ 🔒samples - reply_
chain 🔒 - 标准回复链(顶层 + 一条回复),
reply_html为回复正文。 - scope 🔒
- shell_
mode_ 🔒rows