mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-14 17:01:17 +08:00
24 lines
584 B
TypeScript
24 lines
584 B
TypeScript
|
import React from 'react';
|
||
|
import type { PaginationProps } from 'antd';
|
||
|
import { Pagination } from 'antd';
|
||
|
|
||
|
const showTotal: PaginationProps['showTotal'] = total => `Total ${total} items`;
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<>
|
||
|
<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
|
||
|
/>
|
||
|
</>
|
||
|
);
|
||
|
|
||
|
export default App;
|