From 32f4b313fbfca91d02e484e595eae21d93b96818 Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Tue, 5 Mar 2024 13:53:11 +0800 Subject: [PATCH] =?UTF-8?q?chore(AppSearchModal):=20=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Application/src/search/AppSearchModal.vue | 6 ++++-- src/components/Application/src/search/useMenuSearch.ts | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Application/src/search/AppSearchModal.vue b/src/components/Application/src/search/AppSearchModal.vue index 012cd6f3..49d20f62 100644 --- a/src/components/Application/src/search/AppSearchModal.vue +++ b/src/components/Application/src/search/AppSearchModal.vue @@ -163,7 +163,7 @@ function handleClose() { width: 632px; margin: 0 auto auto; background-color: var(--component-background); - border-radius: 16px; + border-radius: 8px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / 25%); } @@ -177,7 +177,7 @@ function handleClose() { &-input { width: 100%; height: 48px; - font-size: 1.5em; + font-size: 1.2em; color: #1c1e21; border-radius: 6px; @@ -233,6 +233,8 @@ function handleClose() { } &--active { + color: @primary-color; + .@{prefix-cls}-list__item-enter { opacity: 1; } diff --git a/src/components/Application/src/search/useMenuSearch.ts b/src/components/Application/src/search/useMenuSearch.ts index ac508f58..3623fa82 100644 --- a/src/components/Application/src/search/useMenuSearch.ts +++ b/src/components/Application/src/search/useMenuSearch.ts @@ -70,7 +70,7 @@ export function useMenuSearch(refs: Ref, scrollWrap: Ref, ret.push({ name: parent?.name ? `${parent.name} > ${name}` : name, path, - icon, + icon: icon || parent?.icon, }) } if (!meta?.hideChildrenInMenu && Array.isArray(children) && children.length)