uniapp在使用自定义弹窗时,在内容过多的情况下,uni-popup标签内的内容不能上下滑动。解决方式其中一种可以使用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%;
}
}
以上就能解决不滑动的问题。