Selaa lähdekoodia

等键盘全部收起,添加延迟

Luolei 5 vuotta sitten
vanhempi
commit
0aea0ef663
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      src/components/Search.vue

+ 4 - 1
src/components/Search.vue

@@ -70,7 +70,10 @@ export default {
         flg = true
         flg = true
       }
       }
       this.tmpItem = item
       this.tmpItem = item
-      this.$emit('showDetil',item,flg)
+      let timer = setTimeout(() => {
+        this.$emit('showDetil',item,flg)
+        clearTimeout(timer)
+      }, 250);
       // this.$emit('search', false)
       // this.$emit('search', false)
     },
     },
     search() {
     search() {