From 05eeec0f924d5a086991b75675b1bd529834900c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=B1=BC=E7=83=A7=E3=80=82?= <827265905@qq.com> Date: Fri, 13 Sep 2024 17:59:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(feat):=20"=E6=B7=BB=E5=8A=A0=E9=94=81?= =?UTF-8?q?=E5=B1=8F(=E6=9C=AA=E5=AE=8C=E6=88=90)"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/base/AppSearch/SearchContainer.vue | 6 ++++-- .../grow_up_admin/src/components/base/AppSearch/index.vue | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/grow_up_admin/src/components/base/AppSearch/SearchContainer.vue b/packages/grow_up_admin/src/components/base/AppSearch/SearchContainer.vue index d5a40d7..57f6f91 100644 --- a/packages/grow_up_admin/src/components/base/AppSearch/SearchContainer.vue +++ b/packages/grow_up_admin/src/components/base/AppSearch/SearchContainer.vue @@ -7,14 +7,14 @@ :to="{ path: `/home/${item.path}` }" - class="block mb-[5px] text-[14px] leading-[40px] p-[5px] overflow-hidden border-solid border-[1px] rounded-[4px] border-gray-300 text-gray-500 hover:bg-sky-700 hover:text-gray-300 transition-all" + class="block mb-[5px] text-[14px] leading-[40px] p-[5px] overflow-hidden border-solid border-[1px] rounded-[4px] border-gray-300 text-gray-500 hover:bg-PUBLIC_MAIN_COLOR hover:text-BG_CARD transition-all" @click="onSelect" > {{ item.label }}
- {{ $t("APP_SEARCH.NOT_SEARCH_DATA") }} + {{ t("APP_SEARCH.NOT_SEARCH_DATA") }}
@@ -24,7 +24,9 @@ import type { MenuType } from "types/menu"; import { watch, toRefs, unref, reactive } from "vue"; import { useMenuStore } from "store/modules/menu"; import { debounce } from "util/index"; +import { useI18n } from "vue-i18n"; +const { t } = useI18n(); const debounceFn = debounce(200); const { menuList } = useMenuStore(); diff --git a/packages/grow_up_admin/src/components/base/AppSearch/index.vue b/packages/grow_up_admin/src/components/base/AppSearch/index.vue index b20400b..5286885 100644 --- a/packages/grow_up_admin/src/components/base/AppSearch/index.vue +++ b/packages/grow_up_admin/src/components/base/AppSearch/index.vue @@ -3,7 +3,7 @@ v-model="searchValue" type="text" size="large" - :placeholder="$t('APP_SEARCH.SEARCH_PLACEHOLDER')" + :placeholder="t('APP_SEARCH.SEARCH_PLACEHOLDER')" class="enter-y" > @@ -17,7 +17,9 @@ import { ref } from "vue"; import { SearchOutlined } from "@vicons/antd"; import SearchContainer from "./SearchContainer.vue"; +import { useI18n } from "vue-i18n"; +const { t } = useI18n(); const searchValue = ref(""); const emit = defineEmits(["select"]);