修复部分组件尺寸更加合理

This commit is contained in:
JackLee 2026-04-10 21:11:31 +08:00
parent a32569b32b
commit 8c11896d28
3 changed files with 7 additions and 7 deletions

View File

@ -180,14 +180,14 @@ export struct SubColumnMenu {
Button(){
Row(){
Image($r('app.media.'+(this.icon!=undefined ? this.icon:(this.menus[this.curtIndex]as TitleButton).eIcon)))
.width(mwInfo.width*0.015)
.width(mwInfo.width*0.013)
.scale({ centerX: '50%', centerY: '50%' })
if(this.name!=undefined){
Text(this.name)
.fontSize(16)
}
}.width('auto')
}.constraintSize({ minWidth: mwInfo.width*0.015 })
}.constraintSize({ minWidth: mwInfo.width*0.013 })
.backgroundColor(Color.Transparent)
.bindMenu(this.BaseMenu)
.type(ButtonType.Normal)

View File

@ -26,7 +26,7 @@ struct Index {
//工具栏
Row() {
TitleColumnSub()
}.height('5%')
}.height('4%')
.align(Alignment.Start)
//分割线
@ -77,7 +77,7 @@ struct Index {
})
//右侧边导航区
RightSideTab()
}.height('75%')
}.height('77%')
//分割线
Divider().vertical(false).strokeWidth(1).lineCap(LineCapStyle.Round).width('100%').backgroundColor(Color.Grey)
///状态栏
@ -87,7 +87,7 @@ struct Index {
.align(Alignment.End)
.alignItems(HorizontalAlign.Start)
.justifyContent(FlexAlign.Center)
.height('5%')
.height('4%')
}.width('100%')
.height('100%')
}

View File

@ -52,8 +52,8 @@ export struct TitleColumnSub {
this.viewDialog=this.ViewDialog();
}
this.viewDialog.open();
}).width(mwInfo.width*0.015)
.height(mwInfo.width*0.015)
}).width(mwInfo.width*0.013)
.height(mwInfo.width*0.013)
.backgroundColor(Color.Transparent)
.backgroundImage($r('app.media.' + SwitchView[0].eIcon))
.backgroundImageSize({