diff --git a/components/progress/demo/line.md b/components/progress/demo/line.md index d92731b45c..3c4f30bd6b 100644 --- a/components/progress/demo/line.md +++ b/components/progress/demo/line.md @@ -10,5 +10,5 @@ Progress Line用法 var Line = antd.Progress.Line; React.render( - , document.getElementById('components-progress-demo-line')); + , document.getElementById('components-progress-demo-line')); ```` diff --git a/components/progress/index.jsx b/components/progress/index.jsx index f7a9ed9a72..0cc28dc24b 100644 --- a/components/progress/index.jsx +++ b/components/progress/index.jsx @@ -7,7 +7,7 @@ var React = require('react'); var Line = React.createClass({ getDefaultProps: function(){ return { - width: "100px", + width: "100%", percent: 0, strokeWidth: 1, status: "normal" @@ -20,11 +20,11 @@ var Line = React.createClass({ var progressInfo if(this.props.status==='normal'){ progressInfo = ( - + {this.props.percent}% ) }else { progressInfo = ( - {this.props.percent}% + ) }