Checkbox add border prop

This commit is contained in:
梁灏 2019-09-15 11:56:37 +08:00
parent e87939165e
commit cea1642e11
3 changed files with 56 additions and 2 deletions

View file

@ -70,6 +70,11 @@
},
name: {
type: String
},
// 4.0.0
border: {
type: Boolean,
default: false
}
},
data () {
@ -90,7 +95,8 @@
[`${prefixCls}-group-item`]: this.group,
[`${prefixCls}-wrapper-checked`]: this.currentValue,
[`${prefixCls}-wrapper-disabled`]: this.disabled,
[`${prefixCls}-${this.size}`]: !!this.size
[`${prefixCls}-${this.size}`]: !!this.size,
[`${prefixCls}-border`]: this.border
}
];
},