Showing
1 changed file
with
12 additions
and
6 deletions
| @@ -11,8 +11,10 @@ export struct CustomTitleUI { | @@ -11,8 +11,10 @@ export struct CustomTitleUI { | ||
| 11 | //标题栏目 | 11 | //标题栏目 |
| 12 | if(this.imgBack){ | 12 | if(this.imgBack){ |
| 13 | Image($r('app.media.back_icon')) | 13 | Image($r('app.media.back_icon')) |
| 14 | - .width(`${this.calcHeight(46)}lpx`) | ||
| 15 | - .height(`${this.calcHeight(46)}lpx`) | 14 | + // .width(`${this.calcHeight(46)}lpx`) |
| 15 | + .width(24) | ||
| 16 | + .height(24) | ||
| 17 | + // .height(`${this.calcHeight(46)}lpx`) | ||
| 16 | .objectFit(ImageFit.Auto) | 18 | .objectFit(ImageFit.Auto) |
| 17 | .interpolation(ImageInterpolation.High) | 19 | .interpolation(ImageInterpolation.High) |
| 18 | .id("back_icon") | 20 | .id("back_icon") |
| @@ -20,7 +22,8 @@ export struct CustomTitleUI { | @@ -20,7 +22,8 @@ export struct CustomTitleUI { | ||
| 20 | center: {anchor: "__container__", align: VerticalAlign.Center}, | 22 | center: {anchor: "__container__", align: VerticalAlign.Center}, |
| 21 | left: {anchor: "__container__", align: HorizontalAlign.Start} | 23 | left: {anchor: "__container__", align: HorizontalAlign.Start} |
| 22 | }) | 24 | }) |
| 23 | - .margin({left:`${this.calcHeight(31)}lpx`}) | 25 | + .margin({left:16}) |
| 26 | + // .margin({left:`${this.calcHeight(31)}lpx`}) | ||
| 24 | .onClick(()=>{ | 27 | .onClick(()=>{ |
| 25 | router.back() | 28 | router.back() |
| 26 | }) | 29 | }) |
| @@ -29,17 +32,20 @@ export struct CustomTitleUI { | @@ -29,17 +32,20 @@ export struct CustomTitleUI { | ||
| 29 | Text(this.titleName) | 32 | Text(this.titleName) |
| 30 | .maxLines(1) | 33 | .maxLines(1) |
| 31 | .id("title") | 34 | .id("title") |
| 32 | - .fontSize(`${this.calcHeight(35)}lpx`) | 35 | + .fontSize(18) |
| 36 | + // .fontSize(`${this.calcHeight(35)}lpx`) | ||
| 33 | .fontWeight(400) | 37 | .fontWeight(400) |
| 34 | .fontColor($r('app.color.color_222222')) | 38 | .fontColor($r('app.color.color_222222')) |
| 35 | - .lineHeight(`${this.calcHeight(50)}lpx`) | 39 | + .lineHeight(26) |
| 40 | + // .lineHeight(`${this.calcHeight(50)}lpx`) | ||
| 36 | .alignRules({ | 41 | .alignRules({ |
| 37 | center: {anchor: "__container__", align: VerticalAlign.Center}, | 42 | center: {anchor: "__container__", align: VerticalAlign.Center}, |
| 38 | middle: {anchor: "__container__", align: HorizontalAlign.Center} | 43 | middle: {anchor: "__container__", align: HorizontalAlign.Center} |
| 39 | }) | 44 | }) |
| 40 | 45 | ||
| 41 | } | 46 | } |
| 42 | - .height(`${this.calcHeight(84)}lpx`) | 47 | + // .height(`${this.calcHeight(84)}lpx`) |
| 48 | + .height(44) | ||
| 43 | .width('100%') | 49 | .width('100%') |
| 44 | .backgroundColor($r('app.color.white')) | 50 | .backgroundColor($r('app.color.white')) |
| 45 | } | 51 | } |
-
Please register or login to post a comment