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>
如果换成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>
1 个回复
用户2814598 (作者)
如果换成refresh组件,只要给loading-indicator外包加上一个view,loading-indicator就不会旋转。 <refresh @refresh="onRefresh(swiperIndex)" :display="swiperItem.isRefreshing ? 'show' : 'hide'">