RadioGroup add vertical props
RadioGroup add vertical props
This commit is contained in:
parent
a404bbaed3
commit
5722a6fb91
4 changed files with 20 additions and 10 deletions
|
@ -24,6 +24,10 @@
|
|||
validator (value) {
|
||||
return oneOf(value, ['button']);
|
||||
}
|
||||
},
|
||||
vertical: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -32,7 +36,8 @@
|
|||
`${prefixCls}`,
|
||||
{
|
||||
[`${prefixCls}-${this.size}`]: !!this.size,
|
||||
[`${prefixCls}-${this.type}`]: !!this.type
|
||||
[`${prefixCls}-${this.type}`]: !!this.type,
|
||||
[`${prefixCls}-vertical`]: this.vertical
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue