Skip to main content

Module comment_previews

Module comment_previews 

Source
Expand description

评论组件图鉴:固定样例与局部上下文,展示节点仍由正式评论组件渲染。

Structs§

CommentCardShellPreviewProps 🔒
Props for the CommentCardShellPreview component.
CommentItemPreviewProps 🔒
Props for the CommentItemPreview component.
CommentListPreviewProps 🔒
Props for the CommentListPreview component.
CommentPreviewProps 🔒
Props for the CommentPreview component.
ShellReplyButtonProps 🔒
Props for the ShellReplyButton component.
ShellSample 🔒
卡片外壳的一条固定样例。

Enums§

CardShellMode 🔒
CommentItemMode 🔒
CommentListMode 🔒

Constants§

ACTION_CLASS 🔒
MODE_ACTIVE_CLASS 🔒
MODE_IDLE_CLASS 🔒
PANEL_CLASS 🔒

Functions§

CommentCardShellPreview 🔒
Required Props
CommentItemPreview 🔒
Required Props
CommentListPreview 🔒
Required Props
CommentPreview 🔒
Required Props
ShellReplyButton 🔒
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 🔒