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

24 lines
432 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
var Pagination = antd.Pagination;
function onChange(page) {
console.log(page);
}
function onShowSizeChange(current, pageSize) {
console.log(current, pageSize);
}
2015-10-20 16:47:55 +08:00
ReactDOM.render(
<Pagination showSizeChanger={true} onShowSizeChange={onShowSizeChange} onChange={onChange} total={500} />,
2015-07-13 01:04:05 +08:00
document.getElementById('components-pagination-demo-changer'));
````