Skip to content

Commit 969e5b2

Browse files
committed
docs: fix 'virtual'
1 parent 5a352cf commit 969e5b2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function BaseExample() {
7777
- `listSize`: `number`, default: 1000. Height of the visible area of the list. Only used before DOM creation, suitable for SSR.
7878
- `triggerDistance`: `number`. The min distance to trigger re-rendering when scrolling.
7979
- `onScroll`: `React.UIEventHandler`. Listen for the list's scroll event. Type is same with HTML native onscroll handle.
80-
- `virtual`: `boolean`. default: `false`. Whether to enable the virtual list feature. Render all items if disabled.
80+
- `virtual`: `boolean`. default: `true`. Whether to enable the virtual list feature. Render all items if disabled.
8181
- `className`: `string`. Add a CSS class to the list root element.
8282
- `style`: `React.CSSProperties`. Add CSS styles to the list root element.
8383

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export default function BaseExample() {
7777
- `listSize`: `number`, 默认值: 1000. 列表的可见区域高度。仅用于 DOM 创建前使用,适用于 SSR.
7878
- `triggerDistance`: `number`. 滚动时触发重新渲染的距离。
7979
- `onScroll`: `React.UIEventHandler`. 监听列表的 scorll 事件。类型与 HTML 原生 onscroll 监听器相同。
80-
- `virtual`: `boolean`. 默认`false`. 是否启用虚拟列表。不启用则会渲染全部列表项。
80+
- `virtual`: `boolean`. 默认`true`. 是否启用虚拟列表。不启用则会渲染全部列表项。
8181
- `className`: `string`. 附加 css class 到根元素。
8282
- `style`: `React.CSSProperties`. 附加 css style 到根元素。
8383

0 commit comments

Comments
 (0)