跳转到内容
搜索文档

rtk-mixed-grid

最后更新 查看 MarkdownAgent 设置

一个处理屏幕共享、插件和参与者的网格组件。

属性

属性 类型 是否必填 默认值 描述
aspectRatio string ✅ - 参与者磁贴的宽高比,格式:width:height
config UIConfig ❌ createDefaultConfig() UI 配置
gap number ✅ - 参与者磁贴之间的间距
gridSize GridSize1 ✅ - 网格尺寸
iconPack IconPack ❌ defaultIconPack 图标包
layout GridLayout1 ✅ - 网格布局
meeting Meeting ✅ - 会议对象
participants Peer[] ✅ - 参与者
pinnedParticipants Peer[] ✅ - 已置顶的参与者
plugins RTKPlugin[] ✅ - 已激活的插件
screenShareParticipants Peer[] ✅ - 正在共享屏幕的参与者
size Size ✅ - 尺寸
states States ✅ - 状态对象
t RtkI18n ❌ useLanguage() 语言

使用示例

基础用法

<rtk-mixed-grid></rtk-mixed-grid>

带属性

<rtk-mixed-grid
 aspectRatio="example"
 gridSize="md">
</rtk-mixed-grid>
<script>
  const el = document.querySelector("rtk-mixed-grid");

  el.gap= 42;
</script>

这篇文档对您有帮助吗?