fix: style problem of checkbox component when switching themes; 🐛

修复:切换主题时 checkbox 的样式问题;
This commit is contained in:
iczer
2020-07-08 23:00:54 +08:00
parent 4ce9622589
commit cfd334a4b4
2 changed files with 11 additions and 3 deletions

View File

@@ -13,7 +13,12 @@
* 注意: value 不能设置为 true
*/
const cssResolve = {
'.ant-checkbox-checked .ant-checkbox-inner::after': false,
'.ant-checkbox-checked .ant-checkbox-inner::after': {
resolve(cssText, cssObj) {
cssObj.rules.push('border-top:0', 'border-left:0')
return cssObj.toText()
}
},
'.ant-menu-dark .ant-menu-inline.ant-menu-sub': {
resolve(cssText, cssObj) {
cssObj.rules = cssObj.rules.filter(rule => rule.indexOf('box-shadow') == -1)