@deprecated rtk-chat-message 已弃用,很快将被移除。请改用 rtk-message-view。
| 属性 | 类型 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|---|
alignRight |
boolean |
✅ | - | 将消息向右对齐 |
canDelete |
boolean |
✅ | - | 可以删除消息 |
canEdit |
boolean |
✅ | - | 可以编辑消息 |
canPin |
boolean |
✅ | - | 可以固定此消息 |
canReply |
boolean |
✅ | - | 可以引用回复此消息 |
child |
HTMLElement |
✅ | - | 子元素 |
disableControls |
boolean |
✅ | - | 禁用控件 |
hideAvatar |
boolean |
✅ | - | 隐藏头像 |
iconPack |
IconPack1 |
❌ | defaultIconPack |
图标包 |
isContinued |
boolean |
✅ | - | 是否是连续消息 |
isSelf |
boolean |
✅ | - | 发送者是否为自己 |
isUnread |
boolean |
✅ | - | 是否未读 |
leftAlign |
boolean |
✅ | - | 是否左对齐聊天气泡 |
message |
Message |
✅ | - | 消息项 |
senderDisplayPicture |
string |
✅ | - | 发送者展示图片的 URL |
size |
Size |
✅ | - | 尺寸 |
t |
RtkI18n1 |
❌ | useLanguage() |
语言 |
<!-- component.html -->
<rtk-chat-message></rtk-chat-message><!-- component.html -->
<rtk-chat-message
[alignRight]="true"
[canDelete]="true"
[canEdit]="true">
</rtk-chat-message>