From 4c9dbc11dd4ee79409c83249cf82a203e655cc7b Mon Sep 17 00:00:00 2001 From: marun Date: Wed, 10 Jan 2024 11:00:01 +0800 Subject: [PATCH] docs(useInfiniteScroll): fix api table (#2433) * Update useInfiniteScroll/index.zh-CN.md fix useInfiniteScroll Result table style * docs: format table * docs: fix syntax * docs: update --------- Co-authored-by: liuyib <1656081615@qq.com> --- packages/hooks/src/useInfiniteScroll/index.en-US.md | 4 ++-- packages/hooks/src/useInfiniteScroll/index.zh-CN.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hooks/src/useInfiniteScroll/index.en-US.md b/packages/hooks/src/useInfiniteScroll/index.en-US.md index ae685488b4..3015c780b6 100644 --- a/packages/hooks/src/useInfiniteScroll/index.en-US.md +++ b/packages/hooks/src/useInfiniteScroll/index.en-US.md @@ -95,8 +95,8 @@ const { ### Result | Property | Description | Type | -| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | ----------- | -| data | The data returned by the service, where the `list` attribute is the aggregated data | `TData` \ | `undefined` | +| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | +| data | The data returned by the service, where the `list` attribute is the aggregated data | `TData` \| `undefined` | | loading | Is the first request in progress | `boolean` | | loadingMore | Is more data request in progress | `boolean` | | noMore | Whether there is no more data, it will take effect after configuring `options.isNoMore` | `boolean` | diff --git a/packages/hooks/src/useInfiniteScroll/index.zh-CN.md b/packages/hooks/src/useInfiniteScroll/index.zh-CN.md index 314cf7af4c..a739294fa3 100644 --- a/packages/hooks/src/useInfiniteScroll/index.zh-CN.md +++ b/packages/hooks/src/useInfiniteScroll/index.zh-CN.md @@ -95,8 +95,8 @@ const { ### Result | 参数 | 说明 | 类型 | -| ------------- | -------------------------------------------------------------------------- | ------------------------ | ----------- | -| data | service 返回的数据,其中的 `list` 属性为聚合后数据 | `TData` \ | `undefined` | +| ------------- | -------------------------------------------------------------------------- | ------------------------ | +| data | service 返回的数据,其中的 `list` 属性为聚合后数据 | `TData` \| `undefined` | | loading | 是否正在进行首次请求 | `boolean` | | loadingMore | 是否正在进行更多数据请求 | `boolean` | | noMore | 是否没有更多数据了,配置 `options.isNoMore` 后生效 | `boolean` |