UNPKG

1.27 kBJavaScriptView Raw
1import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
2import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
3import _inherits from 'babel-runtime/helpers/inherits';
4
5var _class, _temp;
6
7import React from 'react';
8import PropTypes from 'prop-types';
9
10/**
11 * Table.ColumnGroup
12 * @order 1
13 **/
14var ColumnGroup = (_temp = _class = function (_React$Component) {
15 _inherits(ColumnGroup, _React$Component);
16
17 function ColumnGroup() {
18 _classCallCheck(this, ColumnGroup);
19
20 return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
21 }
22
23 ColumnGroup.prototype.getChildContext = function getChildContext() {
24 return {
25 parent: this
26 };
27 };
28
29 ColumnGroup.prototype.render = function render() {
30 return null;
31 };
32
33 return ColumnGroup;
34}(React.Component), _class.propTypes = {
35 /**
36 * 表头显示的内容
37 */
38 title: PropTypes.oneOfType([PropTypes.element, PropTypes.node, PropTypes.func])
39}, _class.childContextTypes = {
40 parent: PropTypes.any
41}, _class.defaultProps = {
42 title: 'column-group'
43}, _class._typeMark = 'columnGroup', _temp);
44ColumnGroup.displayName = 'ColumnGroup';
45export { ColumnGroup as default };
\No newline at end of file