From c3f3c871c0395f13654687e04861bf9185353abb Mon Sep 17 00:00:00 2001 From: mirari Date: Sat, 11 Oct 2025 11:57:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E8=AE=BE=E7=BD=AE=E5=90=8E=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/components/menu/icon.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/base/components/menu/icon.vue b/src/modules/base/components/menu/icon.vue index 02d5b3f7..21294a57 100644 --- a/src/modules/base/components/menu/icon.vue +++ b/src/modules/base/components/menu/icon.vue @@ -4,7 +4,7 @@ - +
@@ -37,6 +37,11 @@ const list = ref(svgIcons.filter(e => e.indexOf('icon-') === 0)); // 已选图标 const value = useModel(props, 'modelValue'); + +// 处理清空事件 +function onClear() { + value.value = ''; +}