Parcourir la source

下拉刷新动画延迟

zhaoxiaohai il y a 3 ans
Parent
commit
f3b8995908
1 fichiers modifiés avec 5 ajouts et 3 suppressions
  1. 5 3
      components/My_listBox/index.js

+ 5 - 3
components/My_listBox/index.js

@@ -38,9 +38,11 @@ Component({
         },
         /* 刷新完成 */
         RefreshToComplete() {
-            this.setData({
-                inRefresh: false
-            })
+            setTimeout(() => {
+                this.setData({
+                    inRefresh: false
+                })
+            }, 500)
         },
         /* 加载分页 */
         loadThePage() {