From 5af432cd907c47a5d7e580d38897966221318e3b Mon Sep 17 00:00:00 2001 From: Guyi Date: Fri, 19 Nov 2021 20:32:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0jira=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E8=A1=A5=E5=85=85cls=E5=92=8Ccss=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/shims-tsx.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typescript/shims-tsx.ts b/typescript/shims-tsx.ts index aa76c2e9d..9b8abdb03 100644 --- a/typescript/shims-tsx.ts +++ b/typescript/shims-tsx.ts @@ -24,7 +24,7 @@ interface AdditionalProps { } interface ElementClassProps extends UIProps { - cls: string; + cls: string | (() => string); extraCls: string; ref: (ref: T) => void; listeners: { @@ -40,7 +40,7 @@ interface ElementClassProps extends UIProps { }; css: { [key: string]: any; - }; + } | (() => any); tagName: string; element: any; $testId: string;