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

20 lines
307 B
Markdown
Raw Normal View History

2015-07-13 01:04:05 +08:00
# 改变
- order: 2
改变每页显示条目数
---
````jsx
var Pagination = antd.Pagination;
function onChange(page) {
console.log(page);
}
React.render(
<Pagination showSizeChanger={true} onChange={onChange} total={500} />,
document.getElementById('components-pagination-demo-changer'));
````