Badge add type prop, close #3425
This commit is contained in:
parent
457fe0874c
commit
cc27c42a0d
4 changed files with 51 additions and 2 deletions
|
@ -42,6 +42,11 @@
|
|||
return oneOf(value, ['success', 'processing', 'default', 'error', 'warning']);
|
||||
}
|
||||
},
|
||||
type: {
|
||||
validator (value) {
|
||||
return oneOf(value, ['success', 'primary', 'normal', 'error', 'warning', 'info']);
|
||||
}
|
||||
},
|
||||
offset: {
|
||||
type: Array
|
||||
}
|
||||
|
@ -58,7 +63,8 @@
|
|||
`${prefixCls}-count`,
|
||||
{
|
||||
[`${this.className}`]: !!this.className,
|
||||
[`${prefixCls}-count-alone`]: this.alone
|
||||
[`${prefixCls}-count-alone`]: this.alone,
|
||||
[`${prefixCls}-count-${this.type}`]: !!this.type
|
||||
}
|
||||
];
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue