Mini Program's onReady and swiper component problems

at present, there is a requirement to use Mini Program"s swiper component to wrap the list of several items and swipe left and right to switch different lists, but the height of swiper is not self-adaptive. ), so if you want to get the height of the list in the life cycle, you can only get the height in the onready, but after the assignment, the value is given, but the whole height does not change. How to solve this?

Mar.09,2021
Menu