|
@ -94,8 +94,6 @@ const Badge: CompoundedComponent = ({ |
|
|
const isDotRef = useRef(showAsDot); |
|
|
const isDotRef = useRef(showAsDot); |
|
|
if (!isHidden) { |
|
|
if (!isHidden) { |
|
|
isDotRef.current = showAsDot; |
|
|
isDotRef.current = showAsDot; |
|
|
} else { |
|
|
|
|
|
isDotRef.current = false; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// =============================== Styles ===============================
|
|
|
// =============================== Styles ===============================
|
|
@ -188,8 +186,8 @@ const Badge: CompoundedComponent = ({ |
|
|
|
|
|
|
|
|
const scrollNumberCls = classNames({ |
|
|
const scrollNumberCls = classNames({ |
|
|
[`${prefixCls}-dot`]: isDot, |
|
|
[`${prefixCls}-dot`]: isDot, |
|
|
[`${prefixCls}-count`]: !isDot && !isHidden, |
|
|
[`${prefixCls}-count`]: !isDot, |
|
|
[`${prefixCls}-count-sm`]: !isDot && !isHidden && size === 'small', |
|
|
[`${prefixCls}-count-sm`]: size === 'small', |
|
|
[`${prefixCls}-multiple-words`]: |
|
|
[`${prefixCls}-multiple-words`]: |
|
|
!isDot && displayCount && displayCount.toString().length > 1, |
|
|
!isDot && displayCount && displayCount.toString().length > 1, |
|
|
[`${prefixCls}-status-${status}`]: !!status, |
|
|
[`${prefixCls}-status-${status}`]: !!status, |
|
|