@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
9 lines (8 loc) • 6.04 kB
JavaScript
var IconsAntdGold=function(c){"use strict";var v={size:"1em",spin:!1,strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{outStrokeColor:"#333",outFillColor:"transparent"},filled:{outStrokeColor:"#333",outFillColor:"#fff"},twoTone:{outStrokeColor:"#333",outFillColor:"#2f88ff"},multiColor:{outStrokeColor:"#333",outFillColor:"#2f88ff",innerStrokeColor:"#fff",innerFillColor:"#43ccf8"}},prefix:"cube"},h=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(l,t,r){var o=t?.colors||[],e=[],n=t?.theme||r.theme;switch(n){case"outline":e.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor),e.push(typeof o[0]=="string"?o[0]:r.colors.outline.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.outline.outFillColor);break;case"filled":e.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),e.push(typeof o[0]=="string"?o[0]:r.colors.filled.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor),e.push(typeof o[1]=="string"?o[1]:r.colors.filled.outFillColor);break;case"twoTone":e.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor),e.push(typeof o[0]=="string"?o[0]:r.colors.twoTone.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.twoTone.outFillColor);break;case"multiColor":e.push(typeof o[0]=="string"?o[0]:r.colors.multiColor.outStrokeColor),e.push(typeof o[1]=="string"?o[1]:r.colors.multiColor.outFillColor),e.push(typeof o[2]=="string"?o[2]:r.colors.multiColor.innerStrokeColor),e.push(typeof o[3]=="string"?o[3]:r.colors.multiColor.innerFillColor);break}return{size:t?.size||r.size,strokeWidth:t?.strokeWidth||r.strokeWidth,strokeLinecap:t?.strokeLinecap||r.strokeLinecap,strokeLinejoin:t?.strokeLinejoin||r.strokeLinejoin,colors:e,svg:t?.svg||"",id:l}},L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?p:L;o<e;){if(n=l.charCodeAt(o++)&255,o===e){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===e){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(s&240)>>4),r+=i.charAt((s&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(s&240)>>4),r+=i.charAt((s&15)<<2|(u&192)>>6),r+=i.charAt(u&63)}return r},k=function(l){var t="",r,o,e=l.length;for(r=0;r<e;r++)o=l.charCodeAt(r),o>=1&&o<=127?t+=l.charAt(r):o>2047?(t+=String.fromCharCode(224|o>>12&15),t+=String.fromCharCode(128|o>>6&63),t+=String.fromCharCode(128|o>>0&63)):(t+=String.fromCharCode(192|o>>6&31),t+=String.fromCharCode(128|o>>0&63));return t},m=v,S=function(){return m},A=function(l,t,r){return function(o){var e=S(),n=["".concat(e.prefix,"-icon")];n.push("".concat(e.prefix,"-icon-").concat(l)),t&&e.rtl&&n.push("".concat(e.prefix,"-icon-rtl")),o!=null&&o.spin&&n.push("".concat(e.prefix,"-icon-spin"));var s=f(h(),o,e),u=r(s),i=g(k(u)),C="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?C:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(e.prefix,'-icon-img" src="').concat(C,`" />
</span>`)}},d=function(l){var t,r;return`<?xml version="1.0" encoding="UTF-8"?>
<svg width="`.concat(l.size,'" height="').concat(l.size,`" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="48" height="48" fill="white" fill-opacity="0.01"/>
<path d="M19.3522843,26.3624365 C19.315736,26.1248731 19.1086294,25.9543147 18.871066,25.9543147 L2.93604061,25.9543147 C2.69847716,25.9543147 2.49137056,26.1248731 2.45482234,26.3624365 L0.00609137056,41.4690355 C0,41.493401 0,41.5238579 0,41.5482234 C0,41.8162437 0.21928934,42.035533 0.487309645,42.035533 L21.319797,42.035533 C21.3441624,42.035533 21.3746193,42.035533 21.3989848,42.0294416 C21.6670051,41.986802 21.8436548,41.7370558 21.8010152,41.4690355 L19.3522843,26.3624365 L19.3522843,26.3624365 Z M4.78172589,37.893401 L6.04263959,30.0964467 L15.7583756,30.0964467 L17.0192893,37.893401 L4.78172589,37.893401 Z M47.9939086,41.4690355 L45.5451777,26.3624365 C45.5086294,26.1248731 45.3015228,25.9543147 45.0639594,25.9543147 L29.128934,25.9543147 C28.8913706,25.9543147 28.684264,26.1248731 28.6477157,26.3624365 L26.1989848,41.4690355 C26.1928934,41.493401 26.1928934,41.5238579 26.1928934,41.5482234 C26.1928934,41.8162437 26.4121827,42.035533 26.680203,42.035533 L47.5126904,42.035533 C47.5370558,42.035533 47.5675127,42.035533 47.5918782,42.0294416 C47.8538071,41.986802 48.0365482,41.7370558 47.9939086,41.4690355 L47.9939086,41.4690355 Z M30.9746193,37.893401 L32.235533,30.0964467 L41.951269,30.0964467 L43.2121827,37.893401 L30.9746193,37.893401 Z M13.6446701,21.0812183 L34.4771574,21.0812183 C34.5015228,21.0812183 34.5319797,21.0812183 34.5563452,21.0751269 C34.8243655,21.0324873 35.0010152,20.7827411 34.9583756,20.5147208 L32.5096447,5.40812183 C32.4730964,5.17055838 32.2659898,5 32.0284264,5 L16.093401,5 C15.8558376,5 15.648731,5.17055838 15.6121827,5.40812183 L13.1634518,20.5147208 C13.1573604,20.5390863 13.1573604,20.5695431 13.1573604,20.5939086 C13.1573604,20.8619289 13.3766497,21.0812183 13.6446701,21.0812183 Z M19.2,9.14213198 L28.915736,9.14213198 L30.1766497,16.9390863 L17.9329949,16.9390863 L19.2,9.14213198 L19.2,9.14213198 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/>
<path d="M28.915736,9.14213198 L19.2,9.14213198 L17.9329949,16.9390863 L30.1766497,16.9390863 L28.915736,9.14213198 Z M6.04263959,30.0964467 L4.78172589,37.893401 L17.0192893,37.893401 L15.7583756,30.0964467 L6.04263959,30.0964467 Z M32.235533,30.0964467 L30.9746193,37.893401 L43.2121827,37.893401 L41.951269,30.0964467 L32.235533,30.0964467 Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[1],`"/>
</svg>`)},y=A("antd-gold",!1,d);return c.default=y,c.getIconAntdGoldSvgHtml=d,Object.defineProperty(c,"__esModule",{value:!0}),c}({});