mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
Fix initial maxDescriptionWidth for vertical steps
This commit is contained in:
parent
1d31b8e0be
commit
78d15aabbf
@ -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>
|
||||
|
@ -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 设计语言",
|
||||
|
Loading…
Reference in New Issue
Block a user