Prechádzať zdrojové kódy

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

Luolei 6 rokov pred
rodič
commit
0aea0ef663
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  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() {