react-antd-table-rowspan
Version:
react+antd表格指定的列,连续的,行合并
19 lines (18 loc) • 537 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @description 渲染单元格
* */
function rendercell(params) {
var _a;
var children = params.children, row = params.row, key = params.key, _b = params.type, type = _b === void 0 ? 'rowSpan' : _b;
var obj = {
children: children,
props: (_a = {},
_a[type] = '',
_a),
};
obj.props[type] = row[key + type] ? row[key + type] : 0;
return obj;
}
exports.default = rendercell;