Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
63fef9bd
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看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
63fef9bd
编写于
10月 25, 2022
作者:
O
openharmony_ci
提交者:
Gitee
10月 25, 2022
浏览文件
操作
浏览文件
下载
差异文件
!6088 【ACE子系统】新增用例
Merge pull request !6088 from splaneguo/master
上级
4f125065
b62030fb
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
94 addition
and
32 deletion
+94
-32
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/common_ts_ets_api.ets
...ntry/src/main/ets/MainAbility/pages/common_ts_ets_api.ets
+17
-0
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/ohosPrompt24.ets
.../main/ets/MainAbility/pages/conponentadd/ohosPrompt24.ets
+4
-6
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/ohosRouterA_y.ets
...main/ets/MainAbility/pages/conponentadd/ohosRouterA_y.ets
+6
-5
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/shapeClipping_y.ets
...in/ets/MainAbility/pages/conponentadd/shapeClipping_y.ets
+3
-18
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/web.ets
...entry/src/main/ets/MainAbility/pages/conponentadd/web.ets
+64
-3
未找到文件。
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/common_ts_ets_api.ets
浏览文件 @
63fef9bd
...
...
@@ -138,6 +138,23 @@ export default struct Common_ts_ets_apiStaticClear {
console.info("PersistProp emit action state err: " + JSON.stringify(err.message))
}
})
Text("common_ts_ets_api-clear")
.width(320)
.height(70)
.fontSize(20)
.opacity(1)
.align(Alignment.TopStart)
.fontColor(0xCCCCCC)
.lineHeight(25)
.border({ width: 1 })
.padding(10)
.textAlign(TextAlign.Center)
.textOverflow({ overflow: TextOverflow.None })
.key("staticClearText")
.onClick(() => {
AppStorage.clear()
})
}.width("100%").height("100%")
}
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/ohosPrompt24.ets
浏览文件 @
63fef9bd
...
...
@@ -40,6 +40,7 @@ struct promptExample {
],
success: function(data) {
console.log('dialog success callback,click button : ' + data.tapIndex);
Utils.emitEvent(this.text,404)
},
fail: function(data) {
console.log('dialog fail callback' + data.errMsg);
...
...
@@ -63,6 +64,7 @@ struct promptExample {
],
success: function(data) {
console.log('dialog success callback,click button : ' + data.index);
Utils.emitEvent(this.text,404)
},
cancel: function() {
console.log('dialog cancel callback');
...
...
@@ -97,7 +99,6 @@ struct promptExample {
console.info('showDialog error: ' + err);
})
})
Button('showActionMenu2')
.key('button6')
.backgroundColor('#ffe20b48')
...
...
@@ -118,6 +119,7 @@ struct promptExample {
]
})
.then(data => {
Utils.emitEvent(this.text,404)
console.info('showActionMenu success, click button: ' + data.index);
})
.catch(err => {
...
...
@@ -185,7 +187,6 @@ struct promptExample {
.fontSize(20)
.margin({top: 20})
.onClick(()=> {
try {
promptAction.showActionMenu({
title: 'showActionMenu Title Info',
...
...
@@ -211,6 +212,7 @@ struct promptExample {
};
})
Button('showDialog2')
.key('button5')
.backgroundColor('#ffe20b56')
...
...
@@ -241,10 +243,6 @@ struct promptExample {
console.error(`showActionMenu args error code is ${error.code}, message is ${error.message}`);
};
})
}
}
}
\ No newline at end of file
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/ohosRouterA_y.ets
浏览文件 @
63fef9bd
...
...
@@ -196,12 +196,13 @@ struct OhosRouterA {
.fontSize(20)
.margin({top: 20})
.onClick(() => {
routery.push({
uri: 'pages/ohosRouterB',
params: {
data: 'B Page'
try {
router.enableBackPageAlert({
message: 'Message Info'
});
} catch(error) {
console.error(`enableBackPageAlert failed, code is ${error.code}, message is ${error.message}`);
}
});
});
Button('disableAlertBeforeBackPage')
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/shapeClipping_y.ets
浏览文件 @
63fef9bd
...
...
@@ -24,29 +24,14 @@ struct ClipAndMaskExample {
@State maskType: CommonShapeMethod= new Rect({ width: 280, height: 280 });
@State clipType: CommonShapeMethod= new Circle({ width: 280, height: 280 });
polygonInterface:PolygonInterface = Polygon
circle : CircleInterface = Circle
line: LineInterface = Line
ellsple :EllipseInterface = Ellipse
pathInterface : PathInterface = Path
shape:ShapeInterface = Shape
rect: RectInterface = Rect
polylineInterface:PolylineInterface = Polyline
ellsple: EllipseAttribute = new Ellipse({
width:'150px',
height: '150px'
})
circle : CircleAttribute = new Circle({
width:'150px',
height: '150px'
})
line : LineAttribute = new Line({
width:'15px',
height: '15px'
})
private stateChangCallBack = (eventData) => {
if (eventData != null) {
console.info("shapeClipping page state change called:" + JSON.stringify(eventData));
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/conponentadd/web.ets
浏览文件 @
63fef9bd
...
...
@@ -23,6 +23,8 @@ let loadedUrl;
@Entry
@Component
struct Index {
controllerhandler :ControllerHandler = new ControllerHandler();
fullscreenexithandler :FullScreenExitHandler = new FullScreenExitHandler();
ConsoleMessage:ConsoleMessage=new ConsoleMessage();
webconTextmenuparam:webConTextMenuParam = new webConTextMenuParam();
controllerhader: ControllerHandler = new ControllerHandler();
...
...
@@ -111,6 +113,9 @@ struct Index {
this.handler.constructor();
this.handler.exitFullScreen();
})
.onFileSelectorShow((event) => {
this.handler = event.handler;
})
.onSslErrorEventReceive((event) => {
AlertDialog.show({
title: 'onSslErrorEventReceive',
...
...
@@ -133,9 +138,9 @@ struct Index {
})
return true;
})
.onFullScreenEnter((event) => {
this.handler = event.handler;
})
.onFullScreenEnter((event) => {
this.handler = event.handler;
})
Row(){
Button("web click").key('webcomponent').onClick(async ()=>{
console.info("key==>"+this.str)
...
...
@@ -618,6 +623,62 @@ struct Index {
break
;
}
case
"
emitfullscreenexithandler
"
:
{
setTimeout(()=
>
{
fullscreenexithandler.constructor
()
Utils.emitEvent
('
succesful
',69)
},3000)
break
;
}
case
"
emitcontrollerhandler
"
:
{
setTimeout(()=
>
{
controllerhandler.constructor
()
Utils.emitEvent
('
succesful
',69)
},3000)
break
;
}
case
"
emitwebconTextmenuparam
"
:
{
setTimeout(()=
>
{
webconTextmenuparam.constructor
()
Utils.emitEvent
('
succesful
',69)
},3000)
break
;
}
case
"
emitportsonMessageEvent
"
:
{
setTimeout(()=
>
{
this.ports
[0].
onMessageEvent
((
result:
string) =
>
{
console.log
("
received
message
from
html5
,
on
message:
"
+
result
);
Utils.emitEvent
('
succesful
',69)
})
},3000)
break
;
}
case
"
emitportsonMessageEvent
"
:
{
setTimeout(()=
>
{
this.ports
[0].
onMessageEvent
((
result:
string) =
>
{
console.log
("
received
message
from
html5
,
on
message:
"
+
result
);
Utils.emitEvent
('
succesful
',69)
})
},3000)
break
;
}
case
"
emitportsonMessageEvent
"
:
{
setTimeout(()=
>
{
this.ports
[0].
onMessageEvent
((
result:
string) =
>
{
console.log
("
received
message
from
html5
,
on
message:
"
+
result
);
Utils.emitEvent
('
succesful
',69)
})
},3000)
break
;
}
}
default:
console.info
("
can
not
match
case
")
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录