去掉多余的嵌套

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