mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-16 01:41:02 +08:00
e88589d9ef
* feat: Pagination support `disable` * update snapshot * update style * update style * update snapshot * update font color
598 B
598 B
order | title | ||||
---|---|---|---|---|---|
2 |
|
zh-CN
改变每页显示条目数。
en-US
Change pageSize
.
import { Pagination } from 'antd';
function onShowSizeChange(current, pageSize) {
console.log(current, pageSize);
}
ReactDOM.render(
<div>
<Pagination
showSizeChanger
onShowSizeChange={onShowSizeChange}
defaultCurrent={3}
total={500}
/>
<br />
<Pagination
showSizeChanger
onShowSizeChange={onShowSizeChange}
defaultCurrent={3}
total={500}
disabled
/>
</div>,
mountNode,
);