Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
b5c680a2
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看板
提交
b5c680a2
编写于
6月 26, 2023
作者:
S
sunjiakun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
progress add updateProgress
Signed-off-by:
N
sunjiakun
<
sunjiakun3@huawei.com
>
上级
9603d9fe
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
623 addition
and
191 deletion
+623
-191
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/Index.ets
...mponent_progress/src/main/ets/TestAbility/pages/Index.ets
+99
-8
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progress.ets
...ace_ets_component_progress/src/main/ets/test/progress.ets
+524
-183
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
b5c680a2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
//@ts-nocheck
//@ts-nocheck
import events_emitter from '@ohos.events.emitter';
import events_emitter from '@ohos.events.emitter';
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry';
import AbilityDelegatorRegistry from '@ohos.application.abilityDelegatorRegistry';
import { Hypium } from '@ohos/hypium';
import { Hypium } from '@ohos/hypium';
...
@@ -25,19 +25,18 @@ struct progressTest {
...
@@ -25,19 +25,18 @@ struct progressTest {
@State progress_default: ProgressMask = new ProgressMask(10.0, 100.0, $r('sys.color.ohos_id_color_mask_regular'));
@State progress_default: ProgressMask = new ProgressMask(10.0, 100.0, $r('sys.color.ohos_id_color_mask_regular'));
aboutToAppear(){
aboutToAppear(){
var abilityDelegator: any
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
var abilityDelegatorArguments: any
var abilityDelegatorArguments: any
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
abilityDelegatorArguments = AbilityDelegatorRegistry.getArguments()
hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO);
hilog.isLoggable(0x0000, 'testTag', hilog.LogLevel.INFO);
hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!');
hilog.info(0x0000, 'testTag', '%{public}s', 'start run testcase!!!');
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
Hypium.hypiumTest(abilityDelegator, abilityDelegatorArguments, testsuite)
}
}
build() {
build() {
Row() {
Row() {
Column() {
Column() {
List({ space: 0, initialIndex: 0 }) {
List({ space: 0, initialIndex: 0 }) {
ListItem() {
ListItem() {
Image($r('app.media.icon'))
Image($r('app.media.icon'))
.key("ArkUX_Stage_Progress_updateColor")
.key("ArkUX_Stage_Progress_updateColor")
...
@@ -197,6 +196,98 @@ struct progressTest {
...
@@ -197,6 +196,98 @@ struct progressTest {
this.progress.updateColor(0x00ff00);
this.progress.updateColor(0x00ff00);
})
})
.fontSize(10)
.fontSize(10)
Button("updateProgress_0100")
.key("ArkUX_Stage_Progress_updateProgress_Button_0100")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0100 onClick');
this.progress.updateProgress(0);
})
.fontSize(10)
Button("updateProgress_0200")
.key("ArkUX_Stage_Progress_updateProgress_Button_0200")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0200 onClick');
this.progress.updateProgress(5);
})
.fontSize(10)
}
}
ListItem() {
Row() {
Button("updateProgress_0300")
.key("ArkUX_Stage_Progress_updateProgress_Button_0300")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0300 onClick');
this.progress.updateProgress("6");
})
.fontSize(10)
Button("updateProgress_0400")
.key("ArkUX_Stage_Progress_updateProgress_Button_0400")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0400 onClick');
this.progress.updateProgress("");
})
.fontSize(10)
Button("updateProgress_0500")
.key("ArkUX_Stage_Progress_updateProgress_Button_0500")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0500 onClick');
this.progress.updateProgress(null);
})
.fontSize(10)
}
}
ListItem() {
Row() {
Button("updateProgress_0600")
.key("ArkUX_Stage_Progress_updateProgress_Button_0600")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0600 onClick');
this.progress.updateProgress(undefined);
})
.fontSize(10)
Button("updateProgress_0700")
.key("ArkUX_Stage_Progress_updateProgress_Button_0700")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0700 onClick');
this.progress.updateProgress(-2);
})
.fontSize(10)
Button("updateProgress_0800")
.key("ArkUX_Stage_Progress_updateProgress_Button_0800")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0800 onClick');
this.progress.updateProgress("10%");
})
.fontSize(10)
}
}
ListItem() {
Row() {
Button("updateProgress_0900")
.key("ArkUX_Stage_Progress_updateProgress_Button_0900")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_0900 onClick');
this.progress.updateProgress(9);
this.progress.updateProgress(1);
})
.fontSize(10)
Button("updateProgress_1000")
.key("ArkUX_Stage_Progress_updateProgress_Button_1000")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_1000 onClick');
this.progress.updateProgress(4);
this.progress.updateProgress(null);
})
.fontSize(10)
Button("updateProgress_1100")
.key("ArkUX_Stage_Progress_updateProgress_Button_1100")
.onClick((event: ClickEvent) => {
console.info('ArkUX_Stage_Progress_updateProgress_Button_1100 onClick');
this.progress.updateProgress(-2);
this.progress.updateProgress(5);
})
.fontSize(10)
}
}
}
}
}
}
...
...
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progress.ets
浏览文件 @
b5c680a2
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录