mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
18 lines
470 B
TypeScript
18 lines
470 B
TypeScript
import React from 'react';
|
|
import type { PaginationProps } from 'antd';
|
|
import { Pagination } from 'antd';
|
|
|
|
const onChange: PaginationProps['onChange'] = (pageNumber) => {
|
|
console.log('Page: ', pageNumber);
|
|
};
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} />
|
|
<br />
|
|
<Pagination showQuickJumper defaultCurrent={2} total={500} onChange={onChange} disabled />
|
|
</>
|
|
);
|
|
|
|
export default App;
|