From cf5fcc802f149179821b6724b9e66bb80a59bca9 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 2 Jan 2024 23:58:53 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=89=80=E6=9C=89`el?= =?UTF-8?q?-empty`=E7=9A=84`description`=E5=86=85=E5=AE=B9=E3=80=82?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=80=89=E6=8B=A9=E5=99=A8=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=97=B6=E5=8A=A0=E4=B8=8A`el-empty`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ReAnimateSelector/src/index.vue | 4 +++- src/components/ReIcon/src/Select.vue | 5 +++++ src/layout/components/notice/noticeList.vue | 2 +- src/views/list/card/index.vue | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/components/ReAnimateSelector/src/index.vue b/src/components/ReAnimateSelector/src/index.vue index f748e28b5..4b4f4ab91 100644 --- a/src/components/ReAnimateSelector/src/index.vue +++ b/src/components/ReAnimateSelector/src/index.vue @@ -9,6 +9,7 @@ defineOptions({ const inputValue = defineModel({ type: String }); +const searchVal = ref(); const animatesList = ref(animates); const copyAnimatesList = cloneDeep(animatesList); @@ -48,6 +49,7 @@ function onClear() { } function filterMethod(value: any) { + searchVal.value = value; animatesList.value = copyAnimatesList.value.filter((i: string | any[]) => i.includes(value) ); @@ -110,7 +112,7 @@ function onMouseleave() { diff --git a/src/components/ReIcon/src/Select.vue b/src/components/ReIcon/src/Select.vue index 32b758ed4..8891e5302 100644 --- a/src/components/ReIcon/src/Select.vue +++ b/src/components/ReIcon/src/Select.vue @@ -174,6 +174,11 @@ watch( /> + diff --git a/src/layout/components/notice/noticeList.vue b/src/layout/components/notice/noticeList.vue index 2d40d953d..bef2253a3 100644 --- a/src/layout/components/notice/noticeList.vue +++ b/src/layout/components/notice/noticeList.vue @@ -19,5 +19,5 @@ const props = defineProps({ :noticeItem="item" /> - + diff --git a/src/views/list/card/index.vue b/src/views/list/card/index.vue index 592154a1b..c7d6abd55 100644 --- a/src/views/list/card/index.vue +++ b/src/views/list/card/index.vue @@ -133,7 +133,7 @@ const handleManageProduct = product => { v.name.toLowerCase().includes(searchValue.toLowerCase()) ).length === 0 " - description="暂无数据" + :description="`${searchValue} 产品不存在`" />