update Notice Icons

This commit is contained in:
梁灏 2018-06-25 13:53:37 +08:00
parent f9d5b27ba9
commit d3f31e39df

View file

@ -57,11 +57,12 @@ function notice (type, options) {
`;
} else {
const iconType = iconTypes[type];
const outlineIcon = with_desc === '' ? '' : '-outline';
withIcon = true;
content = `
<div class="${prefixCls}-custom-content ${prefixCls}-with-icon ${prefixCls}-with-${type} ${with_desc}">
<span class="${prefixCls}-icon ${prefixCls}-icon-${type}">
<i class="${iconPrefixCls} ${iconPrefixCls}-${iconType}"></i>
<i class="${iconPrefixCls} ${iconPrefixCls}-${iconType}${outlineIcon}"></i>
</span>
<div class="${prefixCls}-title">${title}</div>
<div class="${prefixCls}-desc">${desc}</div>