Fix badge props, close #3109

This commit is contained in:
afc163 2016-09-21 21:52:43 +08:00
parent 478dfd1767
commit 11b019667c

View File

@ -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 (
<span className={badgeCls} title={count} style={null}>
<span className={badgeCls} title={count} style={null} {...restProps}>
{children}
<Animate
component=""