代码如下:
onLoad(){
console.log('test onLoad...')
ty.startPullDownRefresh();
},
onPullDownRefresh(){
console.log('mothra onPullDownRefresh');
this.donothing()
},
donothing:function(){
console.log("i am do nothing!!!");
},
onReachBottom() {
console.log('mothra onReactBottom')
},
版本配置如下:
"dependencies": {
"@antv/f2": "3.8.10-beta.1",
"@tuya-miniapp/miniapp-canvas": "2.0.0",
"@tuya-miniapp/miniapp-components-plus": "2.10.1",
"@tuya-miniapp/miniapp-gesture": "2.0.2",
"@tuya-miniapp/rjs-adapter": "1.0.3",
"lottie-miniapp": "1.9.1",
"redux": "4.1.1",
"redux-logger": "3.0.6",
"redux-thunk": "2.3.0"
}
在IDE虚拟机没啥问题,换真机调试onPullDownRefresh回调了两次: