pull/26/head
夏奈 10 years ago
parent 2c58d5e1ce
commit a100bc0de3

@ -11,9 +11,9 @@ var Circle = antd.Progress.Circle;
React.render( React.render(
<div> <div>
<Circle percent="30" width="100" strokeWidth="4" /> <Circle percent="30" width="100" />
<Circle percent="70" width="100" strokeWidth="4" status="exception" /> <Circle percent="70" width="100" status="exception" />
<Circle percent="100" width="100" strokeWidth="4" /> <Circle percent="100" width="100" />
</div> </div>
, document.getElementById('components-progress-demo-circle-mini')); , document.getElementById('components-progress-demo-circle-mini'));
```` ````

@ -11,9 +11,9 @@ var Circle = antd.Progress.Circle;
React.render( React.render(
<div> <div>
<Circle percent="30" width="150" strokeWidth="4" /> <Circle percent="30" width="150" />
<Circle percent="70" width="150" strokeWidth="4" status="exception" /> <Circle percent="70" width="150" status="exception" />
<Circle percent="100" width="150" strokeWidth="4" /> <Circle percent="100" width="150" />
</div> </div>
, document.getElementById('components-progress-demo-circle')); , document.getElementById('components-progress-demo-circle'));
```` ````

@ -8,7 +8,7 @@ var Line = React.createClass({
getDefaultProps: function () { getDefaultProps: function () {
return { return {
percent: 0, percent: 0,
strokeWidth: 2, strokeWidth: 4,
status: 'normal' // exception status: 'normal' // exception
}; };
}, },
@ -55,7 +55,7 @@ var Line = React.createClass({
<div className='ant-progress-line-wrap' style={wrapStyle}> <div className='ant-progress-line-wrap' style={wrapStyle}>
<div className='ant-progress-line-inner' style={style}> <div className='ant-progress-line-inner' style={style}>
<Progressline percent={this.props.percent} strokeWidth={this.props.strokeWidth} <Progressline percent={this.props.percent} strokeWidth={this.props.strokeWidth}
strokeColor={statusColorMap[this.props.status]}/> strokeColor={statusColorMap[this.props.status]} trailColor="#e9e9e9" />
</div> </div>
{progressInfo} {progressInfo}
</div> </div>
@ -67,7 +67,7 @@ var Circle = React.createClass({
getDefaultProps: function () { getDefaultProps: function () {
return { return {
percent: 0, percent: 0,
strokeWidth: 2, strokeWidth: 4,
status: 'normal' // exception status: 'normal' // exception
}; };
}, },
@ -109,7 +109,7 @@ var Circle = React.createClass({
<div className="ant-progress-circle-wrap" style={wrapStyle}> <div className="ant-progress-circle-wrap" style={wrapStyle}>
<div className="ant-progress-circle-inner" style={style}> <div className="ant-progress-circle-inner" style={style}>
<Progresscircle percent={this.props.percent} strokeWidth={this.props.strokeWidth} <Progresscircle percent={this.props.percent} strokeWidth={this.props.strokeWidth}
strokeColor={statusColorMap[this.props.status]}/> strokeColor={statusColorMap[this.props.status]} trailColor="#e9e9e9" />
{progressInfo} {progressInfo}
</div> </div>
</div> </div>

Loading…
Cancel
Save