用hidden切换地图和列表,scroll-view列表的下拉刷新失效。
用hidden切换地图和列表,scroll-view列表的下拉刷新失效。
<!-- 正常 -->
<!-- <view class="content" wx:if="{{type == 'list'}}">
<scroll-view scroll-y="true" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}"
bindrefresherrefresh="refresh" >
.......
</scroll-view>
<!-- ---------------------------------------------------------------------------------------- -->
<!-- 失效 -->
<view class="content" hidden="{{type == 'list'? false: true}}">
<scroll-view scroll-y="true" refresher-enabled="{{true}}" refresher-triggered="{{triggered}}"
bindrefresherrefresh="refresh">
.......
</scroll-view>
</view>
1 回复