Commit d3f31e39df17d295f624b81aaf5e2119fd863ef5

Authored by 梁灏
1 parent f9d5b27b

update Notice Icons

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/components/notice/index.js
@@ -57,11 +57,12 @@ function notice (type, options) { @@ -57,11 +57,12 @@ function notice (type, options) {
57 `; 57 `;
58 } else { 58 } else {
59 const iconType = iconTypes[type]; 59 const iconType = iconTypes[type];
  60 + const outlineIcon = with_desc === '' ? '' : '-outline';
60 withIcon = true; 61 withIcon = true;
61 content = ` 62 content = `
62 <div class="${prefixCls}-custom-content ${prefixCls}-with-icon ${prefixCls}-with-${type} ${with_desc}"> 63 <div class="${prefixCls}-custom-content ${prefixCls}-with-icon ${prefixCls}-with-${type} ${with_desc}">
63 <span class="${prefixCls}-icon ${prefixCls}-icon-${type}"> 64 <span class="${prefixCls}-icon ${prefixCls}-icon-${type}">
64 - <i class="${iconPrefixCls} ${iconPrefixCls}-${iconType}"></i> 65 + <i class="${iconPrefixCls} ${iconPrefixCls}-${iconType}${outlineIcon}"></i>
65 </span> 66 </span>
66 <div class="${prefixCls}-title">${title}</div> 67 <div class="${prefixCls}-title">${title}</div>
67 <div class="${prefixCls}-desc">${desc}</div> 68 <div class="${prefixCls}-desc">${desc}</div>