2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 2
|
2016-07-29 10:15:31 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 改变
|
|
|
|
en-US: Changer
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2016-07-29 10:15:31 +08:00
|
|
|
## zh-CN
|
|
|
|
|
2015-07-21 11:13:32 +08:00
|
|
|
改变每页显示条目数。
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2016-07-29 10:15:31 +08:00
|
|
|
## en-US
|
|
|
|
|
|
|
|
Change `pageSize`.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Pagination } from 'antd';
|
2015-07-13 01:04:05 +08:00
|
|
|
|
2015-09-23 13:58:56 +08:00
|
|
|
function onShowSizeChange(current, pageSize) {
|
|
|
|
console.log(current, pageSize);
|
|
|
|
}
|
|
|
|
|
2015-10-20 16:47:55 +08:00
|
|
|
ReactDOM.render(
|
2016-11-15 16:44:00 +08:00
|
|
|
<Pagination showSizeChanger onShowSizeChange={onShowSizeChange} defaultCurrent={3} total={500} />
|
|
|
|
, mountNode);
|
2015-07-13 01:04:05 +08:00
|
|
|
````
|