mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
remove unused code
This commit is contained in:
parent
e27d6c3097
commit
4b4a55b003
@ -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} />
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user