2015-06-25 16:01:04 +08:00
|
|
|
'use strict';
|
|
|
|
|
2015-06-26 10:43:01 +08:00
|
|
|
var React = require('react');
|
|
|
|
var Steps = require('rc-steps');
|
|
|
|
|
|
|
|
var AntSteps = React.createClass({
|
|
|
|
getDefaultProps() {
|
|
|
|
return {
|
2015-06-26 16:13:40 +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',
|
|
|
|
maxDescriptionWidth: 100
|
2015-06-26 10:43:01 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
render() {
|
2015-07-07 19:36:42 +08:00
|
|
|
return (<Steps size={this.props.size}
|
2015-07-08 15:53:51 +08:00
|
|
|
iconPrefix={this.props.iconPrefix}
|
|
|
|
maxDescriptionWidth={this.props.maxDescriptionWidth}
|
2015-07-07 19:36:42 +08:00
|
|
|
prefixCls={this.props.prefixCls}>
|
2015-06-26 10:43:01 +08:00
|
|
|
{this.props.children}
|
|
|
|
</Steps>);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
AntSteps.Step = Steps.Step;
|
|
|
|
|
|
|
|
module.exports = AntSteps;
|