From 5f61005b75a6b6f7f1a6a27462a82b321d0a4f4c Mon Sep 17 00:00:00 2001 From: yaoyuchi Date: Tue, 22 Feb 2022 15:31:21 +0800 Subject: [PATCH] modify style attribute Signed-off-by: yaoyuchi --- .../reference/arkui-ts/ts-basic-components-progress.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md index 626f8bae09..0c304e2635 100644 --- a/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md +++ b/zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md @@ -47,7 +47,7 @@ Progress(value: {value: number, total?: number, style?: ProgressStyle}) | -------- | -------- | -------- | -------- | | value | number | - | 设置当前进度值。 | | color | Color | - | 设置进度条前景色。 | -| circularStyle8+ | {
strokeWidth?: Length,
scaleCount?: number,
scaleWidth?: Length
} | - | 定义style为ProgressStyle.ScaleRing时的样式,包括:宽度,总刻度数,刻度粗细。
strokeWidth: 设置环形进度条宽度。
scaleCount: 设置环形进度条总刻度数。
scaleWidth: 设置环形进度条刻度粗细。
刻度粗细大于进度条宽度时,刻度粗细为系统默认粗细。 | +| style8+ | {
strokeWidth?: Length,
scaleCount?: number,
scaleWidth?: Length
} | - | 定义组件的样式。
strokeWidth: 设置进度条宽度。
scaleCount: 设置环形进度条总刻度数。
scaleWidth: 设置环形进度条刻度粗细。
刻度粗细大于进度条宽度时,刻度粗细为系统默认粗细。 | ## 示例 @@ -73,7 +73,7 @@ struct ProgressExample { Progress({ value: 10, style: ProgressStyle.ScaleRing }).width(100) Progress({ value: 20, total: 150, style: ProgressStyle.ScaleRing }) .color(Color.Grey).value(50).width(100) - .circularStyle({ strokeWidth: 15, scaleCount: 15, scaleWidth: 5 }) + .style({ strokeWidth: 15, scaleCount: 15, scaleWidth: 5 }) } Text('Ring Progress').fontSize(9).fontColor(0xCCCCCC).width('90%') @@ -81,7 +81,7 @@ struct ProgressExample { Progress({ value: 10, style: ProgressStyle.Ring }).width(100) Progress({ value: 20, total: 150, style: ProgressStyle.Ring }) .color(Color.Grey).value(50).width(100) - .circularStyle({ strokeWidth: 20, scaleCount: 30, scaleWidth: 20 }) + .style({ strokeWidth: 20, scaleCount: 30, scaleWidth: 20 }) } Text('Capsule Progress').fontSize(9).fontColor(0xCCCCCC).width('90%') -- GitLab