Fix initial maxDescriptionWidth for vertical steps

This commit is contained in:
afc163 2015-09-16 18:23:34 +08:00
parent 1d31b8e0be
commit 78d15aabbf
2 changed files with 6 additions and 2 deletions

View File

@ -12,12 +12,16 @@ const AntSteps = React.createClass({
};
},
render() {
let maxDescriptionWidth = this.props.maxDescriptionWidth;
if (this.props.direction === 'vertical') {
maxDescriptionWidth = 'auto';
}
return (
<Steps size={this.props.size}
current={this.props.current}
direction={this.props.direction}
iconPrefix={this.props.iconPrefix}
maxDescriptionWidth={this.props.maxDescriptionWidth}
maxDescriptionWidth={maxDescriptionWidth}
prefixCls={this.props.prefixCls}>
{this.props.children}
</Steps>

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "0.9.1-beta5",
"version": "0.9.1-beta6",
"stableVersion": "0.9.0",
"title": "Ant Design",
"description": "一个 UI 设计语言",