解决方式其中一种可以使用scroll-view标签,结合 scroll-y="true" 使用,方式如下:
<view class="content_list">
<scroll-view scroll-y="true" class="scroll_view_style">
<view v-for="(item, index) in dataList" :key="index">
<text>示例渲染内容</text>
</view>
</scroll-view>
</view>
其中,主要样式如下:
.content_list {
height: 760rpx;
overflow-x: hidden;
.scroll_view_style{
height: 100%;
}
}