
原因Table 默认使用自适应布局列宽根据内容自动分配没有设置scroll.x时表格会尝试适应容器宽度列数多且内容少时列会被挤压得很窄解决方案1. 设置横向滚动推荐Table dataSource{dataSource} columns{columns} scroll{{ x: max-content }} // 或设置具体宽度如 1500 onChange{handleTableChange} rowSelection{{...}} /2. 使用固定布局Table dataSource{dataSource} columns{columns} tableLayoutfixed onChange{handleTableChange} rowSelection{{...}} /3. 为列设置最小宽度{ title: 姓名, dataIndex: name, key: name, minWidth: 100, // 确保最小宽度 }最简单的方式是添加scroll{{ x: max-content }}这样表格会横向滚动列不会被挤压。