Quellcode durchsuchen

perf: 左侧菜单折叠后的`tooltip`主题与整体菜单保持统一

xiaoxian521 vor 1 Jahr
Ursprung
Commit
76cbbad940

+ 1 - 1
package.json

@@ -155,7 +155,7 @@
     "vite": "^5.0.10",
     "vite-plugin-cdn-import": "^0.3.5",
     "vite-plugin-compression": "^0.5.1",
-    "vite-plugin-fake-server": "^2.0.1",
+    "vite-plugin-fake-server": "2.0.0",
     "vite-plugin-remove-console": "^2.2.0",
     "vite-plugin-router-warn": "^1.0.0",
     "vite-svg-loader": "^5.1.0",

+ 4 - 4
pnpm-lock.yaml

@@ -323,8 +323,8 @@ devDependencies:
     specifier: ^0.5.1
     version: 0.5.1(vite@5.0.10)
   vite-plugin-fake-server:
-    specifier: ^2.0.1
-    version: 2.0.1
+    specifier: 2.0.0
+    version: 2.0.0
   vite-plugin-remove-console:
     specifier: ^2.2.0
     version: 2.2.0
@@ -8672,8 +8672,8 @@ packages:
       - supports-color
     dev: true
 
-  /vite-plugin-fake-server@2.0.1:
-    resolution: {integrity: sha512-uQgOPHtMIrgVdpuJa2zQ+v6bMlSqczhlb4xfTE+K0lDfKTeJ+Z795HXYv2BItNPFYJ5E5wOlZ8MLDzjudK+22A==}
+  /vite-plugin-fake-server@2.0.0:
+    resolution: {integrity: sha512-RCKS7te5lNzJFEQqPEaMqthwJhYaYMUMAPj7no4tmirqf5YEd6b4t7JMSGTkP2HPSplPE/uDQ56k9XjNreq2CQ==}
     dependencies:
       bundle-import: 0.0.1
       chokidar: 3.5.3

+ 1 - 1
src/layout/components/notice/noticeList.vue

@@ -19,5 +19,5 @@ const props = defineProps({
       :noticeItem="item"
     />
   </div>
-  <el-empty description="暂无消息" />
+  <el-empty v-else description="暂无消息" />
 </template>

+ 9 - 1
src/layout/components/sidebar/vertical.vue

@@ -18,7 +18,14 @@ const showLogo = ref(
   )?.showLogo ?? true
 );
 
-const { device, pureApp, isCollapse, menuSelect, toggleSideBar } = useNav();
+const {
+  device,
+  pureApp,
+  isCollapse,
+  tooltipEffect,
+  menuSelect,
+  toggleSideBar
+} = useNav();
 
 const subMenuData = ref([]);
 
@@ -91,6 +98,7 @@ onBeforeUnmount(() => {
         router
         unique-opened
         mode="vertical"
+        :popper-effect="tooltipEffect"
         class="outer-most select-none"
         :collapse="isCollapse"
         :default-active="defaultActive"