调整调用和 layout

This commit is contained in:
2024-04-08 20:51:05 +08:00
parent 498cdaedb1
commit 338b784b8b
5 changed files with 44 additions and 26 deletions

View File

@@ -6,11 +6,18 @@ struct LinearLayoutPage {
@State space: number = 10;
build() {
Column({ space: this.space }) {
Column({ space: '5' }) {
Text(`space:${this.space}`)
Row().width('90%')
Row().width('90%')
Row().width('90%')
}
Row({ space: this.space}){
Column().height('100%').width('25%').backgroundColor("#ff5577")
Column().height('100%').width('25%').backgroundColor("#ff5577")
Column().height('100%').width('20%').backgroundColor("#ff5577")
Column().height('100%').width('20%').backgroundColor("#ff5577")
}.width('90%').height('10%').backgroundColor("#11ff4455")
Row().width('90%').height('10%').backgroundColor("#ff4455")
Row().width('90%').height('10%').backgroundColor("#ff4455")
Row().width('90%').height('10%').backgroundColor("#ff4455")
Row().width('90%').height('10%').backgroundColor("#ff4455")
}.height('100%').width('100%')
}
}