Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,7 +65,6 @@ Then open `http://localhost:8000`.
| children | Render function for each item. The third argument contains measuring props used by legacy browser compatibility paths. | `(item, index, props) => ReactElement` | - |
| component | Custom list container element. | `string` \| `ComponentType` | `div` |
| data | Items rendered by the virtual list. | `T[]` | - |
| disabled | Disable scroll position checks, usually while coordinating animation. | `boolean` | `false` |
| fullHeight | Whether the holder should keep full height. | `boolean` | `true` |
| height | Visible list height. | `number` | - |
| itemHeight | Minimum item height used to calculate the virtual range. | `number` | - |
Expand Down
1 change: 0 additions & 1 deletion README.zh-CN.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,7 +65,6 @@ npm start
| children | 每一项的渲染函数。第三个参数包含旧浏览器兼容路径使用的测量 props。 | `(item, index, props) => ReactElement` | - |
| component | 自定义列表容器元素。 | `string` \| `ComponentType` | `div` |
| data | 虚拟列表渲染的数据项。 | `T[]` | - |
| disabled | 禁用滚动位置检查,通常用于配合动画。 | `boolean` | `false` |
| fullHeight | holder 是否保持完整高度。 | `boolean` | `true` |
| height | 可视列表高度。 | `number` | - |
| itemHeight | 用于计算虚拟范围的最小项高度。 | `number` | - |
Expand Down
2 changes: 0 additions & 2 deletions examples/animate.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -180,13 +180,11 @@ const Demo = () => {
height={200}
itemHeight={20}
itemKey="id"
// disabled={animating}
ref={listRef}
style={{
border: '1px solid red',
boxSizing: 'border-box',
}}
// onSkipRender={onAppear}
// onItemRemove={onAppear}
>
{(item, index) => (
Expand Down
Loading