ant-design/components/pagination/design/demo/total.tsx

14 lines
277 B
TypeScript
Raw Normal View History

import React from 'react';
import { Pagination } from 'antd';
const App: React.FC = () => (
<Pagination
defaultCurrent={3}
total={500}
showQuickJumper
showTotal={(total, range) => `${range.join('-')} 条 / 共 ${total}`}
/>
);
export default App;