Message

会话中的一条记录:头像、头部、气泡和底部,可起始或末尾对齐。

可用框架
  • Angular: 可用
  • Vue: 可用
  • React: 可用
  • React Native: 暂不可用

用法

AP
Ada Park · 10:04
Can we move the beta invite to next sprint?
LR
Yes, if the invite copy lands by Friday.
Read

导入

ts
import {
  SoneMessageAvatarDirective,
  SoneMessageContentDirective,
  SoneMessageDirective,
  SoneMessageFooterDirective,
  SoneMessageGroupDirective,
  SoneMessageHeaderDirective,
} from "@surface-one/angular/message";

API 参考

SoneMessageAvatarDirective指令

选择器
[soneMessageAvatar]

SoneMessageContentDirective指令

选择器
[soneMessageContent]

SoneMessageDirective指令

选择器
[soneMessage]
输入
名称类型 默认值
alignMessageAlign"start"

SoneMessageFooterDirective指令

选择器
[soneMessageFooter]

SoneMessageGroupDirective指令

选择器
[soneMessageGroup]

SoneMessageHeaderDirective指令

选择器
[soneMessageHeader]