ant-design/components/pagination/demo/changer.md

20 lines
323 B
Markdown
Raw Normal View History

2015-07-13 01:04:05 +08:00
# 改变
- order: 2
2015-07-21 11:13:32 +08:00
改变每页显示条目数。
2015-07-13 01:04:05 +08:00
---
````jsx
import { Pagination } from 'antd';
2015-07-13 01:04:05 +08:00
function onShowSizeChange(current, pageSize) {
console.log(current, pageSize);
}
2015-10-20 16:47:55 +08:00
ReactDOM.render(
2015-11-26 17:15:18 +08:00
<Pagination showSizeChanger onShowSizeChange={onShowSizeChange} defaultCurrent={3} total={500} />,
mountNode);
2015-07-13 01:04:05 +08:00
````