From 7189c688cbd210f7c9bf408c8218d6578e14a87d Mon Sep 17 00:00:00 2001 From: zlong <953829746@qq.com> Date: Tue, 26 Nov 2024 11:29:09 +0800 Subject: [PATCH] =?UTF-8?q?add:=E6=96=B0=E5=A2=9E=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=90=9C=E7=B4=A2=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/pet-manual/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/pet-manual/index.vue b/src/pages/pet-manual/index.vue index 45bedfb..3d80831 100644 --- a/src/pages/pet-manual/index.vue +++ b/src/pages/pet-manual/index.vue @@ -107,6 +107,9 @@ const isSearch = ref(false) function handleSearchFocus() { isSearch.value = false } +function handleCancel() { + isSearch.value = true +} const historyList = ref<{ name: string }[]>([ { name: '猫' }, { name: '狗' }, @@ -131,6 +134,7 @@ const findList = ref<{ name: string }[]>([ :cancel-button="isSearch ? 'none' : 'auto'" :radius="20" @focus="handleSearchFocus" + @cancel="handleCancel" />