mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
Fix badge props, close #3109
This commit is contained in:
parent
478dfd1767
commit
11b019667c
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user