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

24 lines
390 B
Markdown
Raw Normal View History

2015-07-13 14:58:26 +08:00
# 迷你
- order: 4
2015-07-21 11:13:32 +08:00
迷你版本。
2015-07-13 14:58:26 +08:00
---
````jsx
import { Pagination } from 'antd';
2015-07-13 14:58:26 +08:00
2016-02-25 10:36:58 +08:00
function showTotal(total) {
return `共 ${total} 条`;
}
2015-12-05 13:34:55 +08:00
ReactDOM.render(<div>
<Pagination size="small" total={50} />
<br />
<Pagination size="small" total={50} showSizeChanger showQuickJumper />
2016-02-25 10:36:58 +08:00
<br />
<Pagination size="small" total={50} showTotal={showTotal} />
</div>, mountNode);
2015-07-13 14:58:26 +08:00
````