优化Table

master
LiuJiaNan 2025-11-13 17:47:12 +08:00
parent 8ab3268773
commit e5dfc86456
1 changed files with 1 additions and 1 deletions

View File

@ -15,8 +15,8 @@ function Table(props) {
showIndexColumn && columns.unshift({...getIndexColumn(props.pagination), fixed: indexColumnFixed});
const setAlign = (column) => ({
...column,
align: useAlignCenter ? "center" : "left",
...column,
...(column.children ? { children: column.children.map(setAlign) } : {})
});