Elements

参考

AI 附件 AI Attachments

附件条目:按扩展名显示图标,并显示文件名和易读的大小,同时提供不突出的移除操作。上传中使用虚线样式,错误使用危险色。

Actions · Attachment · Attachments · CodeBody · CodeCopy · Content · Conversation · Loader · Message · Prompt · PromptEnd · PromptFooter · PromptHeader · PromptLeading · PromptMain · PromptTrailing · ReasoningContent · Response · Root · Source · Sources · Textarea · ToolBody · ToolLabel · ToolStatus · Trigger

#AiAttachment

附件条目:按扩展名显示图标,并显示文件名和易读的大小,同时提供不突出的移除操作。上传中使用虚线样式,错误使用危险色。

属性类型默认值描述
nameString文件名;组件按扩展名选择图标
sizeNumberundefined文件大小,单位字节;已知时按易读格式显示
statusString as PropType<"uploading" | "ready" | "error">"ready"上传在传输中的状态
事件载荷
remove() => true

#AiAttachments

附件区域,把多个附件渲染为一行可换行的 Chip。

纯造型的部件——自身没有属性,沿用部件结构的共享样式。