跳转到内容
搜索文档

rtk-chat-composer-ui

最后更新 查看 MarkdownAgent 设置

@deprecated 。此组件已弃用,请改用 rtk-chat-composer-view。

属性

属性 类型 必填 默认值 描述
canSendFiles boolean - 用户是否可以发送文件消息
canSendTextMessage boolean - 用户是否可以发送文本消息
iconPack IconPack1 defaultIconPack 图标包
prefill { suggestedReplies?: string[]; editMessage?: TextMessage; replyMessage?: TextMessage; } - 预填充编辑器内容
size Size1 - 尺寸
t RtkI18n useLanguage() 语言

使用示例

基本用法

<rtk-chat-composer-ui></rtk-chat-composer-ui>

带属性用法

<rtk-chat-composer-ui
 size="md">
</rtk-chat-composer-ui>
<script>
  const el = document.querySelector("rtk-chat-composer-ui");

  el.canSendFiles= true;
  el.canSendTextMessage= true;
</script>

这篇文档对您有帮助吗?