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

31 lines
466 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 4
2016-07-29 10:15:31 +08:00
title:
zh-CN: 迷你
en-US: Mini size
2016-03-31 09:40:55 +08:00
---
2015-07-13 14:58:26 +08:00
2016-07-29 10:15:31 +08:00
## zh-CN
2015-07-21 11:13:32 +08:00
迷你版本。
2015-07-13 14:58:26 +08:00
2016-07-29 10:15:31 +08:00
## en-US
Mini size pagination.
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
````