From f19777706023b1ade47112dde3156a03801be3fd Mon Sep 17 00:00:00 2001
From: pany <939630029@qq.com>
Date: Tue, 26 Nov 2024 19:07:35 +0800
Subject: [PATCH] =?UTF-8?q?perf:=20=E7=AE=80=E5=8C=96=20Sidebar=20?=
=?UTF-8?q?=E5=AD=90=E7=BB=84=E4=BB=B6=E5=90=8D=E7=A7=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/Sidebar/{SidebarItem.vue => Item.vue} | 8 ++++----
.../components/Sidebar/{SidebarItemLink.vue => Link.vue} | 0
src/layouts/components/Sidebar/index.vue | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
rename src/layouts/components/Sidebar/{SidebarItem.vue => Item.vue} (93%)
rename src/layouts/components/Sidebar/{SidebarItemLink.vue => Link.vue} (100%)
diff --git a/src/layouts/components/Sidebar/SidebarItem.vue b/src/layouts/components/Sidebar/Item.vue
similarity index 93%
rename from src/layouts/components/Sidebar/SidebarItem.vue
rename to src/layouts/components/Sidebar/Item.vue
index 4550df71..8eeb3b96 100644
--- a/src/layouts/components/Sidebar/SidebarItem.vue
+++ b/src/layouts/components/Sidebar/Item.vue
@@ -3,7 +3,7 @@ import type { RouteRecordRaw } from "vue-router"
import { isExternal } from "@/utils/validate"
import path from "path-browserify"
import { computed } from "vue"
-import SidebarItemLink from "./SidebarItemLink.vue"
+import Link from "./Link.vue"
interface Props {
item: RouteRecordRaw
@@ -51,7 +51,7 @@ function resolvePath(routePath: string) {
-
+
@@ -59,7 +59,7 @@ function resolvePath(routePath: string) {
{{ theOnlyOneChild.meta.title }}
-
+
@@ -68,7 +68,7 @@ function resolvePath(routePath: string) {
{{ props.item.meta.title }}
- !isTop.value ? "2px" : "0px")
:collapse-transition="false"
:mode="isTop && !isMobile ? 'horizontal' : 'vertical'"
>
-