From d39b222b4723b1a673f06e1b9368a73eee880c13 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 6 Jul 2015 10:58:34 +0800 Subject: [PATCH] code style --- components/progress/index.jsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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}% ); -- GitLab