瀏覽代碼

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

Luolei 5 年之前
父節點
當前提交
0aea0ef663
共有 1 個文件被更改,包括 4 次插入1 次删除
  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() {