@@ -66,6 +69,7 @@ var Line = React.createClass({
var Circle = React.createClass({
getDefaultProps: function () {
return {
+ width: 150,
percent: 0,
strokeWidth: 4,
status: 'normal' // exception
@@ -87,7 +91,7 @@ var Circle = React.createClass({
'height': this.props.width
};
var wrapStyle = {
- 'font-size': this.props.width * 0.3
+ 'font-size': this.props.width * 0.2
};
var textStyle = {
'color': statusColorMap[this.props.status]
@@ -99,6 +103,12 @@ var Circle = React.createClass({
);
+ }else if(this.props.status === 'suucess'){
+ progressInfo = (
+
+
+
+ );
}else {
progressInfo = (
{this.props.percent}%
diff --git a/style/components/progress.less b/style/components/progress.less
index b523f53ab2..0e8e1f9320 100644
--- a/style/components/progress.less
+++ b/style/components/progress.less
@@ -5,6 +5,10 @@
&-circle-wrap {
display: inline-block;
}
+
+ &-line-wrap {
+ font-size: 12px;
+ }
&-line-inner {
display: inline-block;
@@ -20,7 +24,7 @@
line-height: 1;
.anticon {
- font-size: 1.5em;
+ font-size: 1.2em;
}
}
@@ -35,11 +39,11 @@
width: 100%;
text-align: center;
line-height: 1;
- top: 33%;
+ top: 38%;
left: 0;
.anticon {
- font-size: 1em;
+ font-size: 14/12em;
}
}
}