| 属性 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
bufferedItemsCount |
number |
✅ | - | 在可见区域前后缓冲渲染的条目数 |
emptyListElement |
HTMLElement |
✅ | - | 列表为空时渲染的元素 |
itemHeight |
number |
✅ | - | 每个条目的高度(像素,假定固定高度) |
items |
Peer1[] |
✅ | - | 需要虚拟化的条目列表 |
renderItem |
(item: Peer1, index: number) |
✅ | - | 渲染每个条目的函数 |
<rtk-virtualized-participant-list></rtk-virtualized-participant-list><rtk-virtualized-participant-list>
</rtk-virtualized-participant-list><script>
const el = document.querySelector("rtk-virtualized-participant-list");
el.bufferedItemsCount= 42;
el.itemHeight= 42;
</script>