Sfoglia il codice sorgente

Fix css variables.

Caeret 2 anni fa
parent
commit
03aa3a74e7
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/components/Menu/src/Menu.vue

+ 2 - 2
src/components/Menu/src/Menu.vue

@@ -220,10 +220,10 @@ export default defineComponent({
 
   // 水平菜单
   &__horizontal {
-    height: calc(~'var( - -top-tool-height)') !important;
+    height: calc(~'var(--top-tool-height)') !important;
 
     :deep(.@{elNamespace}-menu--horizontal) {
-      height: calc(~'var( - -top-tool-height)');
+      height: calc(~'var(--top-tool-height)');
       border-bottom: none;
       // 重新设置底部高亮颜色
       & > .@{elNamespace}-sub-menu.is-active {