Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
f64e3e2b
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f64e3e2b
编写于
8月 07, 2023
作者:
S
sunjiakun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add smooth effect cases for progress
Signed-off-by:
N
sunjiakun
<
sunjiakun3@huawei.com
>
上级
501222b9
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
862 addition
and
3 deletion
+862
-3
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/IndexSec.ets
...nent_progress/src/main/ets/TestAbility/pages/IndexSec.ets
+25
-3
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progressSec.ets
..._ets_component_progress/src/main/ets/test/progressSec.ets
+837
-0
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/IndexSec.ets
浏览文件 @
f64e3e2b
...
@@ -45,6 +45,7 @@ struct progressSecTest {
...
@@ -45,6 +45,7 @@ struct progressSecTest {
@State progress_capsule_content_string: string = '下载'
@State progress_capsule_content_string: string = '下载'
@State progress_capsule_enableScanEffect_boolean: boolean = false
@State progress_capsule_enableScanEffect_boolean: boolean = false
@State progress_capsule_showDefaultPercentage_boolean: boolean = false
@State progress_capsule_showDefaultPercentage_boolean: boolean = false
@State progress_capsule_enableSmoothEffect_boolean: boolean = false
@State progress_ring_strokeWidth_number: number = 4
@State progress_ring_strokeWidth_number: number = 4
@State progress_ring_strokeWidth_string: string = '4vp'
@State progress_ring_strokeWidth_string: string = '4vp'
...
@@ -59,8 +60,14 @@ struct progressSecTest {
...
@@ -59,8 +60,14 @@ struct progressSecTest {
@State progress_ring_color_linear_null: LinearGradient = null
@State progress_ring_color_linear_null: LinearGradient = null
@State progress_ring_color_linear_undefined: LinearGradient = undefined
@State progress_ring_color_linear_undefined: LinearGradient = undefined
@State progress_ring_enableScanEffect_boolean: boolean = false
@State progress_ring_enableScanEffect_boolean: boolean = false
@State progress_ring_enableSmoothEffect_boolean: boolean = false
@State progress_linear_enableScanEffect_boolean: boolean = false
@State progress_linear_enableScanEffect_boolean: boolean = false
@State progress_linear_enableSmoothEffect_boolean: boolean = false
@State progress_scaleRing_enableSmoothEffect_boolean: boolean = false
@State progress_eclipse_enableSmoothEffect_boolean: boolean = false
private stateChangCallBack = (eventData) => {
private stateChangCallBack = (eventData) => {
console.info("progress page state change called:" + JSON.stringify(eventData));
console.info("progress page state change called:" + JSON.stringify(eventData));
...
@@ -88,6 +95,7 @@ struct progressSecTest {
...
@@ -88,6 +95,7 @@ struct progressSecTest {
this.progress_capsule_content_string = eventData.data.progress_capsule_content_string;
this.progress_capsule_content_string = eventData.data.progress_capsule_content_string;
this.progress_capsule_enableScanEffect_boolean = eventData.data.progress_capsule_enableScanEffect_boolean;
this.progress_capsule_enableScanEffect_boolean = eventData.data.progress_capsule_enableScanEffect_boolean;
this.progress_capsule_showDefaultPercentage_boolean = eventData.data.progress_capsule_showDefaultPercentage_boolean;
this.progress_capsule_showDefaultPercentage_boolean = eventData.data.progress_capsule_showDefaultPercentage_boolean;
this.progress_capsule_enableSmoothEffect_boolean = eventData.data.progress_capsule_enableSmoothEffect_boolean;
this.progress_ring_strokeWidth_number = eventData.data.progress_ring_strokeWidth_number;
this.progress_ring_strokeWidth_number = eventData.data.progress_ring_strokeWidth_number;
this.progress_ring_strokeWidth_string = eventData.data.progress_ring_strokeWidth_string;
this.progress_ring_strokeWidth_string = eventData.data.progress_ring_strokeWidth_string;
...
@@ -102,8 +110,13 @@ struct progressSecTest {
...
@@ -102,8 +110,13 @@ struct progressSecTest {
this.progress_ring_color_linear_null = eventData.data.progress_ring_color_linear_null;
this.progress_ring_color_linear_null = eventData.data.progress_ring_color_linear_null;
this.progress_ring_color_linear_undefined = eventData.data.progress_ring_color_linear_undefined;
this.progress_ring_color_linear_undefined = eventData.data.progress_ring_color_linear_undefined;
this.progress_ring_enableScanEffect_boolean = eventData.data.progress_ring_enableScanEffect_boolean;
this.progress_ring_enableScanEffect_boolean = eventData.data.progress_ring_enableScanEffect_boolean;
this.progress_ring_enableSmoothEffect_boolean = eventData.data.progress_ring_enableSmoothEffect_boolean;
this.progress_linear_enableScanEffect_boolean = eventData.data.progress_linear_enableScanEffect_boolean;
this.progress_linear_enableScanEffect_boolean = eventData.data.progress_linear_enableScanEffect_boolean;
this.progress_linear_enableSmoothEffect_boolean = eventData.data.progress_linear_enableSmoothEffect_boolean;
this.progress_scaleRing_enableSmoothEffect_boolean = eventData.data.progress_scaleRing_enableSmoothEffect_boolean;
this.progress_eclipse_enableSmoothEffect_boolean = eventData.data.progress_eclipse_enableSmoothEffect_boolean;
}
}
messageManager:MessageManager = new MessageManager()
messageManager:MessageManager = new MessageManager()
onPageShow() {
onPageShow() {
...
@@ -196,7 +209,8 @@ struct progressSecTest {
...
@@ -196,7 +209,8 @@ struct progressSecTest {
fontColor: this.progress_capsule_fontColor_number,
fontColor: this.progress_capsule_fontColor_number,
content: this.progress_capsule_content_string,
content: this.progress_capsule_content_string,
enableScanEffect: this.progress_capsule_enableScanEffect_boolean,
enableScanEffect: this.progress_capsule_enableScanEffect_boolean,
showDefaultPercentage: this.progress_capsule_showDefaultPercentage_boolean
showDefaultPercentage: this.progress_capsule_showDefaultPercentage_boolean,
enableSmoothEffect: this.progress_capsule_enableSmoothEffect_boolean
})
})
Progress({ value: 60, total: 100, type: ProgressType.Capsule })
Progress({ value: 60, total: 100, type: ProgressType.Capsule })
...
@@ -285,7 +299,8 @@ struct progressSecTest {
...
@@ -285,7 +299,8 @@ struct progressSecTest {
strokeWidth: this.progress_ring_strokeWidth_number,
strokeWidth: this.progress_ring_strokeWidth_number,
shadow: this.progress_ring_shadow_bool,
shadow: this.progress_ring_shadow_bool,
status: this.progress_ring_status_progressStatus,
status: this.progress_ring_status_progressStatus,
enableScanEffect: this.progress_ring_enableScanEffect_boolean
enableScanEffect: this.progress_ring_enableScanEffect_boolean,
enableSmoothEffect: this.progress_ring_enableSmoothEffect_boolean
})
})
.color(this.progress_ring_color_purity)
.color(this.progress_ring_color_purity)
...
@@ -381,7 +396,8 @@ struct progressSecTest {
...
@@ -381,7 +396,8 @@ struct progressSecTest {
.key('progress_linear_color_number')
.key('progress_linear_color_number')
.color(this.progress_ring_color_purity)
.color(this.progress_ring_color_purity)
.style({
.style({
enableScanEffect: this.progress_linear_enableScanEffect_boolean
enableScanEffect: this.progress_linear_enableScanEffect_boolean,
enableSmoothEffect: this.progress_linear_enableSmoothEffect_boolean
})
})
Progress({ value: 60, total: 100, type: ProgressType.Linear })
Progress({ value: 60, total: 100, type: ProgressType.Linear })
...
@@ -414,6 +430,9 @@ struct progressSecTest {
...
@@ -414,6 +430,9 @@ struct progressSecTest {
Progress({ value: 60, total: 100, type: ProgressType.Eclipse })
Progress({ value: 60, total: 100, type: ProgressType.Eclipse })
.key('progress_eclipse_color_number')
.key('progress_eclipse_color_number')
.color(this.progress_ring_color_purity)
.color(this.progress_ring_color_purity)
.style({
enableSmoothEffect: this.progress_eclipse_enableSmoothEffect_boolean
})
Progress({ value: 60, total: 100, type: ProgressType.Eclipse })
Progress({ value: 60, total: 100, type: ProgressType.Eclipse })
.key('progress_eclipse_color_linear_number')
.key('progress_eclipse_color_linear_number')
...
@@ -445,6 +464,9 @@ struct progressSecTest {
...
@@ -445,6 +464,9 @@ struct progressSecTest {
Progress({ value: 60, total: 100, type: ProgressType.ScaleRing })
Progress({ value: 60, total: 100, type: ProgressType.ScaleRing })
.key('progress_scaleRing_color_number')
.key('progress_scaleRing_color_number')
.color(this.progress_ring_color_purity)
.color(this.progress_ring_color_purity)
.style({
enableSmoothEffect: this.progress_scaleRing_enableSmoothEffect_boolean
})
Progress({ value: 60, total: 100, type: ProgressType.ScaleRing })
Progress({ value: 60, total: 100, type: ProgressType.ScaleRing })
.key('progress_scaleRing_color_linear_number')
.key('progress_scaleRing_color_linear_number')
...
...
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progressSec.ets
浏览文件 @
f64e3e2b
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录