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

modify

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