diff --git a/components/progress/index.jsx b/components/progress/index.jsx index 0be22712f2..d9e22235ae 100644 --- a/components/progress/index.jsx +++ b/components/progress/index.jsx @@ -5,7 +5,7 @@ var Progresscircle = require('rc-progress').Circle; var React = require('react'); var Line = React.createClass({ - getDefaultProps: function () { + getDefaultProps() { return { width: 300, percent: 0, @@ -41,21 +41,20 @@ var Line = React.createClass({ ); - - } else if(this.props.status === 'success'){ + } else if (this.props.status === 'success') { progressInfo = ( ); - }else { + } else { progressInfo = ( {this.props.percent}% ); } return ( -
+
@@ -103,13 +102,13 @@ var Circle = React.createClass({ ); - }else if(this.props.status === 'success'){ + } else if (this.props.status === 'success') { progressInfo = ( ); - }else { + } else { progressInfo = ( {this.props.percent}% );