diff --git a/components/progress/README.md b/components/progress/README.md index dcf3cb2d8..e812c8e7c 100644 --- a/components/progress/README.md +++ b/components/progress/README.md @@ -46,7 +46,6 @@ static defaultProps = { status: undefined, strokeColor: undefined, trailColor: undefined, - textColor:undefined, strokeWidth: undefined, width: undefined, @@ -54,14 +53,14 @@ static defaultProps = { } - const { + const trailColor = props.trailColor ? props.trailColor : "#f5f5f5" + const textColor = props.textColor ? props.textColor : "black" + const strokeWidth = props.strokeWidth ? props.strokeWidth : (props.type === "line" ? 8 : 6) + const width = props.width ? props.width : (props.type === "line" ? 160 : 120) + const { type, status, strokeColor, - trailColor=props.trailColor?props.trailColor:"#f5f5f5", - textColor=props.textColor?props.textColor:"black", - strokeWidth=props.strokeWidth?props.strokeWidth:(props.type==="line"?8:6), - width=props.width?props.width:(props.type==="line"?160:120), showInfo } = props