提交 d0fe77ab 编写于 作者: S sunjiakun

modefy hintradius

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 62ba6274
...@@ -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) => {
......
...@@ -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
...@@ -450,8 +427,9 @@ export default function calendarpicker() { ...@@ -450,8 +427,9 @@ export default function calendarpicker() {
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.
先完成此消息的编辑!
想要评论请 注册