提交 03247f5f 编写于 作者: C chenzhuo

modify

Signed-off-by: Nchenzhuo <chenzhuo59@huawei.com>
上级 e5cd7d76
......@@ -48,6 +48,7 @@ struct LoadingProgressExample {
.width('90%')
.key('LP')
LoadingProgress()
.height(50)
.color(Color.Black)
}.width('100%').margin({ top: 6 })
}
......
......@@ -20,9 +20,14 @@ import events_emitter from '@ohos.events.emitter'
struct SearchExample {
@State changevalue: string= ''
@State submitvalue: string= ''
@State controller: SearchController= new SearchController()
@State textFont:Font=10
@State searchButton:number=10
@State textFont:Font = {
size: 10,
weight: 10,
family: 'serif',
style: FontStyle.Normal
}
@State searchButton:string = "10"
controller: SearchController= new SearchController()
private stateChangCallBack = (eventData) => {
console.info("search page state change called:" + JSON.stringify(eventData));
......@@ -58,7 +63,7 @@ struct SearchExample {
.placeholderFont({
size: 10,
weight: 10,
family: 'serif',
family: 'serif',
style: FontStyle.Normal
})
.onSubmit((value: string) => {
......
......@@ -33,13 +33,13 @@ struct ClickExample {
if (event.type === TouchType.Move) {
this.eventType = 'Move'
}
if (event.source === Unknown) {
if (event.source === SourceType.Unknown) {
this.SourceType = 'Unknown'
}
if (event.source === Mouse) {
if (event.source === SourceType.Mouse) {
this.SourceType = 'Mouse'
}
if (event.type === TouchScreen) {
if (event.type === SourceType.TouchScreen) {
this.SourceType = 'TouchScreen'
}
console.info(this.text = 'source:' + event.source);
......
......@@ -72,7 +72,7 @@ export default function loadingProgressJsunit() {
let strJson = getInspectorByKey('LP');
let obj = JSON.parse(strJson);
console.info("testLoadingProgress_300 component obj is: " + JSON.stringify(obj));
expect(obj.$attrs.height).assertEqual("50.00px");
expect(obj.$attrs.height).assertEqual("50.00vp");
console.info('testLoadingProgress_300 END');
done();
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册