Radio add size prop
This commit is contained in:
parent
77f1cc2e34
commit
4d54542083
5 changed files with 73 additions and 21 deletions
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
size: {
|
||||
validator (value) {
|
||||
return oneOf(value, ['small', 'large']);
|
||||
return oneOf(value, ['small', 'large', 'default']);
|
||||
}
|
||||
},
|
||||
type: {
|
||||
|
@ -44,6 +44,7 @@
|
|||
`${prefixCls}`,
|
||||
{
|
||||
[`${prefixCls}-${this.size}`]: !!this.size,
|
||||
[`ivu-radio-${this.size}`]: !!this.size,
|
||||
[`${prefixCls}-${this.type}`]: !!this.type,
|
||||
[`${prefixCls}-vertical`]: this.vertical
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue