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

修复:切换主题时 checkbox 的样式问题;
master
iczer 4 years ago
parent cfd334a4b4
commit de05ab5f80
  1. 6
      src/config/replacer/resolve.config.js

@ -19,6 +19,12 @@ const cssResolve = {
return cssObj.toText() return cssObj.toText()
} }
}, },
'.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': { '.ant-menu-dark .ant-menu-inline.ant-menu-sub': {
resolve(cssText, cssObj) { resolve(cssText, cssObj) {
cssObj.rules = cssObj.rules.filter(rule => rule.indexOf('box-shadow') == -1) cssObj.rules = cssObj.rules.filter(rule => rule.indexOf('box-shadow') == -1)

Loading…
Cancel
Save