未验证 提交 ac99f3f9 编写于 作者: O openharmony_ci 提交者: Gitee

!9881 修改日历选择器组件xts代码

Merge pull request !9881 from sunjiakun/calendarpick0826
......@@ -57,7 +57,7 @@ struct CalendarPickerExample {
build() {
Column() {
CalendarPicker({hintRadius:16,selected: this.selectedDate})
CalendarPicker({selected: this.selectedDate})
.textStyle(this.textStyle)
.edgeAlign(this.edgeAlign)
.onChange((value) => {
......@@ -72,7 +72,7 @@ struct CalendarPickerExample {
})
.key('CalendarPickerDefault')
CalendarPicker({hintRadius:10,selected: this.selectedDate})
CalendarPicker({selected: this.selectedDate})
.textStyle(this.textStyle)
.edgeAlign(CalendarAlign.START,{dx: 5,dy: 5})
.onChange((value) => {
......
......@@ -24,29 +24,6 @@ export default function calendarpicker() {
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.name Tests the textStyle property of the CalendarCalendarPicker component
......@@ -450,8 +427,9 @@ export default function calendarpicker() {
let strJson = getInspectorByKey('CalendarPicker');
let obj = JSON.parse(strJson);
console.info("[ArkUI_Stage_CalendarPicker_hintRadius_0100] hintRadius:" + obj.$attrs.hintRadius);
expect(obj.$attrs.hintRadius).assertEqual('undefined');
expect(obj.$attrs.hintRadius).assertEqual(undefined);
done();
});
})
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册