From e3cc7ace161f8a0a66f3a9c39fb5274c3a0d487d Mon Sep 17 00:00:00 2001 From: liaoxuezhi Date: Wed, 25 Sep 2019 10:45:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E7=A7=8D=E6=9C=BA?= =?UTF-8?q?=E5=88=B6=E5=8F=AF=E4=BB=A5=E8=AE=BE=E7=BD=AE=E7=B1=BB=E5=90=8D?= =?UTF-8?q?=E5=A4=A7=E5=86=99=E5=BC=80=E5=A4=B4,=E4=BD=86=E6=98=AF?= =?UTF-8?q?=E4=B8=8D=E8=87=AA=E5=8A=A8=E5=8A=A0=E4=B8=BB=E9=A2=98=E5=89=8D?= =?UTF-8?q?=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/theme.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme.tsx b/src/theme.tsx index 7ac3ba8e2..169eccc44 100644 --- a/src/theme.tsx +++ b/src/theme.tsx @@ -48,7 +48,7 @@ export function makeClassnames(ns?: string) { const fn = (...classes: ClassValue[]) => { const str = cx(...(classes as any)); - return str && ns ? str.replace(/(^|\s)([A-Z])/g, '$1' + ns + '$2') : str || ''; + return str && ns ? str.replace(/(^|\s)([A-Z])/g, '$1' + ns + '$2').replace(/(^|\s)\:/g, '$1') : str || ''; }; ns && (fns[ns] = fn);