Ver Fonte

侧边栏颜色差异化

wuyi há 2 semanas atrás
pai
commit
bde8ca2855
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      src/components/NavMenuItem.vue

+ 3 - 0
src/components/NavMenuItem.vue

@@ -75,12 +75,15 @@ const visibleSubItems = computed(() => {
   padding: 0.5rem 1rem;
   cursor: pointer;
   margin: 0.25rem 1rem;
+  color: var(--p-text-color, var(--p-surface-900));
+  text-decoration: none;
   transition:
     background-color 0.3s,
     color 0.3s;
 
   &:hover {
     background-color: var(--p-surface-100);
+    color: var(--p-text-color, var(--p-surface-900));
   }
 
   &.active {