From 85a293eacb1a0a70887f2e9d7d336f8b63f36b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B0=8F=E8=81=AA?= Date: Fri, 8 Mar 2019 00:21:53 +0800 Subject: [PATCH] change badge text types MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ```jsx 未响应} /> ``` --- components/badge/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/badge/index.tsx b/components/badge/index.tsx index 0095782c74..2e930fb0e9 100644 --- a/components/badge/index.tsx +++ b/components/badge/index.tsx @@ -20,7 +20,7 @@ export interface BadgeProps { scrollNumberPrefixCls?: string; className?: string; status?: 'success' | 'processing' | 'default' | 'error' | 'warning'; - text?: string; + text?: string | JSX.Element; offset?: [number | string, number | string]; title?: string; }