Skip to content

Commit 0b85b84

Browse files
author
鱼见
authored
fix(badge): badge props count default value error (#6433)
1 parent 4e277ea commit 0b85b84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/badge/Badge.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { isPresetColor } from '../_util/colors';
1717

1818
export const badgeProps = () => ({
1919
/** Number to show in badge */
20-
count: PropTypes.any,
20+
count: PropTypes.any.def(null),
2121
showZero: { type: Boolean, default: undefined },
2222
/** Max count to show */
2323
overflowCount: { type: Number, default: 99 },

0 commit comments

Comments
 (0)