很简单 加一个属性
locale={{ items_per_page: '页' }}
<Pagination
pageSize={pagination.pageSize}
locale={{ items_per_page: '页' }}
current={pagination.current}
showTotal={(total, range) => `共有 ${pagination.total} 条数据`}
style={{ textAlign: 'right' }}
onChange={(page: number, pageSize: number) => {
setPagination((prePagination) => {
return { total: prePagination.total, pageSize, current: page }
})
}}
showSizeChanger={true}
total={pagination.total}
/>