Badge add scrollNumberPrefixCls (#7882)

* badge add scrollNumberPrefixCls

* badge add scrollNumberPrefixCls
This commit is contained in:
vgeyi 2017-10-14 14:29:18 +08:00 committed by 偏右
parent d4a5606b92
commit 0a6475cb0d

View File

@ -15,6 +15,7 @@ export interface BadgeProps {
dot?: boolean;
style?: React.CSSProperties;
prefixCls?: string;
scrollNumberPrefixCls?: string;
className?: string;
status?: 'success' | 'processing' | 'default' | 'error' | 'warning';
text?: string;
@ -23,6 +24,7 @@ export interface BadgeProps {
export default class Badge extends React.Component<BadgeProps, any> {
static defaultProps = {
prefixCls: 'ant-badge',
scrollNumberPrefixCls: 'ant-scroll-number',
count: null,
showZero: false,
dot: false,
@ -44,6 +46,7 @@ export default class Badge extends React.Component<BadgeProps, any> {
count,
showZero,
prefixCls,
scrollNumberPrefixCls,
overflowCount,
className,
style,
@ -92,6 +95,7 @@ export default class Badge extends React.Component<BadgeProps, any> {
const scrollNumber = hidden ? null : (
<ScrollNumber
prefixCls={scrollNumberPrefixCls}
data-show={!hidden}
className={scrollNumberCls}
count={displayCount}