diff --git a/components/badge/index.jsx b/components/badge/index.jsx index e29dd9e6f9..052a73f4ea 100644 --- a/components/badge/index.jsx +++ b/components/badge/index.jsx @@ -21,7 +21,7 @@ export default class Badge extends React.Component { } render() { - let { count, prefixCls, overflowCount, className, style, children, dot } = this.props; + let { count, prefixCls, overflowCount, className, style, children, dot, ...restProps } = this.props; count = count > overflowCount ? `${overflowCount}+` : count; @@ -40,7 +40,7 @@ export default class Badge extends React.Component { }); return ( - + {children}