From de05ab5f801538b702e6852ad050b03395a6a71a Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Wed, 8 Jul 2020 23:17:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20style=20problem=20of=20checkbox=20compon?= =?UTF-8?q?ent=20when=20switching=20themes;=20:bug:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=EF=BC=9A=E5=88=87=E6=8D=A2=E4=B8=BB=E9=A2=98=E6=97=B6=20checkb?= =?UTF-8?q?ox=20=E7=9A=84=E6=A0=B7=E5=BC=8F=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/replacer/resolve.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/replacer/resolve.config.js b/src/config/replacer/resolve.config.js index 6156725..662be2d 100644 --- a/src/config/replacer/resolve.config.js +++ b/src/config/replacer/resolve.config.js @@ -19,6 +19,12 @@ const cssResolve = { 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': { resolve(cssText, cssObj) { cssObj.rules = cssObj.rules.filter(rule => rule.indexOf('box-shadow') == -1)