Browse Source

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

Luolei 5 years ago
parent
commit
0aea0ef663
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/Search.vue

+ 4 - 1
src/components/Search.vue

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