From 3de7475cda4389473edc30a4d8b9268f70d44aa5 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Mon, 14 Feb 2022 15:52:32 +0800 Subject: [PATCH] update: searchBox --- .../theme/components/SearchBox/index.vue | 39 +++++++++++-------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/docs/.vuepress/theme/components/SearchBox/index.vue b/docs/.vuepress/theme/components/SearchBox/index.vue index a43486113..93d580991 100644 --- a/docs/.vuepress/theme/components/SearchBox/index.vue +++ b/docs/.vuepress/theme/components/SearchBox/index.vue @@ -11,7 +11,7 @@ spellcheck="false" @input="query = $event.target.value" @focus="focused = true" - @blur="focused = true" + @blur="focused = false" @keyup.enter="go(focusIndex)" @keyup.up="onUp" @keyup.down="onDown" @@ -23,20 +23,27 @@ style="z-index: 1" @mouseleave="unfocus" > -