diff --git a/components/progress/demo/circle-mini.md b/components/progress/demo/circle-mini.md
new file mode 100644
index 0000000000..e0b4de1508
--- /dev/null
+++ b/components/progress/demo/circle-mini.md
@@ -0,0 +1,27 @@
+# Circle 用法
+
+- order: 0
+
+Progress Circle用法
+
+---
+
+````jsx
+var Circle = antd.Progress.Circle;
+
+React.render(
+
+
+
+
+
+ , document.getElementById('components-progress-demo-circle-mini'));
+````
+
+
diff --git a/components/progress/demo/circle.md b/components/progress/demo/circle.md
index 5bf88efda7..dadc551f24 100644
--- a/components/progress/demo/circle.md
+++ b/components/progress/demo/circle.md
@@ -11,9 +11,9 @@ var Circle = antd.Progress.Circle;
React.render(
-
-
-
+
+
+
, document.getElementById('components-progress-demo-circle'));
````
diff --git a/components/progress/demo/line-mini.md b/components/progress/demo/line-mini.md
new file mode 100644
index 0000000000..eb5ab9eeb9
--- /dev/null
+++ b/components/progress/demo/line-mini.md
@@ -0,0 +1,19 @@
+# Line 用法
+
+- order: 0
+
+Progress Line用法
+
+---
+
+````jsx
+var Line = antd.Progress.Line;
+
+React.render(
+
+
+
+
+
+ , document.getElementById('components-progress-demo-line-mini'));
+````
diff --git a/components/progress/demo/line.md b/components/progress/demo/line.md
index 181ee4f108..8acf417078 100644
--- a/components/progress/demo/line.md
+++ b/components/progress/demo/line.md
@@ -11,9 +11,9 @@ var Line = antd.Progress.Line;
React.render(
-
-
-
+
+
+
, document.getElementById('components-progress-demo-line'));
````
diff --git a/components/progress/index.jsx b/components/progress/index.jsx
index 88b4319a44..d4074d5e54 100644
--- a/components/progress/index.jsx
+++ b/components/progress/index.jsx
@@ -10,7 +10,7 @@ var Line = React.createClass({
percent: 0,
strokeWidth: 2,
status: 'normal' // exception
- }
+ };
},
render() {
var statusColorMap = {
@@ -20,35 +20,35 @@ var Line = React.createClass({
};
if (parseInt(this.props.percent) === 100) {
- this.props.status = 'success'
+ this.props.status = 'success';
}
var style = {
'width': this.props.width
- }
+ };
var wrapStyle = {
'font-size': this.props.width / 100 * this.props.strokeWidth
- }
+ };
var textStyle = {
'color': statusColorMap[this.props.status]
- }
- var progressInfo
+ };
+ var progressInfo;
if (this.props.status === 'exception') {
progressInfo = (
- )
+ );
} else if(this.props.status === 'success'){
progressInfo = (
- )
+ );
}else {
progressInfo = (
{this.props.percent}%
- )
+ );
}
return (
@@ -69,7 +69,7 @@ var Circle = React.createClass({
percent: 0,
strokeWidth: 2,
status: 'normal' // exception
- }
+ };
},
render() {
var statusColorMap = {
@@ -79,30 +79,30 @@ var Circle = React.createClass({
};
if (parseInt(this.props.percent) === 100) {
- this.props.status = 'success'
+ this.props.status = 'success';
}
var style = {
'width': this.props.width,
'height': this.props.width
- }
+ };
var wrapStyle = {
'font-size': this.props.width * 0.3
- }
+ };
var textStyle = {
'color': statusColorMap[this.props.status]
- }
- var progressInfo
+ };
+ var progressInfo;
if (this.props.status === 'exception') {
progressInfo = (
- )
+ );
}else {
progressInfo = (
{this.props.percent}%
- )
+ );
}
return (
diff --git a/components/progress/index.md b/components/progress/index.md
index c60f339749..82c6143e99 100644
--- a/components/progress/index.md
+++ b/components/progress/index.md
@@ -16,7 +16,7 @@
| 参数 | 说明 | 类型 | 默认值 |
|----------|----------------|----------|--------------|
-| perscent | 百分比 | number | 0 |
+| percent | 百分比 | number | 0 |
| status | 状态,有两个值normal、exception | string | normal |
| strokeWidth | 进度条线宽度,单位是进度条画布宽度的百分比 | number | 1 |
| width | 必填,进度条画布宽度,单位px。这里没有提供height属性设置,Line型高度就是strokeWidth,Circle型高度等于width | number | null |