VirtualList 虚拟列表
虚拟列表用于优化大数据量场景下的渲染性能,只渲染可视区域内的元素。
基础用法
10,000 条数据演示
#1Item 1user1@example.com
#2Item 2user2@example.com
#3Item 3user3@example.com
#4Item 4user4@example.com
#5Item 5user5@example.com
#6Item 6user6@example.com
#7Item 7user7@example.com
#8Item 8user8@example.com
#9Item 9user9@example.com
#10Item 10user10@example.com
#11Item 11user11@example.com
SXO Framework Switcher
🚧
This example is not yet available for .
API
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| items | 数据源 | Array | [] |
| itemHeight | 每一项的高度 (px) | Number | - |
| containerHeight | 容器高度 (px) | Number | 400 |
| overscan | 额外渲染的数量(上下各增加的数量) | Number | 5 |