diff --git a/build/vite/plugin/theme.ts b/build/vite/plugin/theme.ts index a05a8d647..f8d968ae7 100644 --- a/build/vite/plugin/theme.ts +++ b/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}`; },