Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
20d8c4d0
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看板
未验证
提交
20d8c4d0
编写于
4月 11, 2023
作者:
O
openharmony_ci
提交者:
Gitee
4月 11, 2023
浏览文件
操作
浏览文件
下载
差异文件
!8412 【ACE子系统】新增属性覆盖
Merge pull request !8412 from hekun/OpenHarmony-3.2-Release
上级
e547bf76
0d46d940
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
70 addition
and
0 deletion
+70
-0
arkui/ace_ets_component_apilack/entry/src/main/config.json
arkui/ace_ets_component_apilack/entry/src/main/config.json
+1
-0
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/grid_col_muli.ets
...ck/entry/src/main/ets/MainAbility/pages/grid_col_muli.ets
+42
-0
arkui/ace_ets_component_apilack/entry/src/main/ets/test/List.test.ets
...s_component_apilack/entry/src/main/ets/test/List.test.ets
+1
-0
arkui/ace_ets_component_apilack/entry/src/main/ets/test/grid_col.test.ets
...mponent_apilack/entry/src/main/ets/test/grid_col.test.ets
+26
-0
未找到文件。
arkui/ace_ets_component_apilack/entry/src/main/config.json
浏览文件 @
20d8c4d0
...
...
@@ -106,6 +106,7 @@
"pages/page_transition"
,
"pages/panel"
,
"pages/path"
,
"pages/grid_col_muli"
,
"pages/pluginComponent"
,
"pages/polygon"
,
"pages/polyLine"
,
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/grid_col_muli.ets
0 → 100644
浏览文件 @
20d8c4d0
/*
* Copyright (c) 2023-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@Entry
@Component
struct GridRowExample {
@State bgColors: Color[] = [Color.Red, Color.Orange, Color.Yellow, Color.Green, Color.Pink, Color.Grey, Color.Blue, Color.Brown]
@State currentBp: string = 'unknown'
build() {
Column() {
GridRow({
columns: 5,
gutter: { x: 5, y: 10 },
breakpoints: { value: ["400vp", "600vp", "800vp"],
reference: BreakpointsReference.WindowSize },
direction: GridRowDirection.Row
}) {
ForEach(this.bgColors, (color,index) => {
GridCol({ span: { xs: 1, sm: 2, md: 3, lg: 4 }}) {
Row().width("100%").height("20vp")
}.borderColor(color).borderWidth(2).gridColOffset(3).key(index + "")
})
}.width("100%").height("100%")
.onBreakpointChange((breakpoint) => {
this.currentBp = breakpoint
})
}.width('80%').margin({ left: 10, top: 5, bottom: 5 }).height(200)
.border({ color: '#880606', width: 2 })
}
}
\ No newline at end of file
arkui/ace_ets_component_apilack/entry/src/main/ets/test/List.test.ets
浏览文件 @
20d8c4d0
...
...
@@ -62,6 +62,7 @@ import xcomponentGetXComponentContextJsunit from './xcomponent.test.ets';
import routerJsunit from './router.test.ets';
export default function testsuite() {
grid_colSpanJsunit();
lazyForEachOnDataAddJsunit()
alphabetIndexerOnSelectJsunit()
checkBoxGroupSelectAllJsunit()
...
...
arkui/ace_ets_component_apilack/entry/src/main/ets/test/grid_col.test.ets
浏览文件 @
20d8c4d0
...
...
@@ -61,5 +61,31 @@ export default function grid_colSpanJsunit() {
console.info("[testgrid_colSpan0001] width value :" + obj.$attrs.width);
done();
});
/*
* @tc.number SUB_ACE_BASIC_ETS_API_0002
* @tc.name testgrid_col_refactor_name002
* @tc.desc acegrid_gridColRefactorName0002
*/
it('testgrid_col_refactor_name002', 0, async function (done) {
console.info('testgrid_col_refactor_name002 START');
await Utils.sleep(2000);
let options = {
uri: 'pages/grid_col_muli',
}
try {
await router.push(options);
await Utils.sleep(2000);
let strJson = getInspectorByKey('2');
let obj = JSON.parse(strJson);
expect(obj.$type).assertEqual('GridCol');
console.info("[testgrid_col_refactor_name002] component height strJson:" + JSON.stringify(obj.$attrs));
expect(obj.$attrs.gridColOffset).assertEqual("3");
} catch (err) {
console.error("push grid_col page error: " + err);
}
done();
});
})
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录