ソースを参照

修复vertical-scroll.vue组件下拉刷新距离设置无效的bug (#358)

langyuxiansheng 5 年 前
コミット
eabd7eb3ff
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/packages/scroller/vertical-scroll.vue

+ 1 - 1
src/packages/scroller/vertical-scroll.vue

@@ -135,7 +135,7 @@ export default {
       if (type === 'end') {
       if (type === 'end') {
         if (updateMove > 0) {
         if (updateMove > 0) {
           this.realMove = 0;
           this.realMove = 0;
-          if ((!this.isShowLoadMore || this.isFirstPull) && !this.isLoading && updateMove > 20) {
+          if ((!this.isShowLoadMore || this.isFirstPull) && !this.isLoading && updateMove > this.stretch) {
             updateMove = 50;
             updateMove = 50;
             clearTimeout(this.timerEmit);
             clearTimeout(this.timerEmit);
             this.timerEmit = setTimeout(() => {
             this.timerEmit = setTimeout(() => {