uniapp scroll-view下拉刷新无法复位

动态设置refresher-triggered的值,当触发下拉刷新时,refresher-triggered = true;当下拉刷新执行完之后refresher-triggered = false。
复制代码
<scroll-view 
    :scroll-top="scrollTop" 
    scroll-y="true"
    :refresher-triggered="triggered"
    @refresherrefresh="onRefresh"
>
	<view id="demo1" class="scroll-view-item uni-bg-red">A</view>
	<view id="demo2" class="scroll-view-item uni-bg-green">B</view>
	<view id="demo3" class="scroll-view-item uni-bg-blue">C</view>
</scroll-view>


<script>
    export default {
        data() {
            return {
                triggered: false
            }
        },
        methods: {
            onRefresh(){
                this.triggered = true;
                setTimeout(() => {
                    this.triggered = false;
                }, 3000)
            }
        }
    }
</script>

详情请阅览scroll-view自定义下拉刷新

相关推荐
QT.qtqtqtqtqt15 分钟前
uni-app小程序前端开发笔记(更新中)
前端·笔记·小程序·uni-app
喵喵虫10 小时前
uniapp修改封装组件失败 styleIsolation
uni-app
游戏开发爱好者821 小时前
日常开发与测试的 App 测试方法、查看设备状态、实时日志、应用数据
android·ios·小程序·https·uni-app·iphone·webview
2501_915106321 天前
app 上架过程,安装包准备、证书与描述文件管理、安装测试、上传
android·ios·小程序·https·uni-app·iphone·webview
2501_915106321 天前
使用 Sniffmaster TCP 抓包和 Wireshark 网络分析
网络协议·tcp/ip·ios·小程序·uni-app·wireshark·iphone
宠友信息1 天前
2025社交+IM及时通讯社区APP仿小红书小程序
java·spring boot·小程序·uni-app·web app
“负拾捌”1 天前
python + uniapp 结合腾讯云实现实时语音识别功能(WebSocket)
python·websocket·微信小程序·uni-app·大模型·腾讯云·语音识别
局外人LZ2 天前
Uniapp脚手架项目搭建,uniapp+vue3+uView pro+vite+pinia+sass
前端·uni-app·sass
2501_915918412 天前
在 iOS 环境下查看 App 详细信息与文件目录
android·ios·小程序·https·uni-app·iphone·webview
前端呆头鹅2 天前
Websocket使用方案详解(uniapp版)
websocket·网络协议·uni-app