Skip to content

Commit 1525fd6

Browse files
committed
update README.md
1 parent da8303b commit 1525fd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ ReactDOM.render(<Pagination />, container);
5858
| defaultPageSize | default items per page | Number | 10 |
5959
| pageSize | items per page | Number | 10 |
6060
| onChange | page change callback | Function(current, pageSize) | - |
61-
| showSizeChanger | show pageSize changer | Boolean or Object | `false` when the total is less than `totalBoundaryShowSizeChanger`, `true` otherwise, or specify `options` as sizeChanger selections. `showSearch` in the sizeChanger Select component allows searching the size, with the default value being false. `onChange` returns the size change value only through the callback function. The object should be formatted as: `{ options: ['10', '20', '50', '100'], showSearch: false, onChange: Function(size) }`. The value can be either `true/false` or `{ showSearch: false, options:['10', '20', '50', '100'], onChange: (size: number) => void }`. |
61+
| showSizeChanger | show pageSize changer | boolean \| [SelectProps](https://github.com/react-component/select/blob/561f8b7d69fd5dd2cd7d917c88976cca4e539a9d/src/Select.tsx#L112) | `false` when total less then `totalBoundaryShowSizeChanger`, `true` when otherwise |
6262
| totalBoundaryShowSizeChanger | when total larger than it, `showSizeChanger` will be true | number | 50 |
6363
| pageSizeOptions | specify the sizeChanger selections | Array<String> | ['10', '20', '50', '100'] |
6464
| onShowSizeChange | pageSize change callback | Function(current, size) | - |
@@ -81,3 +81,4 @@ ReactDOM.render(<Pagination />, container);
8181
## License
8282

8383
rc-pagination is released under the MIT license.
84+
```

0 commit comments

Comments
 (0)