Alert add banner prop

Alert add banner prop
This commit is contained in:
梁灏 2017-01-16 15:01:35 +08:00
parent 7a737482f0
commit e49f796318
3 changed files with 13 additions and 4 deletions

View file

@ -36,7 +36,11 @@
showIcon: {
type: Boolean,
default: false
}
},
banner: {
type: Boolean,
default: false
},
},
data () {
return {
@ -51,7 +55,8 @@
`${prefixCls}-${this.type}`,
{
[`${prefixCls}-with-icon`]: this.showIcon,
[`${prefixCls}-with-desc`]: this.desc
[`${prefixCls}-with-desc`]: this.desc,
[`${prefixCls}-with-banner`]: this.banner
}
];
},