2015-07-23 22:23:11 +08:00
|
|
|
import React from 'react';
|
|
|
|
import Steps from 'rc-steps';
|
2015-06-26 10:43:01 +08:00
|
|
|
|
2015-07-23 22:23:11 +08:00
|
|
|
const AntSteps = React.createClass({
|
2015-06-26 10:43:01 +08:00
|
|
|
getDefaultProps() {
|
|
|
|
return {
|
2015-08-31 20:24:47 +08:00
|
|
|
prefixCls: 'ant-steps',
|
2015-07-08 15:53:51 +08:00
|
|
|
iconPrefix: 'ant',
|
2015-07-07 19:36:42 +08:00
|
|
|
size: 'default',
|
2015-09-16 14:44:03 +08:00
|
|
|
maxDescriptionWidth: 100,
|
|
|
|
current: 0
|
2015-06-26 10:43:01 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
render() {
|
2015-09-01 17:43:08 +08:00
|
|
|
return (
|
|
|
|
<Steps size={this.props.size}
|
2015-09-16 14:44:03 +08:00
|
|
|
current={this.props.current}
|
2015-09-01 17:43:08 +08:00
|
|
|
direction={this.props.direction}
|
|
|
|
iconPrefix={this.props.iconPrefix}
|
|
|
|
maxDescriptionWidth={this.props.maxDescriptionWidth}
|
|
|
|
prefixCls={this.props.prefixCls}>
|
|
|
|
{this.props.children}
|
|
|
|
</Steps>
|
|
|
|
);
|
2015-06-26 10:43:01 +08:00
|
|
|
}
|
|
|
|
});
|
2015-09-01 17:43:08 +08:00
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
AntSteps.Step = Steps.Step;
|
|
|
|
|
2015-09-01 16:18:46 +08:00
|
|
|
export default AntSteps;
|