remove unused code

This commit is contained in:
afc163 2016-07-07 15:42:00 +08:00
parent e27d6c3097
commit 4b4a55b003

View File

@ -7,17 +7,12 @@ export default class Steps extends React.Component {
static defaultProps = {
prefixCls: 'ant-steps',
iconPrefix: 'ant',
maxDescriptionWidth: 100,
current: 0,
}
render() {
let maxDescriptionWidth = this.props.maxDescriptionWidth;
if (this.props.direction === 'vertical') {
maxDescriptionWidth = 'auto';
}
return (
<RcSteps {...this.props} maxDescriptionWidth={maxDescriptionWidth} />
<RcSteps {...this.props} />
);
}
}