search box padding

Signed-off-by: yanjuntao <yanjuntao@huawei.com>
This commit is contained in:
yanjuntao 2022-05-11 10:49:06 +08:00
parent 3cfd1ef2ea
commit f210fd37c8

View File

@ -678,6 +678,7 @@ export struct SearchComp {
.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)
.padding({left:6})
.onEditChange((isEditing: boolean) => {
this.search = isEditing
})