mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
Badge add scrollNumberPrefixCls (#7882)
* badge add scrollNumberPrefixCls * badge add scrollNumberPrefixCls
This commit is contained in:
parent
d4a5606b92
commit
0a6475cb0d
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user