master
This commit is contained in:
parent
26117e7254
commit
2eddab4e5c
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue