/* * * 合计行 * @Author: 黎永顺 * @Date: 2024/5/24 * @Wechat: * @Email: 971387674@qq.com * @description: */ import React, { FunctionComponent } from "react"; import { Table, Typography } from "antd"; import { ColumnType } from "antd/lib/table"; const { Text } = Typography; interface OwnProps { columns: ColumnType[]; sumRow: any; } type Props = OwnProps; const sumTotal: FunctionComponent = (props) => { return (<> { _.map(props.columns, (item: any, index) => { return {!_.isEmpty(props?.sumRow) ? props?.sumRow[item.dataIndex] : "-"} ; }) } ); }; export default sumTotal;