mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
[bugfix] PullRefresh: ensure value change can be watched (#3719)
This commit is contained in:
@@ -99,10 +99,15 @@ export default createComponent({
|
||||
onTouchEnd() {
|
||||
if (!this.untouchable && this.ceiling && this.deltaY) {
|
||||
this.duration = this.animationDuration;
|
||||
|
||||
if (this.status === 'loosing') {
|
||||
this.setStatus(this.headHeight, true);
|
||||
this.$emit('input', true);
|
||||
this.$emit('refresh');
|
||||
|
||||
// ensure value change can be watched
|
||||
this.$nextTick(() => {
|
||||
this.$emit('refresh');
|
||||
});
|
||||
} else {
|
||||
this.setStatus(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user