From 2da404ee83f61f0610779fc06b69df876cd8964f Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 13 May 2024 17:25:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/SearchBox.vue | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/components/SearchBox.vue b/components/SearchBox.vue index 57b421b..45eb768 100644 --- a/components/SearchBox.vue +++ b/components/SearchBox.vue @@ -27,22 +27,8 @@ event: 'input' }, props: { - value: String, - focused: { - type: Boolean, - default: false - } + value: String }, - watch: { - focused() { - this.focusState = this.focused - }, - }, - mounted () { - if (this.focused) { - this.focusState = true - } - }, methods: { handleFocus () { this.focusState = true