(children)
| 95 | }; |
| 96 | |
| 97 | function getDefaultActiveKey(children) { |
| 98 | let defaultActiveKey; |
| 99 | forEach(children, (child) => { |
| 100 | if (defaultActiveKey == null) { |
| 101 | defaultActiveKey = child.props.eventKey; |
| 102 | } |
| 103 | }); |
| 104 | |
| 105 | return defaultActiveKey; |
| 106 | } |
| 107 | |
| 108 | function renderTab(child) { |
| 109 | const { title, eventKey, disabled, tabClassName, tabAttrs, id } = child.props; |