mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 16:58:00 +08:00
24 lines
390 B
Markdown
24 lines
390 B
Markdown
# 迷你
|
|
|
|
- order: 4
|
|
|
|
迷你版本。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { Pagination } from 'antd';
|
|
|
|
function showTotal(total) {
|
|
return `共 ${total} 条`;
|
|
}
|
|
|
|
ReactDOM.render(<div>
|
|
<Pagination size="small" total={50} />
|
|
<br />
|
|
<Pagination size="small" total={50} showSizeChanger showQuickJumper />
|
|
<br />
|
|
<Pagination size="small" total={50} showTotal={showTotal} />
|
|
</div>, mountNode);
|
|
````
|