Tag add new prop size

This commit is contained in:
梁灏 2019-09-16 17:32:52 +08:00
parent 04f5779c02
commit 8a8a1b4c40
3 changed files with 26 additions and 4 deletions

View file

@ -50,6 +50,13 @@
fade: {
type: Boolean,
default: true
},
// 4.0.0
size: {
validator (value) {
return oneOf(value, ['default', 'medium', 'large']);
},
default: 'default'
}
},
data () {
@ -61,6 +68,7 @@
classes () {
return [
`${prefixCls}`,
`${prefixCls}-size-${this.size}`,
{
[`${prefixCls}-${this.color}`]: !!this.color && oneOf(this.color, initColorList),
[`${prefixCls}-${this.type}`]: !!this.type,
@ -144,4 +152,4 @@
}
}
};
</script>
</script>