• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# LoadingProgress
2
3用于显示加载进展。
4
5>  **说明:**
6>
7>  该组件从API Version 8开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。
8
9
10## 权限列表
11
1213
14
15## 子组件
16
1718
19
20## 接口
21
22LoadingProgress()
23
24创建加载进展组件。
25
26## 属性
27
28| 名称  | 参数类型                                    | 描述                   |
29| ----- | ------------------------------------------- | ---------------------- |
30| color | [ResourceColor](ts-types.md#resourcecolor8) | 设置加载进度条前景色。 |
31
32
33## 示例
34
35```ts
36// xxx.ets
37@Entry
38@Component
39struct LoadingProgressExample {
40  build() {
41    Column({ space: 5 }) {
42      Text('Orbital LoadingProgress ').fontSize(9).fontColor(0xCCCCCC).width('90%')
43      LoadingProgress()
44        .color(Color.Blue)
45    }.width('100%').margin({ top: 5 })
46  }
47}
48```
49
50![zh-cn_image_000000111864201](figures/zh-cn_image_000000111864201.gif)
51