feat: 宿舍管理表格添加 scroll 横向滚动
This commit is contained in:
@@ -375,6 +375,7 @@ const RoomsPage: React.FC = () => {
|
|||||||
columns={columns}
|
columns={columns}
|
||||||
dataSource={filteredData}
|
dataSource={filteredData}
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
|
scroll={{ x: 900 }}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
pagination={{ pageSize: 20, showTotal: (total) => `共 ${total} 间` }}
|
pagination={{ pageSize: 20, showTotal: (total) => `共 ${total} 间` }}
|
||||||
rowClassName={(record) => (record.status === 'archived' ? 'archived-row' : '')}
|
rowClassName={(record) => (record.status === 'archived' ? 'archived-row' : '')}
|
||||||
|
|||||||
Reference in New Issue
Block a user