Browse Source

Merge branch 'v2-dev' of https://github.com/jdf2e/nutui into v2-dev

yangkaixuan 5 years ago
parent
commit
4f7c04cc9c
2 changed files with 10 additions and 10 deletions
  1. 5 5
      src/packages/scroller/demo.vue
  2. 5 5
      src/packages/scroller/doc.md

+ 5 - 5
src/packages/scroller/demo.vue

@@ -86,7 +86,7 @@ export default {
       isUnMore2: false,
       isLoading2: false,
       page2: 2,
-      timers: null,
+      timer: null,
       scrollTo: 1,
       scrollToHor: 1
     };
@@ -121,7 +121,7 @@ export default {
         this.isUnMore1 = true;
         this.isLoading1 = false;
       } else {
-        clearTimeout(this.timers);
+        clearTimeout(this.timer);
         this.timer = setTimeout(() => {
           this.isLoading1 = false;
           this.isUnMore1 = false;
@@ -133,7 +133,7 @@ export default {
 
     pulldown() {
       this.isLoading1 = true;
-      clearTimeout(this.timers);
+      clearTimeout(this.timer);
       this.timer = setTimeout(() => {
         this.isLoading1 = false;
         this.isUnMore1 = false;
@@ -148,7 +148,7 @@ export default {
         this.isUnMore2 = true;
         this.isLoading2 = false;
       } else {
-        clearTimeout(this.timers);
+        clearTimeout(this.timer);
         this.timer = setTimeout(() => {
           this.isLoading2 = false;
           this.isUnMore2 = false;
@@ -160,7 +160,7 @@ export default {
 
     pulldown2() {
       this.isLoading2 = true;
-      clearTimeout(this.timers);
+      clearTimeout(this.timer);
       this.timer = setTimeout(() => {
         this.isLoading2 = false;
         this.isUnMore2 = false;

+ 5 - 5
src/packages/scroller/doc.md

@@ -90,7 +90,7 @@ export default {
             isUnMore2: false,
             isLoading2: false,
             page2: 2,
-            timers: null,
+            timer: null,
         };
     },
 
@@ -105,7 +105,7 @@ export default {
                 this.isUnMore1 = true;
                 this.isLoading1 = false;
             } else {
-                clearTimeout(this.timers);
+                clearTimeout(this.timer);
                 this.timer = setTimeout(() => {
                     this.isLoading1 = false;
                     this.isUnMore1 = false;
@@ -117,7 +117,7 @@ export default {
 
         pulldown() {
             this.isLoading1 = true;
-            clearTimeout(this.timers);
+            clearTimeout(this.timer);
             this.timer = setTimeout(() => {
                 this.isLoading1 = false;
                 this.isUnMore1 = false;
@@ -133,7 +133,7 @@ export default {
                 this.isUnMore2 = true;
                 this.isLoading2 = false;
             } else {
-                clearTimeout(this.timers);
+                clearTimeout(this.timer);
                 this.timer = setTimeout(() => {
                     this.isLoading2 = false;
                      this.isUnMore2 = false;
@@ -145,7 +145,7 @@ export default {
 
         pulldown2() {
             this.isLoading2 = true;
-            clearTimeout(this.timers);
+            clearTimeout(this.timer);
             this.timer = setTimeout(() => {
                 this.isLoading2 = false;
                 this.isUnMore2 = false;