fixed bug of notice when has render and title bug no desc

This commit is contained in:
zhigang.li 2018-01-05 15:23:46 +08:00
parent 6b2cd6742a
commit efc65a34ff
2 changed files with 17 additions and 2 deletions

View file

@ -45,7 +45,7 @@ function notice (type, options) {
let withIcon;
const with_desc = (options.render && !title) ? '' : desc === '' ? '' : ` ${prefixCls}-with-desc`;
const with_desc = (options.render && !title) ? '' : (desc || options.render) ? ` ${prefixCls}-with-desc` : '';
if (type == 'normal') {
withIcon = false;