This commit is contained in:
梁灏 2019-03-05 09:18:44 +08:00
parent b778e4ff4f
commit f308dcac80
3 changed files with 16 additions and 3 deletions

View file

@ -31,6 +31,12 @@
dashed: {
type: Boolean,
default: false,
},
size: {
validator (value) {
return oneOf(value, ['small', 'default']);
},
default: 'default'
}
},
computed: {
@ -41,6 +47,7 @@
return [
`${prefixCls}`,
`${prefixCls}-${this.type}`,
`${prefixCls}-${this.size}`,
{
[`${prefixCls}-with-text`]: this.hasSlot && this.orientation === 'center',
[`${prefixCls}-with-text-${this.orientation}`]: this.hasSlot,