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.
|
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
```tsx
|
|
|
|
import type { PaginationProps } from 'antd';
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Pagination } from 'antd';
|
2022-05-21 22:14:15 +08:00
|
|
|
import React from 'react';
|
2015-07-13 14:58:26 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const showTotal: PaginationProps['showTotal'] = total => `Total ${total} items`;
|
2016-02-25 10:36:58 +08:00
|
|
|
|
2022-05-19 09:46:26 +08:00
|
|
|
const App: React.FC = () => (
|
2020-07-07 21:33:07 +08:00
|
|
|
<>
|
2016-11-15 16:44:00 +08:00
|
|
|
<Pagination size="small" total={50} />
|
|
|
|
<Pagination size="small" total={50} showSizeChanger showQuickJumper />
|
|
|
|
<Pagination size="small" total={50} showTotal={showTotal} />
|
2020-08-04 16:10:27 +08:00
|
|
|
<Pagination
|
|
|
|
size="small"
|
|
|
|
total={50}
|
|
|
|
disabled
|
|
|
|
showTotal={showTotal}
|
|
|
|
showSizeChanger
|
|
|
|
showQuickJumper
|
|
|
|
/>
|
2022-04-03 23:27:45 +08:00
|
|
|
</>
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2022-05-19 09:46:26 +08:00
|
|
|
|
|
|
|
export default App;
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|
2017-02-18 18:12:38 +08:00
|
|
|
|
|
|
|
<style>
|
|
|
|
#components-pagination-demo-mini .ant-pagination:not(:last-child) {
|
|
|
|
margin-bottom: 24px;
|
|
|
|
}
|
|
|
|
</style>
|