添加横竖屏切换及监听

This commit is contained in:
2024-04-07 23:50:37 +08:00
parent a8af14eb3c
commit 5e4df7785f
4 changed files with 30 additions and 15 deletions

View File

@@ -0,0 +1,16 @@
@Entry
@Component
struct LinearLayoutPage {
@State space: number = 10;
build() {
Column({ space: this.space }) {
Text(`space:${this.space}`)
Row().width('90%')
Row().width('90%')
Row().width('90%')
}
}
}