style: fix basicButton style

This commit is contained in:
无木
2021-08-16 17:20:22 +08:00
parent b7487675ce
commit c420174c1d
3 changed files with 152 additions and 127 deletions

View File

@@ -35,10 +35,11 @@ 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;
default:
if (s.indexOf('.ant-btn') >= -1) {
// 按钮被重新定制过需要过滤掉class防止覆盖
return s;
}
}
return s.startsWith('[data-theme') ? s : `[data-theme] ${s}`;
},