提交 07fc8b65 编写于 作者: J jiangkaixuan

web组件失败用例修改

Signed-off-by: Njiangkaixuan <jiangkaixuan2@huawei.com>
上级 cdac67bb
......@@ -207,6 +207,28 @@ struct Index {
this.geoShow=false
}
})
.onBlur(()=>{
console.info("onBlur==>")
this.controller.requestFocus()
})
TextInput({placeholder:"inputs your words"})
.key('textInput')
.type(InputType.Normal)
.placeholderColor(Color.Blue)
.placeholderFont({size:20,weight:FontWeight.Normal,family:"sans-serif",style:FontStyle.Normal})
.enterKeyType(EnterKeyType.Next)
.caretColor(Color.Green)
.height(60)
.fontSize(30)
.fontWeight(FontWeight.Bold)
.fontFamily("cursive")
.fontStyle(FontStyle.Italic)
.fontColor(Color.Red)
.maxLength(20)
.border({width:1,color:0x317AF7,radius:10,style:BorderStyle.Solid})
.onClick(()=>{
console.info("TextInput click")
})
Row(){
Button("web click").key('webcomponent').onClick(async ()=>{
console.info("key==>"+this.str)
......@@ -301,7 +323,8 @@ struct Index {
}
case "emitGetRequestFocus":{
this.controller.loadUrl({url:"file:///data/storage/el1/bundle/phone/resources/rawfile/second.html"})
this.controller.requestFocus()
await Utils.sleep(2000)
sendEventByKey('textInput',10,'')
break;
}
case "emitAccessBackward":{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册