Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
ac99f3f9
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,发现更多精彩内容 >>
未验证
提交
ac99f3f9
编写于
8月 26, 2023
作者:
O
openharmony_ci
提交者:
Gitee
8月 26, 2023
浏览文件
操作
浏览文件
下载
差异文件
!9881 修改日历选择器组件xts代码
Merge pull request !9881 from sunjiakun/calendarpick0826
上级
3e4db389
d0fe77ab
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
7 addition
and
29 deletion
+7
-29
arkui/ace_ets_components_ux/ace_ets_component_calendarpicker/src/main/ets/TestAbility/pages/Index.ets
...t_calendarpicker/src/main/ets/TestAbility/pages/Index.ets
+3
-3
arkui/ace_ets_components_ux/ace_ets_component_calendarpicker/src/main/ets/test/calendarpicker.ets
...onent_calendarpicker/src/main/ets/test/calendarpicker.ets
+4
-26
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_calendarpicker/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
ac99f3f9
...
@@ -57,7 +57,7 @@ struct CalendarPickerExample {
...
@@ -57,7 +57,7 @@ struct CalendarPickerExample {
build() {
build() {
Column() {
Column() {
CalendarPicker({
hintRadius:16,
selected: this.selectedDate})
CalendarPicker({selected: this.selectedDate})
.textStyle(this.textStyle)
.textStyle(this.textStyle)
.edgeAlign(this.edgeAlign)
.edgeAlign(this.edgeAlign)
.onChange((value) => {
.onChange((value) => {
...
@@ -72,7 +72,7 @@ struct CalendarPickerExample {
...
@@ -72,7 +72,7 @@ struct CalendarPickerExample {
})
})
.key('CalendarPickerDefault')
.key('CalendarPickerDefault')
CalendarPicker({
hintRadius:10,
selected: this.selectedDate})
CalendarPicker({selected: this.selectedDate})
.textStyle(this.textStyle)
.textStyle(this.textStyle)
.edgeAlign(CalendarAlign.START,{dx: 5,dy: 5})
.edgeAlign(CalendarAlign.START,{dx: 5,dy: 5})
.onChange((value) => {
.onChange((value) => {
...
@@ -98,4 +98,4 @@ struct CalendarPickerExample {
...
@@ -98,4 +98,4 @@ struct CalendarPickerExample {
}
}
}
}
}
}
\ No newline at end of file
arkui/ace_ets_components_ux/ace_ets_component_calendarpicker/src/main/ets/test/calendarpicker.ets
浏览文件 @
ac99f3f9
...
@@ -24,29 +24,6 @@ export default function calendarpicker() {
...
@@ -24,29 +24,6 @@ export default function calendarpicker() {
done();
done();
})
})
afterEach(async function (done) {
console.info("CalendarPicker afterEach start");
try {
var eventData = {
data: {
"textStyle": {color:Color.Black,font:{size:8,weight:FontWeight.Lighter}},
"edgeAlign": CalendarAlign.END,
"hintRadius": 16
}
}
var innerEvent = {
eventId: 185,
priority: events_emitter.EventPriority.LOW
}
console.info("[CalendarPicker_afterEach] start to publish emit");
events_emitter.emit(innerEvent, eventData);
} catch (err) {
console.log("[CalendarPicker_afterEach] change component data error: " + err.message);
}
console.info("[ArkUI_Stage_CalendarPicker_textStyle_0100] data" + JSON.stringify(data));
done();
})
/*
/*
* @tc.number ArkUI_Stage_CalendarPicker_textStyle_0100
* @tc.number ArkUI_Stage_CalendarPicker_textStyle_0100
* @tc.name Tests the textStyle property of the CalendarCalendarPicker component
* @tc.name Tests the textStyle property of the CalendarCalendarPicker component
...
@@ -440,18 +417,19 @@ export default function calendarpicker() {
...
@@ -440,18 +417,19 @@ export default function calendarpicker() {
expect(obj.$attrs.edgeAlign.offset.dy).assertEqual('-10.00vp');
expect(obj.$attrs.edgeAlign.offset.dy).assertEqual('-10.00vp');
done();
done();
});
});
/*
/*
* @tc.number ArkUI_Stage_CalendarPicker_hintRadius_0100
* @tc.number ArkUI_Stage_CalendarPicker_hintRadius_0100
* @tc.name Tests the hintRadius property of the CalendarPicker component
* @tc.name Tests the hintRadius property of the CalendarPicker component
* @tc.desc get the property of the hintRadius
* @tc.desc get the property of the hintRadius
*/
*/
it('ArkUI_Stage_CalendarPicker_hintRadius_0100', 0, async function (done) {
it('ArkUI_Stage_CalendarPicker_hintRadius_0100', 0, async function (done) {
let strJson = getInspectorByKey('CalendarPicker');
let strJson = getInspectorByKey('CalendarPicker');
let obj = JSON.parse(strJson);
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_CalendarPicker_hintRadius_0100] hintRadius:" + obj.$attrs.hintRadius);
console.info("[ArkUI_Stage_CalendarPicker_hintRadius_0100] hintRadius:" + obj.$attrs.hintRadius);
expect(obj.$attrs.hintRadius).assertEqual(
'undefined'
);
expect(obj.$attrs.hintRadius).assertEqual(
undefined
);
done();
done();
});
});
})
})
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录