mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
23 lines
455 B
TypeScript
23 lines
455 B
TypeScript
import React from 'react';
|
|
import { Pagination } from 'antd';
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Pagination
|
|
total={85}
|
|
showTotal={(total) => `Total ${total} items`}
|
|
defaultPageSize={20}
|
|
defaultCurrent={1}
|
|
/>
|
|
<br />
|
|
<Pagination
|
|
total={85}
|
|
showTotal={(total, range) => `${range[0]}-${range[1]} of ${total} items`}
|
|
defaultPageSize={20}
|
|
defaultCurrent={1}
|
|
/>
|
|
</>
|
|
);
|
|
|
|
export default App;
|