Skip to content

Commit 579a3bf

Browse files
authored
docs: remove legacy disabled prop references (#383)
* docs: remove legacy disabled prop references * docs: sync Chinese disabled prop cleanup
1 parent a573364 commit 579a3bf

3 files changed

Lines changed: 0 additions & 4 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ Then open `http://localhost:8000`.
6565
| children | Render function for each item. The third argument contains measuring props used by legacy browser compatibility paths. | `(item, index, props) => ReactElement` | - |
6666
| component | Custom list container element. | `string` \| `ComponentType` | `div` |
6767
| data | Items rendered by the virtual list. | `T[]` | - |
68-
| disabled | Disable scroll position checks, usually while coordinating animation. | `boolean` | `false` |
6968
| fullHeight | Whether the holder should keep full height. | `boolean` | `true` |
7069
| height | Visible list height. | `number` | - |
7170
| itemHeight | Minimum item height used to calculate the virtual range. | `number` | - |

README.zh-CN.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ npm start
6565
| children | 每一项的渲染函数。第三个参数包含旧浏览器兼容路径使用的测量 props。 | `(item, index, props) => ReactElement` | - |
6666
| component | 自定义列表容器元素。 | `string` \| `ComponentType` | `div` |
6767
| data | 虚拟列表渲染的数据项。 | `T[]` | - |
68-
| disabled | 禁用滚动位置检查,通常用于配合动画。 | `boolean` | `false` |
6968
| fullHeight | holder 是否保持完整高度。 | `boolean` | `true` |
7069
| height | 可视列表高度。 | `number` | - |
7170
| itemHeight | 用于计算虚拟范围的最小项高度。 | `number` | - |

examples/animate.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,11 @@ const Demo = () => {
180180
height={200}
181181
itemHeight={20}
182182
itemKey="id"
183-
// disabled={animating}
184183
ref={listRef}
185184
style={{
186185
border: '1px solid red',
187186
boxSizing: 'border-box',
188187
}}
189-
// onSkipRender={onAppear}
190188
// onItemRemove={onAppear}
191189
>
192190
{(item, index) => (

0 commit comments

Comments
 (0)