自定义组件Component下onPullDownRefresh失效
- 当前 Bug 的表现(可附上截图)
官网解释:“页面的生命周期方法(即 on 开头的方法),应写在 methods 定义段中。”
但如下图,onLoad、onReachBottom、onPullDownRefresh三个方法均不会触发。
-
预期表现
-
复现路径
-
提供一个最简复现 Demo
见官网:Nonehttps://developers.weixin.qq.com/miniprogram/dev/reference/api/Component.html 在开发者工具中预览效果
