index.js
1002 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.FooterComponents = exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
var _TableContext = _interopRequireDefault(require("../context/TableContext"));
var _Cell = _interopRequireDefault(require("./Cell"));
var _Row = _interopRequireDefault(require("./Row"));
function Footer(_ref) {
var children = _ref.children;
var _React$useContext = React.useContext(_TableContext.default),
prefixCls = _React$useContext.prefixCls;
return React.createElement("tfoot", {
className: "".concat(prefixCls, "-summary")
}, children);
}
var _default = Footer;
exports.default = _default;
var FooterComponents = {
Cell: _Cell.default,
Row: _Row.default
};
exports.FooterComponents = FooterComponents;