Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
361998ba
D
Docs
项目概览
OpenHarmony
/
Docs
接近 2 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
361998ba
编写于
3月 18, 2022
作者:
O
openharmony_ci
提交者:
Gitee
3月 18, 2022
浏览文件
操作
浏览文件
下载
差异文件
!1730 progress组件变更ProgressType属性开发者文档
Merge pull request !1730 from Yao.inhome/wupei_progress_0301
上级
758b82a1
f85a6a8d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
...on-dev/reference/arkui-ts/ts-basic-components-progress.md
+13
-13
未找到文件。
zh-cn/application-dev/reference/arkui-ts/ts-basic-components-progress.md
浏览文件 @
361998ba
...
...
@@ -19,7 +19,7 @@
## 接口说明
Progress(value: {value: number, total?: number,
style?: ProgressStyl
e})
Progress(value: {value: number, total?: number,
type?: ProgressTyp
e})
创建进度组件,用于显示内容加载或操作处理进度。
...
...
@@ -28,10 +28,10 @@ Progress(value: {value: number, total?: number, style?: ProgressStyle})
| -------- | -------- | -------- | -------- | -------- |
| value | number | 是 | - | 指定当前进度值。 |
| total | number | 否 | 100 | 指定进度总长。 |
|
style | ProgressStyle | 否 | ProgressStyl
e.Linear | 指定进度条样式。 |
|
type | ProgressType | 否 | ProgressTyp
e.Linear | 指定进度条样式。 |
-
Progress
Styl
e枚举说明
-
Progress
Typ
e枚举说明
| 名称 | 描述 |
| -------- | -------- |
| Linear | 线性样式。 |
...
...
@@ -59,35 +59,35 @@ struct ProgressExample {
build() {
Column({ space: 15 }) {
Text('Linear Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Progress({ value: 10,
style: ProgressStyl
e.Linear }).width(200)
Progress({ value: 20, total: 150,
style: ProgressStyl
e.Linear }).color(Color.Grey).value(50).width(200)
Progress({ value: 10,
type: ProgressTyp
e.Linear }).width(200)
Progress({ value: 20, total: 150,
type: ProgressTyp
e.Linear }).color(Color.Grey).value(50).width(200)
Text('Eclipse Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Row({ space: 40 }) {
Progress({ value: 10,
style: ProgressStyl
e.Eclipse }).width(100)
Progress({ value: 20, total: 150,
style: ProgressStyl
e.Eclipse }).color(Color.Grey).value(50).width(100)
Progress({ value: 10,
type: ProgressTyp
e.Eclipse }).width(100)
Progress({ value: 20, total: 150,
type: ProgressTyp
e.Eclipse }).color(Color.Grey).value(50).width(100)
}
Text('ScaleRing Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Row({ space: 40 }) {
Progress({ value: 10,
style: ProgressStyl
e.ScaleRing }).width(100)
Progress({ value: 20, total: 150,
style: ProgressStyl
e.ScaleRing })
Progress({ value: 10,
type: ProgressTyp
e.ScaleRing }).width(100)
Progress({ value: 20, total: 150,
type: ProgressTyp
e.ScaleRing })
.color(Color.Grey).value(50).width(100)
.style({ strokeWidth: 15, scaleCount: 15, scaleWidth: 5 })
}
Text('Ring Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Row({ space: 40 }) {
Progress({ value: 10,
style: ProgressStyl
e.Ring }).width(100)
Progress({ value: 20, total: 150,
style: ProgressStyl
e.Ring })
Progress({ value: 10,
type: ProgressTyp
e.Ring }).width(100)
Progress({ value: 20, total: 150,
type: ProgressTyp
e.Ring })
.color(Color.Grey).value(50).width(100)
.style({ strokeWidth: 20, scaleCount: 30, scaleWidth: 20 })
}
Text('Capsule Progress').fontSize(9).fontColor(0xCCCCCC).width('90%')
Row({ space: 40 }) {
Progress({ value: 10,
style: ProgressStyl
e.Capsule }).width(100)
Progress({ value: 20, total: 150,
style: ProgressStyl
e.Capsule }).color(Color.Grey).value(50).width(100)
Progress({ value: 10,
type: ProgressTyp
e.Capsule }).width(100)
Progress({ value: 20, total: 150,
type: ProgressTyp
e.Capsule }).color(Color.Grey).value(50).width(100)
}
}.width('100%').margin({ top: 30 })
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录