Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -312,7 +312,7 @@ export struct SearchComponent { | @@ -312,7 +312,7 @@ export struct SearchComponent { | ||
| 312 | .layoutWeight(1) | 312 | .layoutWeight(1) |
| 313 | .height(`${this.calcHeight(69)}lpx`) | 313 | .height(`${this.calcHeight(69)}lpx`) |
| 314 | .backgroundColor($r('app.color.color_transparent')) | 314 | .backgroundColor($r('app.color.color_transparent')) |
| 315 | - .textFont({ size: `${this.calcHeight(27)}lpx`, weight: 400 })// .defaultFocus(true) | 315 | + .textFont({ size: `${this.calcHeight(30)}lpx`, weight: 400 })// .defaultFocus(true) |
| 316 | .id("searchId") | 316 | .id("searchId") |
| 317 | .searchIcon({ | 317 | .searchIcon({ |
| 318 | size: 0 | 318 | size: 0 |
| @@ -320,7 +320,7 @@ export struct SearchComponent { | @@ -320,7 +320,7 @@ export struct SearchComponent { | ||
| 320 | .cancelButton({ | 320 | .cancelButton({ |
| 321 | style: CancelButtonStyle.INVISIBLE | 321 | style: CancelButtonStyle.INVISIBLE |
| 322 | }) | 322 | }) |
| 323 | - .caretStyle({ color: Color.Pink }) | 323 | + .caretStyle({ color: $r('app.color.main_red') }) |
| 324 | ///监听搜索框变化 | 324 | ///监听搜索框变化 |
| 325 | .onTextSelectionChange((selectionStart: number) =>{ | 325 | .onTextSelectionChange((selectionStart: number) =>{ |
| 326 | this.searchTextNum = selectionStart; | 326 | this.searchTextNum = selectionStart; |
-
Please register or login to post a comment