赞
踩
解决小程序使用ScrollView下拉刷新使用问题
框架:Taro 3.5.12
html写法
- <scroll-view
- :refresher-enabled="true"
- :refresherTriggered="refresherTriggered"
- @refresherrefresh="onRefresherRefresh"
- @refresherabort="onRefreshAbort"
- @refresherpulling="onRefreshPulling"
- @refresherrestore="onRefreshRestore"
- >
- <ListItem v-for="item in list" :key="item.id">
- </ListItem>
- </scroll-view>
js写法
- onRefresherRefresh() {
- if (this._freshing) return;
- this._freshing = true;
- this.refresherTriggered = true;
-
- // do something and stop
- this._freshing = false;
- this.refresherTriggered = false;
- },
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。