优化首页显示

This commit is contained in:
2024-04-30 12:32:25 +08:00
parent 0d43919561
commit bcb748a9b1
9 changed files with 152 additions and 26 deletions

View File

@@ -0,0 +1,27 @@
import { ComponentConst } from '@devwiki/common_ui/Index'
@Entry
@Component
export struct RelativeContainerPage {
build() {
RelativeContainer() {
Button('1111')
.alignRules({
top: { anchor: ComponentConst.ContainerId, align: VerticalAlign.Top },
left: { anchor: ComponentConst.ContainerId, align: HorizontalAlign.Start },
bottom: { anchor: ComponentConst.ContainerId, align: VerticalAlign.Bottom }
}).id('left_menu')
Button(){
Text("2222").height(64)
}
.alignRules({
top: { anchor: ComponentConst.ContainerId, align: VerticalAlign.Top },
right: { anchor: ComponentConst.ContainerId, align: HorizontalAlign.End },
bottom: { anchor: ComponentConst.ContainerId, align: VerticalAlign.Bottom }
}).id('right_menu')
}.height(64).width('100%').backgroundColor(Color.Red)
}
}