mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-04 17:09:46 +08:00
6776bb8916
* docs: update demo * chore: add script * test: fix demo test * docs: convert demos * chore: move script * test: remove react-dom import * chore: update deps * docs: update riddle js * test: fix image test * docs: fix riddle demo
45 lines
708 B
Markdown
45 lines
708 B
Markdown
---
|
|
order: 4
|
|
title:
|
|
zh-CN: 迷你
|
|
en-US: Mini size
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
迷你版本。
|
|
|
|
## en-US
|
|
|
|
Mini size pagination.
|
|
|
|
```jsx
|
|
import { Pagination } from 'antd';
|
|
|
|
function showTotal(total) {
|
|
return `Total ${total} items`;
|
|
}
|
|
|
|
export default () => (
|
|
<>
|
|
<Pagination size="small" total={50} />
|
|
<Pagination size="small" total={50} showSizeChanger showQuickJumper />
|
|
<Pagination size="small" total={50} showTotal={showTotal} />
|
|
<Pagination
|
|
size="small"
|
|
total={50}
|
|
disabled
|
|
showTotal={showTotal}
|
|
showSizeChanger
|
|
showQuickJumper
|
|
/>
|
|
</>
|
|
);
|
|
```
|
|
|
|
<style>
|
|
#components-pagination-demo-mini .ant-pagination:not(:last-child) {
|
|
margin-bottom: 24px;
|
|
}
|
|
</style>
|