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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5dc70-44234.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5dc70-44234.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?