修改编译错误

Signed-off-by: nobbo <gaoshang22@huawei.com>
This commit is contained in:
nobbo
2022-10-09 15:17:34 +08:00
parent a29ef308d3
commit 6aed38ca26
2 changed files with 2 additions and 2 deletions
@@ -194,7 +194,7 @@ export struct ToolBarComp {
alignment: DialogAlignment.Bottom,
autoCancel: true,
customStyle: true,
cancel: this.existApp()
cancel: this.existApp
})
existApp() {
@@ -685,7 +685,7 @@ export struct SearchComp {
Flex({ justifyContent: FlexAlign.Start }) {
Image($r('app.media.search')).width(20).height(20)
TextInput({ placeholder: $r('app.string.searchNote') }, text: this.text)
TextInput({ placeholder: $r('app.string.searchNote'), text: this.text })
.backgroundColor(this.longpress ? $r("app.color.search_longpress_bgcolor_f7f8f9") : $r("app.color.color_ffffff"))
.caretColor($r("app.color.search_note_caret_color"))
.enabled(this.longpress ? false : true)