| | |
| | | MkIcons[type](resProps) |
| | | ) |
| | | } else { |
| | | return <span className={'anticon anticon-mk ' + (resProps.className || '')} style={resProps.style || null} dangerouslySetInnerHTML={{ __html: type }}></span> |
| | | let svg = type |
| | | |
| | | if (!/<svg/.test(svg)) { |
| | | try { |
| | | svg = window.decodeURIComponent(window.atob(svg)) |
| | | if (!/<svg/.test(svg)) { |
| | | svg = '' |
| | | } |
| | | } catch (e) { |
| | | svg = '' |
| | | } |
| | | } |
| | | |
| | | return <span className={'anticon anticon-mk ' + (resProps.className || '')} style={resProps.style || null} dangerouslySetInnerHTML={{ __html: svg }}></span> |
| | | } |
| | | } |
| | | } |