fix: enhance pagination settings across multiple pages with default size and options
This commit is contained in:
@@ -287,7 +287,12 @@ const ClassroomsPage: React.FC = () => {
|
||||
rowKey="id"
|
||||
loading={loading}
|
||||
locale={{ emptyText: <Empty description="暂无数据" /> }}
|
||||
pagination={{ pageSize: 20, showTotal: (total) => `共 ${total} 条` }}
|
||||
pagination={{
|
||||
defaultPageSize: 20,
|
||||
showSizeChanger: true,
|
||||
pageSizeOptions: [20, 50, 100],
|
||||
showTotal: (total) => `共 ${total} 条`,
|
||||
}}
|
||||
/>
|
||||
<Modal
|
||||
title={editing ? '编辑教室' : '添加教室'}
|
||||
|
||||
Reference in New Issue
Block a user