修复部分组件尺寸更加合理
This commit is contained in:
parent
a32569b32b
commit
8c11896d28
@ -180,14 +180,14 @@ export struct SubColumnMenu {
|
|||||||
Button(){
|
Button(){
|
||||||
Row(){
|
Row(){
|
||||||
Image($r('app.media.'+(this.icon!=undefined ? this.icon:(this.menus[this.curtIndex]as TitleButton).eIcon)))
|
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%' })
|
.scale({ centerX: '50%', centerY: '50%' })
|
||||||
if(this.name!=undefined){
|
if(this.name!=undefined){
|
||||||
Text(this.name)
|
Text(this.name)
|
||||||
.fontSize(16)
|
.fontSize(16)
|
||||||
}
|
}
|
||||||
}.width('auto')
|
}.width('auto')
|
||||||
}.constraintSize({ minWidth: mwInfo.width*0.015 })
|
}.constraintSize({ minWidth: mwInfo.width*0.013 })
|
||||||
.backgroundColor(Color.Transparent)
|
.backgroundColor(Color.Transparent)
|
||||||
.bindMenu(this.BaseMenu)
|
.bindMenu(this.BaseMenu)
|
||||||
.type(ButtonType.Normal)
|
.type(ButtonType.Normal)
|
||||||
|
|||||||
@ -26,7 +26,7 @@ struct Index {
|
|||||||
//工具栏
|
//工具栏
|
||||||
Row() {
|
Row() {
|
||||||
TitleColumnSub()
|
TitleColumnSub()
|
||||||
}.height('5%')
|
}.height('4%')
|
||||||
.align(Alignment.Start)
|
.align(Alignment.Start)
|
||||||
|
|
||||||
//分割线
|
//分割线
|
||||||
@ -77,7 +77,7 @@ struct Index {
|
|||||||
})
|
})
|
||||||
//右侧边导航区
|
//右侧边导航区
|
||||||
RightSideTab()
|
RightSideTab()
|
||||||
}.height('75%')
|
}.height('77%')
|
||||||
//分割线
|
//分割线
|
||||||
Divider().vertical(false).strokeWidth(1).lineCap(LineCapStyle.Round).width('100%').backgroundColor(Color.Grey)
|
Divider().vertical(false).strokeWidth(1).lineCap(LineCapStyle.Round).width('100%').backgroundColor(Color.Grey)
|
||||||
///状态栏
|
///状态栏
|
||||||
@ -87,7 +87,7 @@ struct Index {
|
|||||||
.align(Alignment.End)
|
.align(Alignment.End)
|
||||||
.alignItems(HorizontalAlign.Start)
|
.alignItems(HorizontalAlign.Start)
|
||||||
.justifyContent(FlexAlign.Center)
|
.justifyContent(FlexAlign.Center)
|
||||||
.height('5%')
|
.height('4%')
|
||||||
}.width('100%')
|
}.width('100%')
|
||||||
.height('100%')
|
.height('100%')
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,8 +52,8 @@ export struct TitleColumnSub {
|
|||||||
this.viewDialog=this.ViewDialog();
|
this.viewDialog=this.ViewDialog();
|
||||||
}
|
}
|
||||||
this.viewDialog.open();
|
this.viewDialog.open();
|
||||||
}).width(mwInfo.width*0.015)
|
}).width(mwInfo.width*0.013)
|
||||||
.height(mwInfo.width*0.015)
|
.height(mwInfo.width*0.013)
|
||||||
.backgroundColor(Color.Transparent)
|
.backgroundColor(Color.Transparent)
|
||||||
.backgroundImage($r('app.media.' + SwitchView[0].eIcon))
|
.backgroundImage($r('app.media.' + SwitchView[0].eIcon))
|
||||||
.backgroundImageSize({
|
.backgroundImageSize({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user