.height(‘100%’)设置的是页面的占比,还请用.layoutWeight(1)试试,.layoutWeight()是对子组件重新布局,占满剩余空间:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-universal-attributes-size-V5\#layoutweight
.height(‘100%’)设置的是页面的占比,还请用.layoutWeight(1)试试,.layoutWeight()是对子组件重新布局,占满剩余空间:
https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-universal-attributes-size-V5\#layoutweight