提交 4c0e0071 编写于 作者: d-u-a's avatar d-u-a

update: 优化 <scroll-view> 下拉刷新逻辑

上级 130d043a
......@@ -139,7 +139,7 @@ export default {
lastScrollToLowerTime: 0,
refresherHeight: 0,
refreshRotate: 0,
refreshState: 'pulling'
refreshState: ''
}
},
computed: {
......@@ -229,7 +229,7 @@ export default {
event.stopPropagation()
}
if (self.refresherEnabled && self.refreshState !== 'refreshing' && touchStart && main.scrollTop === 0) {
if (self.refresherEnabled && self.refreshState === 'pulling') {
let dy = y - touchStart.y
self.refresherHeight = dy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册