ant-design/components/steps/index.jsx

25 lines
641 B
React
Raw Normal View History

import React from 'react';
import Steps from 'rc-steps';
const AntSteps = React.createClass({
getDefaultProps() {
return {
2015-08-31 20:24:47 +08:00
prefixCls: 'ant-steps',
2015-07-08 15:53:51 +08:00
iconPrefix: 'ant',
size: 'default',
maxDescriptionWidth: 100
};
},
render() {
return (<Steps size={this.props.size}
2015-08-31 20:24:47 +08:00
direction={this.props.direction}
2015-07-08 15:53:51 +08:00
iconPrefix={this.props.iconPrefix}
maxDescriptionWidth={this.props.maxDescriptionWidth}
2015-08-31 20:24:47 +08:00
prefixCls={this.props.prefixCls}>
{this.props.children}
</Steps>);
}
});
AntSteps.Step = Steps.Step;
2015-08-31 20:24:47 +08:00
export default AntSteps;