fix: the style problem of tree checkbox when toggling theme color; 🐛

修复:切换主题色时树选择框的样式问题;
master
chenghongxing 4 years ago
parent 57dc7fe2e8
commit 8130f9f250
  1. 12
      src/config/replacer/resolve.config.js

@ -19,12 +19,24 @@ const cssResolve = {
return cssObj.toText() return cssObj.toText()
} }
}, },
'.ant-tree-checkbox-checked .ant-tree-checkbox-inner::after': {
resolve(cssText, cssObj) {
cssObj.rules.push('border-top:0', 'border-left:0')
return cssObj.toText()
}
},
'.ant-checkbox-checked .ant-checkbox-inner:after': { '.ant-checkbox-checked .ant-checkbox-inner:after': {
resolve(cssText, cssObj) { resolve(cssText, cssObj) {
cssObj.rules.push('border-top:0', 'border-left:0') cssObj.rules.push('border-top:0', 'border-left:0')
return cssObj.toText() return cssObj.toText()
} }
}, },
'.ant-tree-checkbox-checked .ant-tree-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