1 | import _inheritsLoose from "@babel/runtime-corejs2/helpers/esm/inheritsLoose";
|
2 | import _extends from "@babel/runtime-corejs2/helpers/esm/extends";
|
3 | import React from 'react';
|
4 | import PropTypes from 'prop-types';
|
5 | import TabContainer from './TabContainer';
|
6 | import TabContent from './TabContent';
|
7 | import TabPane from './TabPane';
|
8 |
|
9 | var propTypes = _extends({}, TabPane.propTypes, {
|
10 | disabled: PropTypes.bool,
|
11 | title: PropTypes.node,
|
12 |
|
13 | |
14 |
|
15 |
|
16 | tabClassName: PropTypes.string
|
17 | });
|
18 |
|
19 | var Tab =
|
20 |
|
21 | function (_React$Component) {
|
22 | _inheritsLoose(Tab, _React$Component);
|
23 |
|
24 | function Tab() {
|
25 | return _React$Component.apply(this, arguments) || this;
|
26 | }
|
27 |
|
28 | var _proto = Tab.prototype;
|
29 |
|
30 | _proto.render = function render() {
|
31 | var props = _extends({}, this.props);
|
32 |
|
33 |
|
34 | delete props.title;
|
35 | delete props.disabled;
|
36 | delete props.tabClassName;
|
37 | return React.createElement(TabPane, props);
|
38 | };
|
39 |
|
40 | return Tab;
|
41 | }(React.Component);
|
42 |
|
43 | Tab.propTypes = propTypes;
|
44 | Tab.Container = TabContainer;
|
45 | Tab.Content = TabContent;
|
46 | Tab.Pane = TabPane;
|
47 | export default Tab; |
\ | No newline at end of file |