提交 873981cf 编写于 作者: S sunjiakun

修正了进度条类型与设置的style属性不匹配的问题

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 8114a988
......@@ -45,7 +45,7 @@ struct ProgressStyle {
.textOverflow({ overflow: TextOverflow.None })
.key("styleText")
Row({ space: 40 }) {
Progress({ value: 20, total: 150, type: ProgressType.Ring })
Progress({ value: 20, total: 150, type: ProgressType.ScaleRing })
.color(Color.Green).value(50).width(100)
.style({ strokeWidth: 20, scaleCount: 30, scaleWidth: 20 })
.key("Progress")
......
......@@ -53,7 +53,7 @@ struct ProgressScaleCount {
Text('Ring Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Row({ space: 40 }) {
Progress({ value: 10, type: ProgressType.Ring }).width(100)
Progress({ value: 20, total: 150, type: ProgressType.Ring })
Progress({ value: 20, total: 150, type: ProgressType.ScaleRing })
.color(Color.Grey).value(50).width(100)
.style({ strokeWidth: 20, scaleCount: 30, scaleWidth: 20 })
}
......
......@@ -91,7 +91,7 @@ struct ProgressPage {
Text('Ring Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Row({ space: 40 }) {
Progress({ value: 10, type: ProgressType.Ring }).width(100)
Progress({ value: this.value, total: 150, type: ProgressType.Ring })
Progress({ value: this.value, total: 150, type: ProgressType.ScaleRing })
.color(this.color).value(50).width(100)
.style({ strokeWidth: 20, scaleCount: 30, scaleWidth: 20 })
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册