Merge branch 'master' into feature/2.9.42310.01-薪资项目拓扑图

This commit is contained in:
黎永顺 2024-06-21 14:09:48 +08:00
commit 22398469e5
1 changed files with 2 additions and 1 deletions

View File

@ -54,10 +54,11 @@ const calcFixedTotal: FunctionComponent<Props> = (props) => {
}
return () => debounceFetcher && debounceFetcher.cancel();
}, [props.payload, props.sumRow]);
return (<>
{
_.map(columns, (item: any, index) => {
return <Table.Summary.Cell index={index + 1} key={index + 1} align="center">
return <Table.Summary.Cell index={index + 1} key={index + 1} align={_.head(columns)?.align || "left"}>
{
loading ? <Spin spinning={loading} size="small"></Spin> :
<Text type="danger">{sumRow[item.dataIndex] || "-"}</Text>