请参考以下代码:@Entry @Component struct ProgressExample { build() { Column({ space: 15 }) { Text('Linear Progress').fontSize(9).fontColor(0xCCCCCC).width('90%') Progress({ value: 20, total: 100, type: ProgressType.Linear }) .width(200) .backgroundColor('#B3E54C') .style({ strokeRadius: 0, strokeWidth: 100, }) .color('#917AF9') .borderColor('#00000000') .borderRadius({ topLeft: 20, topRight: 0, bottomLeft: 20, bottomRight: 0 }) .clip(true) } .width('100%') .margin({ top: 30 }) } }
请参考以下代码: