提交 4cfcf29a 编写于 作者: A afc163

update progress size

上级 78748bb8
...@@ -69,9 +69,9 @@ var Line = React.createClass({ ...@@ -69,9 +69,9 @@ var Line = React.createClass({
var Circle = React.createClass({ var Circle = React.createClass({
getDefaultProps: function () { getDefaultProps: function () {
return { return {
width: 126, width: 132,
percent: 0, percent: 0,
strokeWidth: 4, strokeWidth: 6,
status: 'normal' // exception status: 'normal' // exception
}; };
}, },
...@@ -91,7 +91,7 @@ var Circle = React.createClass({ ...@@ -91,7 +91,7 @@ var Circle = React.createClass({
'height': this.props.width 'height': this.props.width
}; };
var wrapStyle = { var wrapStyle = {
'font-size': this.props.width * 0.2 'font-size': this.props.width * 0.16 + 6
}; };
var textStyle = { var textStyle = {
'color': statusColorMap[this.props.status] 'color': statusColorMap[this.props.status]
......
...@@ -39,7 +39,9 @@ ...@@ -39,7 +39,9 @@
width: 100%; width: 100%;
text-align: center; text-align: center;
line-height: 1; line-height: 1;
top: 38%; font-weight: bold;
top: 50%;
transform: translateY(-50%);
left: 0; left: 0;
.anticon { .anticon {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册