Merge pull request #15264 from ant-design/xiaohuoni-patch-1

change badge text types
This commit is contained in:
偏右 2019-03-08 00:30:42 +08:00 committed by GitHub
commit bd76dc6b9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}