@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
8 lines (7 loc) • 5.99 kB
JavaScript
var IconsAntdBars=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}},p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",k=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?g:p;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},m=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},L=v,S=function(){return L},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=k(m(u)),d="data:image/svg+xml;base64,".concat(i);return o!=null&&o.base64?d:'<span class="'.concat(n.join(" "),`">
<img class="`).concat(e.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},c=function(l){var t;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="M47.5294118,5.17647064 L13.1764706,5.17647064 C12.9176471,5.17647064 12.7058824,5.38823534 12.7058824,5.64705887 L12.7058824,8.94117652 C12.7058824,9.20000005 12.9176471,9.41176475 13.1764706,9.41176475 L47.5294118,9.41176475 C47.7882353,9.41176475 48,9.20000005 48,8.94117652 L48,5.64705887 C48,5.38823534 47.7882353,5.17647064 47.5294118,5.17647064 Z M47.5294118,21.882353 L13.1764706,21.882353 C12.9176471,21.882353 12.7058824,22.0941177 12.7058824,22.3529412 L12.7058824,25.6470589 C12.7058824,25.9058824 12.9176471,26.1176471 13.1764706,26.1176471 L47.5294118,26.1176471 C47.7882353,26.1176471 48,25.9058824 48,25.6470589 L48,22.3529412 C48,22.0941177 47.7882353,21.882353 47.5294118,21.882353 Z M47.5294118,38.5882353 L13.1764706,38.5882353 C12.9176471,38.5882353 12.7058824,38.8 12.7058824,39.0588236 L12.7058824,42.3529412 C12.7058824,42.6117648 12.9176471,42.8235295 13.1764706,42.8235295 L47.5294118,42.8235295 C47.7882353,42.8235295 48,42.6117648 48,42.3529412 L48,39.0588236 C48,38.8 47.7882353,38.5882353 47.5294118,38.5882353 Z M0,7.2941177 C0,8.47099259 0.627855255,9.55846985 1.64705881,10.1469073 C2.66626236,10.7353448 3.92197293,10.7353448 4.94117648,10.1469073 C5.96038004,9.55846985 6.58823529,8.47099259 6.58823529,7.2941177 C6.58823529,6.1172428 5.96038004,5.02976554 4.94117648,4.44132809 C3.92197293,3.85289064 2.66626236,3.85289064 1.64705881,4.44132809 C0.627855255,5.02976554 0,6.1172428 0,7.2941177 L0,7.2941177 Z M0,24 C0,25.1768749 0.627855255,26.2643522 1.64705881,26.8527897 C2.66626236,27.4412271 3.92197293,27.4412271 4.94117648,26.8527897 C5.96038004,26.2643522 6.58823529,25.1768749 6.58823529,24 C6.58823529,22.8231252 5.96038004,21.7356479 4.94117648,21.1472104 C3.92197293,20.558773 2.66626236,20.558773 1.64705881,21.1472104 C0.627855255,21.7356479 0,22.8231252 0,24 L0,24 Z M0,40.7058824 C0,41.8827573 0.627855255,42.9702346 1.64705881,43.558672 C2.66626236,44.1471095 3.92197293,44.1471095 4.94117648,43.558672 C5.96038004,42.9702346 6.58823529,41.8827573 6.58823529,40.7058824 C6.58823529,39.5290075 5.96038004,38.4415302 4.94117648,37.8530928 C3.92197293,37.2646553 2.66626236,37.2646553 1.64705881,37.8530928 C0.627855255,38.4415302 0,39.5290075 0,40.7058824 L0,40.7058824 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/>
</svg>`)},y=A("antd-bars",!1,c);return C.default=y,C.getIconAntdBarsSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});