mirror of
https://github.com/wahyd4/ant-design.git
synced 2026-08-24 20:25:52 +10:00
30 lines
673 B
JavaScript
30 lines
673 B
JavaScript
'use strict';
|
|
|
|
var React = require('react');
|
|
var Steps = require('rc-steps');
|
|
|
|
var AntSteps = React.createClass({
|
|
displayName: 'AntSteps',
|
|
|
|
getDefaultProps: function getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-steps',
|
|
iconPrefix: 'ant',
|
|
size: 'default',
|
|
maxDescriptionWidth: 100
|
|
};
|
|
},
|
|
render: function render() {
|
|
return React.createElement(
|
|
Steps,
|
|
{ size: this.props.size,
|
|
iconPrefix: this.props.iconPrefix,
|
|
maxDescriptionWidth: this.props.maxDescriptionWidth,
|
|
prefixCls: this.props.prefixCls },
|
|
this.props.children
|
|
);
|
|
}
|
|
});
|
|
AntSteps.Step = Steps.Step;
|
|
|
|
module.exports = AntSteps; |