1
0
Vben 4 жил өмнө
parent
commit
f4af231172

+ 4 - 2
build/vite/plugin/hmr.ts

@@ -13,8 +13,10 @@ export function configHmrPlugin(): Plugin {
       if (file.match(/xml$/)) return [];
 
       modules.forEach((m) => {
-        m.importedModules = new Set();
-        m.importers = new Set();
+        if (!m.url.match(/\.(css|less)/)) {
+          m.importedModules = new Set();
+          m.importers = new Set();
+        }
       });
 
       return modules;

+ 2 - 2
src/design/ant/btn.less

@@ -185,7 +185,7 @@
     }
   }
 
-  &-ghost {
+  &-background-ghost {
     color: @button-ghost-color;
     background-color: transparent;
     border-color: @button-ghost-color;
@@ -193,7 +193,7 @@
 
     &:hover,
     &:focus {
-      color: @button-ghost-hover-color;
+      color: @button-ghost-hover-color !important;
       background-color: @button-ghost-hover-bg-color;
       border-color: @button-ghost-hover-color;
     }