场景一、scroll用在页面的最外层容器时;不能设置colunm的高度。
Scroll() {
Column() {}.height('100%')
}
场景二、scroll内嵌在其他容器内时;记得设置scroll的layoutWeight=1。
Column() {
scroll(){}.layoutWeight(1)
}
场景一、scroll用在页面的最外层容器时;不能设置colunm的高度。
Scroll() {
Column() {}.height('100%')
}
场景二、scroll内嵌在其他容器内时;记得设置scroll的layoutWeight=1。
Column() {
scroll(){}.layoutWeight(1)
}