Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-08-09 11:23:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0630408d70d441ecce27f33699cb5432e658824
c0630408
1 parent
b9cd8787
fix: 【华为验收】折叠屏,意见反馈,提交按钮与底部导航条重叠
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomTitleUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomTitleUI.ets
View file @
c063040
...
...
@@ -11,8 +11,10 @@ export struct CustomTitleUI {
//标题栏目
if(this.imgBack){
Image($r('app.media.back_icon'))
.width(`${this.calcHeight(46)}lpx`)
.height(`${this.calcHeight(46)}lpx`)
// .width(`${this.calcHeight(46)}lpx`)
.width(24)
.height(24)
// .height(`${this.calcHeight(46)}lpx`)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
.id("back_icon")
...
...
@@ -20,7 +22,8 @@ export struct CustomTitleUI {
center: {anchor: "__container__", align: VerticalAlign.Center},
left: {anchor: "__container__", align: HorizontalAlign.Start}
})
.margin({left:`${this.calcHeight(31)}lpx`})
.margin({left:16})
// .margin({left:`${this.calcHeight(31)}lpx`})
.onClick(()=>{
router.back()
})
...
...
@@ -29,17 +32,20 @@ export struct CustomTitleUI {
Text(this.titleName)
.maxLines(1)
.id("title")
.fontSize(`${this.calcHeight(35)}lpx`)
.fontSize(18)
// .fontSize(`${this.calcHeight(35)}lpx`)
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.lineHeight(`${this.calcHeight(50)}lpx`)
.lineHeight(26)
// .lineHeight(`${this.calcHeight(50)}lpx`)
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
middle: {anchor: "__container__", align: HorizontalAlign.Center}
})
}
.height(`${this.calcHeight(84)}lpx`)
// .height(`${this.calcHeight(84)}lpx`)
.height(44)
.width('100%')
.backgroundColor($r('app.color.white'))
}
...
...
Please
register
or
login
to post a comment