StepsBar.js 713 Bytes
import React,{PropTypes} from 'react';
import {Steps} from 'antd'; 
const Step = Steps.Step;
import cx from 'classnames';    


class StepsBar extends React.Component {
	constructor(props) {
		super(props);

		this.state={
			
		}
	}
	componentDidMount() { 

	}
	componentWillReceiveProps(nextProps){ 
     	 
  	}
	componentWillUnmount(){  
	} 
  
	render() {  
	
		const { current, steps, direction, size, progressDot=false} = this.props;
		return( 
			<div> 
				<Steps current={current} direction={direction} size={size} progressDot={progressDot}>
					{steps.map((data,i)=>{
						return(
							<Step key={i} title={data.title} />
						)
					})}
				</Steps>
			</div>
		)
	}
}

export default StepsBar;