You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
882 B
33 lines
882 B
import * as React from 'react';
|
|
import Cell from '../Cell';
|
|
import TableContext from '../context/TableContext';
|
|
export default function SummaryCell(_ref) {
|
|
var className = _ref.className,
|
|
index = _ref.index,
|
|
children = _ref.children,
|
|
colSpan = _ref.colSpan,
|
|
rowSpan = _ref.rowSpan;
|
|
|
|
var _React$useContext = React.useContext(TableContext),
|
|
prefixCls = _React$useContext.prefixCls,
|
|
fixedInfoList = _React$useContext.fixedInfoList;
|
|
|
|
var fixedInfo = fixedInfoList[index];
|
|
return React.createElement(Cell, Object.assign({
|
|
className: className,
|
|
index: index,
|
|
component: "td",
|
|
prefixCls: prefixCls,
|
|
record: null,
|
|
dataIndex: null,
|
|
render: function render() {
|
|
return {
|
|
children: children,
|
|
props: {
|
|
colSpan: colSpan,
|
|
rowSpan: rowSpan
|
|
}
|
|
};
|
|
}
|
|
}, fixedInfo));
|
|
} |