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
|
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) {
|
|
|
|
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} />
|
2015-12-29 12:08:58 +08:00
|
|
|
</div>, mountNode);
|
2015-07-13 14:58:26 +08:00
|
|
|
````
|