RadioGroup add vertical props

RadioGroup add vertical props
This commit is contained in:
梁灏 2017-01-05 14:37:24 +08:00
parent a404bbaed3
commit 5722a6fb91
4 changed files with 20 additions and 10 deletions

View file

@ -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
}
];
}