Skip to content

Commit 4a5d4e0

Browse files
committed
docs: renderHead, renderFoot
1 parent 969e5b2 commit 4a5d4e0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export default function BaseExample() {
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.
8080
- `virtual`: `boolean`. default: `true`. Whether to enable the virtual list feature. Render all items if disabled.
81+
- `renderHead`: `() => ReactNode`. Customize the persistent rendering content of the list header. Suitable for absolutely positioned, fixed positioned elements, and elements that do not take up too much space.
82+
- `renderFoot`: `() => ReactNode`. Customize the persistent rendering content of the list footer. Suitable for absolutely positioned, fixed positioned elements, and elements that do not take up too much space.
8183
- `className`: `string`. Add a CSS class to the list root element.
8284
- `style`: `React.CSSProperties`. Add CSS styles to the list root element.
8385

README_CN.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ export default function BaseExample() {
7878
- `triggerDistance`: `number`. 滚动时触发重新渲染的距离。
7979
- `onScroll`: `React.UIEventHandler`. 监听列表的 scorll 事件。类型与 HTML 原生 onscroll 监听器相同。
8080
- `virtual`: `boolean`. 默认`true`. 是否启用虚拟列表。不启用则会渲染全部列表项。
81+
- `renderHead`: `() => ReactNode`. 自定义列表头部持久渲染内容。适用于绝对定位,固定定位元素,和不占用太大空间的元素。
82+
- `renderFoot`: `() => ReactNode`. 自定义列表底部持久渲染内容。适用于绝对定位,固定定位元素,和不占用太大空间的元素。
8183
- `className`: `string`. 附加 css class 到根元素。
8284
- `style`: `React.CSSProperties`. 附加 css style 到根元素。
8385

0 commit comments

Comments
 (0)