UNPKG

chowa

Version:

UI component library based on React

24 lines (23 loc) 812 B
/** * @license chowa v1.1.3 * * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn). * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); class TableFooter extends React.PureComponent { render() { const { footer, dataIndexs, withSelection, withExpanded } = this.props; const colSpan = dataIndexs.length + (withSelection ? 1 : 0) + (withExpanded ? 1 : 0); return (React.createElement("tfoot", null, React.createElement("tr", null, React.createElement("td", { colSpan: colSpan }, footer)))); } } exports.default = TableFooter;