用户2814598
用户2814598
  • 发布:2025-05-17 09:53
  • 更新:2025-05-17 12:53
  • 阅读:93

nvue页面,scrollview不支持下拉刷新吗?

分类:nvue
scroll-view 已经设置了高度, refresher-triggered 由 false => true,无法下拉刷新。在vue页面是正常的。 <scroll-view class="scroll-view" refresher-enabled="true" refresher-triggered="swiperItem.isRefreshing" @refresherrefresh="onRefresh(swiperIndex)"
@scrolltolower="onScrollToBottom(swiperIndex)"
scroll-y="true" style="{ height: screen.height - (statusBarHeight + 48) + 'px' }">

</scroll-view>

2025-05-17 09:53 负责人:无 分享
已邀请:
用户2814598

用户2814598 (作者)

如果换成refresh组件,只要给loading-indicator外包加上一个view,loading-indicator就不会旋转。 <refresh @refresh="onRefresh(swiperIndex)" :display="swiperItem.isRefreshing ? 'show' : 'hide'">

                    <view>  
                        <loading-indicator style="width: 50px; height: 50px;"></loading-indicator>  
                        <text>Refreshing ...</text>  
                    </view>

要回复问题请先登录注册