优化Table
parent
8ab3268773
commit
e5dfc86456
|
|
@ -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) } : {})
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue