Ver Fonte

fix: fixed basicButton primary style

修正BasicButton primary类型的样式
无木 há 3 anos atrás
pai
commit
1b577922e7
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      build/vite/plugin/theme.ts

+ 4 - 0
build/vite/plugin/theme.ts

@@ -35,6 +35,10 @@ export function configThemePlugin(isBuild: boolean): Plugin[] {
             return s;
           case '.ant-select-item-option-selected:not(.ant-select-item-option-disabled)':
             return s;
+          case '.ant-btn-primary':
+          case '.ant-btn:hover':
+          case '.ant-btn-primary:hover':
+            return s;
         }
         return s.startsWith('[data-theme') ? s : `[data-theme] ${s}`;
       },