[fix]修复服务启动 (#3)

This commit is contained in:
lanceyq
2025-12-04 18:50:09 +08:00
committed by GitHub
parent b9c705998b
commit 0117194a67
23 changed files with 675 additions and 269 deletions

View File

@@ -140,7 +140,8 @@ const TableComponent = forwardRef<TableRef, TableComponentProps>(({
const config: { x?: number | string | true; y?: number | string } = {};
if (scrollX !== undefined) {
// 只有在有数据时才应用横向滚动
if (scrollX !== undefined && data.length > 0) {
config.x = scrollX;
} else if (isScroll) {
config.x = 'max-content';