@axmit/antd-helpers
Advanced tools
Comparing version 1.3.10 to 1.3.11
@@ -7,3 +7,3 @@ import * as React from 'react'; | ||
tabs: ISmartTab[]; | ||
wrapperClassName?: string; | ||
className?: string; | ||
} | ||
@@ -10,0 +10,0 @@ export interface ISmartTab { |
@@ -15,5 +15,5 @@ "use strict"; | ||
render() { | ||
const { activeKey, onChange, defaultActiveKey, wrapperClassName } = this.props; | ||
const { activeKey, onChange, defaultActiveKey, className } = this.props; | ||
const tabs = this.props.tabs.filter(tab => !tab.hidden); | ||
const wrapperClasses = `${wrapperClassName}` || ''; | ||
const wrapperClasses = `${className}` || ''; | ||
return activeKey ? (React.createElement("div", { className: wrapperClasses }, | ||
@@ -20,0 +20,0 @@ React.createElement(antd_1.Tabs, { activeKey: activeKey, defaultActiveKey: defaultActiveKey, onChange: onChange, tabBarStyle: { textAlign: 'center' } }, this.renderDesktopContent(tabs)))) : (React.createElement("div", { className: wrapperClasses }, |
{ | ||
"name": "@axmit/antd-helpers", | ||
"author": "ashorin@axmit.com", | ||
"version": "1.3.10", | ||
"version": "1.3.11", | ||
"description": "An amount of helpers for ant design library", | ||
@@ -6,0 +6,0 @@ "homepage": "https://gitlab.axmit.com/axmit-npm/antd-helpers", |
Sorry, the diff of this file is not supported yet
196407