From 4f59013b61fd22fe7c614ef7c0a737c69ed34cda Mon Sep 17 00:00:00 2001
From: xiaoming <1923740402@qq.com>
Date: Tue, 6 Jan 2026 12:38:52 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20`layout`=E5=8F=B3=E4=B8=8A=E8=A7=92?=
=?UTF-8?q?=E7=9A=84=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E5=8A=A8=E6=95=88=20(#1254)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/layout/components/lay-navbar/index.vue | 10 ++--
src/layout/components/lay-notice/index.vue | 50 ++++++++++++++-----
src/layout/components/lay-search/index.vue | 2 +-
.../components/lay-sidebar/NavHorizontal.vue | 10 ++--
src/layout/components/lay-sidebar/NavMix.vue | 10 ++--
.../components/SidebarFullScreen.vue | 5 +-
src/style/index.scss | 15 ++++++
src/style/sidebar.scss | 17 ++-----
src/style/tailwind.css | 4 ++
9 files changed, 85 insertions(+), 38 deletions(-)
diff --git a/src/layout/components/lay-navbar/index.vue b/src/layout/components/lay-navbar/index.vue
index 29a5d10ac..40541775d 100644
--- a/src/layout/components/lay-navbar/index.vue
+++ b/src/layout/components/lay-navbar/index.vue
@@ -53,9 +53,11 @@ const { t, locale, translationCh, translationEn } = useTranslationLang();
diff --git a/src/layout/components/lay-notice/index.vue b/src/layout/components/lay-notice/index.vue
index 6ea5fb7db..b1f4d5ffc 100644
--- a/src/layout/components/lay-notice/index.vue
+++ b/src/layout/components/lay-notice/index.vue
@@ -3,15 +3,12 @@ import { useI18n } from "vue-i18n";
import { ref, computed } from "vue";
import { noticesData } from "./data";
import NoticeList from "./components/NoticeList.vue";
-import BellIcon from "~icons/ep/bell";
+import BellIcon from "~icons/lucide/bell";
const { t } = useI18n();
-const noticesNum = ref(0);
const notices = ref(noticesData);
const activeKey = ref(noticesData[0]?.key);
-notices.value.map(v => (noticesNum.value += v.list.length));
-
const getLabel = computed(
() => item =>
t(item.name) + (item.list.length > 0 ? `(${item.list.length})` : "")
@@ -21,14 +18,9 @@ const getLabel = computed(
-
+
@@ -65,6 +57,34 @@ const getLabel = computed(