forked from wangziqi/gongxue-base
fix: add scroll.x='max-content' to 15 tables, widen narrow columns to prevent header wrapping
This commit is contained in:
@@ -187,7 +187,7 @@ const OccupanciesPage: React.FC = () => {
|
||||
{ title: '退宿原因', dataIndex: 'checkOutReason', render: (v: any) => v || '-' },
|
||||
{
|
||||
title: '操作',
|
||||
width: 200,
|
||||
width: 220,
|
||||
render: (_: any, record: any) =>
|
||||
!record.checkOutDate ? (
|
||||
<Space>
|
||||
@@ -451,7 +451,7 @@ const OccupanciesPage: React.FC = () => {
|
||||
dataSource={filteredData}
|
||||
rowKey="id"
|
||||
loading={loading}
|
||||
scroll={{ x: 900 }}
|
||||
scroll={{ x: 'max-content' }}
|
||||
pagination={{ pageSize: 15, showTotal: (total) => `共 ${total} 条` }}
|
||||
rowSelection={rowSelection}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user