You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
584 B
28 lines
584 B
import React from 'react';
|
|
import type { PaginationProps } from 'antd';
|
|
import { Pagination } from 'antd';
|
|
|
|
const onShowSizeChange: PaginationProps['onShowSizeChange'] = (current, pageSize) => {
|
|
console.log(current, pageSize);
|
|
};
|
|
|
|
const App: React.FC = () => (
|
|
<>
|
|
<Pagination
|
|
showSizeChanger
|
|
onShowSizeChange={onShowSizeChange}
|
|
defaultCurrent={3}
|
|
total={500}
|
|
/>
|
|
<br />
|
|
<Pagination
|
|
showSizeChanger
|
|
onShowSizeChange={onShowSizeChange}
|
|
defaultCurrent={3}
|
|
total={500}
|
|
disabled
|
|
/>
|
|
</>
|
|
);
|
|
|
|
export default App;
|
|
|