fixed el-alert: if using slot, icon should use 'isBigIcon' class

pull/6623/head
leezng 2017-08-21 18:14:06 +08:00 committed by 杨奕
parent 735ef1ac51
commit f7b08a9997
1 changed files with 2 additions and 2 deletions

View File

@ -73,11 +73,11 @@
},
isBigIcon() {
return this.description ? 'is-big' : '';
return this.description || this.$slots.default ? 'is-big' : '';
},
isBoldTitle() {
return this.description ? 'is-bold' : '';
return this.description || this.$slots.default ? 'is-bold' : '';
}
}
};