Skip to content

对话消息元信息

@astryxdesign/core v0.7.1 · ChatMessageMetadata

属性 ​

属性类型默认值说明
timestampstring—时间,或者别的短文本。排在这一行的最前面。
footerstring—时间和状态之间的次要文字,例如模型名。
status'sending' | 'sent' | 'delivered' | 'read' | 'error'—送达状态,会显示本地化的图标和文字。timestamp、footer、status 三样都没有时,整行不渲染。

插槽 ​

  • timestamp:替代 timestamp 属性。想把纯文本换成 Timestamp 组件时用它。
  • footer:替代 footer 属性。放复制、重试、表情这类按钮用它;每个按钮都要有自己的可读名字。