跳转到内容
搜索文档

rtk-participant-setup

最后更新 查看 MarkdownAgent 设置

属性

属性 类型 必填 默认值 描述
config UIConfig ❌ createDefaultConfig() 配置对象
iconPack IconPack ❌ defaultIconPack 图标包
isPreview boolean ✅ - 视窗是否用于预览
nameTagPosition | 'bottom-left' | 'bottom-right' | 'bottom-center' | 'top-left' | 'top-right' | 'top-center' ✅ - 名称标签的位置
participant Peer ✅ - Participant 对象
size Size ✅ - 尺寸
states States ✅ - States 对象
t RtkI18n ❌ useLanguage() 语言
variant 'solid' | 'gradient' ✅ - 变体

使用示例

基本用法

<!-- component.html -->
<rtk-participant-setup></rtk-participant-setup>

使用属性

<!-- component.html -->
<rtk-participant-setup
 [isPreview]="true"
 [nameTagPosition]="| 'bottom-left'
    | 'bottom-right'
    | 'bottom-center'
    | 'top-left'
    | 'top-right'
    | 'top-center'"
 [participant]="participant">
</rtk-participant-setup>

这篇文档对您有帮助吗?