ant-design/components/pagination/demo/mini.md

47 lines
826 B
Markdown
Raw Normal View History

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.
```tsx
import type { PaginationProps } from 'antd';
import { Pagination } from 'antd';
2022-05-23 14:37:16 +08:00
import React from 'react';
2015-07-13 14:58:26 +08:00
const showTotal: PaginationProps['showTotal'] = total => `Total ${total} items`;
2016-02-25 10:36:58 +08:00
const App: React.FC = () => (
<>
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} />
<Pagination
size="small"
total={50}
disabled
showTotal={showTotal}
showSizeChanger
showQuickJumper
/>
</>
2018-11-28 15:00:03 +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>