tony.cheng
2026-01-27 94eba98e7e2c86d65a449807d0aa79cfb59c1db4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import { Pagination } from 'antd';
 
const PaginationBar = ({ page, pageSize, total, onChange }) => {
  return (
    <div style={{ marginTop: 16, textAlign: 'right' }}>
      <Pagination
        current={page}
        pageSize={pageSize}
        total={total}
        onChange={onChange}
        showSizeChanger
        showTotal={(t) => `共 ${t} 条`}
      />
    </div>
  );
};
 
export default PaginationBar;