mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
fix(PullRefresh): avoid Vue 2.6 event bubble issues (#5347)
This commit is contained in:
@@ -64,6 +64,7 @@ export default createComponent({
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.bindTouchEvent(this.$refs.track);
|
||||
this.scrollEl = getScrollEventTarget(this.$el);
|
||||
},
|
||||
|
||||
@@ -162,14 +163,7 @@ export default createComponent({
|
||||
|
||||
return (
|
||||
<div class={bem()}>
|
||||
<div
|
||||
class={bem('track')}
|
||||
style={style}
|
||||
onTouchstart={this.onTouchStart}
|
||||
onTouchmove={this.onTouchMove}
|
||||
onTouchend={this.onTouchEnd}
|
||||
onTouchcancel={this.onTouchEnd}
|
||||
>
|
||||
<div ref="track" class={bem('track')} style={style}>
|
||||
<div class={bem('head')}>{Status}</div>
|
||||
{this.slots()}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user