去掉多余的嵌套

This commit is contained in:
DevWiki 2024-04-19 14:11:15 +08:00
parent ec474c43d9
commit c49f7d821f

View File

@ -43,7 +43,6 @@ export struct TitleBar {
} }
build() { build() {
Row() {
RelativeContainer() { RelativeContainer() {
if (this.leftMenuType != TitleBarMenuType.None) { if (this.leftMenuType != TitleBarMenuType.None) {
Button() { Button() {
@ -117,7 +116,6 @@ export struct TitleBar {
}).id("right_menu") }).id("right_menu")
} }
} }
.width('100%').height('100%') .width('100%').height('100%').height(this.barHeight)
}.height(this.barHeight)
} }
} }