Skip to content

Commit

Permalink
docs: note the default value of defaultPageSize & defaultCurrent (#2041)
Browse files Browse the repository at this point in the history
  • Loading branch information
xliez authored Feb 2, 2023
1 parent 375cc75 commit 056f347
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/hooks/src/usePagination/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ const {

| Property | Description | Type | Default |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------- | ------- |
| defaultPageSize | Default page size | `number` | - |
| defaultCurrent | Number of pages on initial request | `number` | - |
| defaultPageSize | Default page size | `number` | 10 |
| defaultCurrent | Number of pages on initial request | `number` | 1 |
| refreshDeps | Changes in `refreshDeps` will reset current to the first page and re-initiate the request. Generally, you can put the dependent conditions here. | `React.DependencyList` | `[]` |
4 changes: 2 additions & 2 deletions packages/hooks/src/usePagination/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ const {

| 参数 | 说明 | 类型 | 默认值 |
| --------------- | ------------------------------------------------------------------------------------------- | ---------------------- | ------ |
| defaultPageSize | 默认分页数量 | `number` | - |
| defaultCurrent | 初次请求时的页数 | `number` | - |
| defaultPageSize | 默认分页数量 | `number` | 10 |
| defaultCurrent | 初次请求时的页数 | `number` | 1 |
| refreshDeps | `refreshDeps` 变化,会重置 current 到第一页,并重新发起请求,一般你可以把依赖的条件放这里。 | `React.DependencyList` | `[]` |

0 comments on commit 056f347

Please sign in to comment.