Skip to content

Commit

Permalink
barStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
silentcloud committed Aug 22, 2016
1 parent 40a48a8 commit e75c8e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Nav.jsx
Expand Up @@ -21,6 +21,7 @@ const Nav = React.createClass({
onKeyDown: PropTypes.func,
style: PropTypes.object,
inkBarStyle: PropTypes.object,
barStyle: PropTypes.object,
},

mixins: [InkBarMixin],
Expand Down Expand Up @@ -248,7 +249,7 @@ const Nav = React.createClass({
render() {
const props = this.props;
const state = this.state;
const { prefixCls, tabBarExtraContent, inkBarStyle, style } = props;
const { prefixCls, tabBarExtraContent, inkBarStyle, barStyle } = props;
const tabs = this.getTabs();

let inkBarNode;
Expand Down Expand Up @@ -335,7 +336,7 @@ const Nav = React.createClass({
tabIndex="0"
ref="root"
onKeyDown={props.onKeyDown}
style={style}
style={barStyle}
>
{contents}
</div>);
Expand Down
3 changes: 3 additions & 0 deletions src/Tabs.jsx
Expand Up @@ -33,6 +33,7 @@ const Tabs = React.createClass({
tabPosition: PropTypes.string,
navStyle: PropTypes.object,
inkBarStyle: PropTypes.object,
barStyle: PropTypes.object,
},

getDefaultProps() {
Expand All @@ -48,6 +49,7 @@ const Tabs = React.createClass({
contentStyle: {},
navStyle: {},
inkBarStyle: {},
barStyle: {},
onTabClick: noop,
};
},
Expand Down Expand Up @@ -247,6 +249,7 @@ const Tabs = React.createClass({
tabPosition={tabPosition}
style={props.navStyle}
inkBarStyle={props.inkBarStyle}
barStyle={props.barStyle}
onTabClick={this.onTabClick}
tabMovingDirection={tabMovingDirection}
panels={props.children}
Expand Down

0 comments on commit e75c8e8

Please sign in to comment.