苏子刚 6 years ago
parent
commit
19b195f2d5
1 changed files with 7 additions and 10 deletions
  1. 7 10
      src/packages/scroller/vertical-scroll.vue

+ 7 - 10
src/packages/scroller/vertical-scroll.vue

@@ -56,20 +56,18 @@ export default {
             type: Number,
             default: 100
         },
-        propstime: {
+        propsTime: {
             type:Number,
-            default:3000
+            default: 3000
         }
     },
     watch: {
         'isLoading': function(status) {
             if (!status && this.realMove === 0) {
-               clearTimeout(this.outTimer);
-               this.outTimer = setTimeout(()=>{
-                    clearTimeout(this.timer);
-                    this.setTransform(this.realMove, 'end', 0); 
-                },this.propstime)
-                
+                clearTimeout(this.timer);
+                this.timer = setTimeout(() => {
+                    this.setTransform(this.realMove, 'end', 0);
+                }, this.propsTime);
             }
         },
         'isUnMore': function() {
@@ -91,8 +89,7 @@ export default {
             realMove: 0,
             isShowLoadMore: false,
             listMinHeightStyle: 'auto',
-            isFirstPull: true,
-            outTimer:null
+            isFirstPull: true
         }
     },