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.
|
|
|
|
|
2017-02-13 10:55:53 +08:00
|
|
|
````jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Pagination } from 'antd';
|
2015-07-13 14:58:26 +08:00
|
|
|
|
2016-02-25 10:36:58 +08:00
|
|
|
function showTotal(total) {
|
2016-10-08 08:49:08 +08:00
|
|
|
return `Total ${total} items`;
|
2016-02-25 10:36:58 +08:00
|
|
|
}
|
|
|
|
|
2016-11-15 16:44:00 +08:00
|
|
|
ReactDOM.render(
|
|
|
|
<div>
|
|
|
|
<Pagination size="small" total={50} />
|
|
|
|
<Pagination size="small" total={50} showSizeChanger showQuickJumper />
|
|
|
|
<Pagination size="small" total={50} showTotal={showTotal} />
|
|
|
|
</div>
|
|
|
|
, mountNode);
|
2015-07-13 14:58:26 +08:00
|
|
|
````
|
2017-02-18 18:12:38 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
#components-pagination-demo-mini .ant-pagination:not(:last-child) {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
</style>
|