Explorar o código

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

Luolei %!s(int64=5) %!d(string=hai) anos
pai
achega
0aea0ef663
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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() {