自定义组件内scroll-view自定义下拉刷新无法触发bindrefresherrefresh事件
发布于 5 年前 作者 pyuan 2549 次浏览 来自 官方Issues

[@miniprogram-component-plus](/user/miniprogram-component-plus)/tabs/index 组件 嵌套 自定义组件内使用scroll-view,ready()方法执行前渲染scroll-view, bindrefresherrefresh事件无法被触发, 需要在ready方法后渲染scroll-view才能触发自定义下拉刷新事件

{“type”:“refresherpulling”,“timeStamp”:390537,“target”:{“id”:"",“offsetLeft”:0,“offsetTop”:45,“dataset”:{}},“currentTarget”:{“id”:"",“offsetLeft”:0,“offsetTop”:45,“dataset”:{}},“mark”:{},“detail”:{“dy”:null},“mut”:false,"_userTap":false}

1 回复

官方示例在此,何人敢说下拉刷新无用?https://developers.weixin.qq.com/s/D9XH0vmM79ij

回到顶部