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