@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
11 lines (10 loc) • 6.87 kB
JavaScript
var IconsAntdTags=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-_",L=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},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=L(k(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,r,o,e;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="M18.4347826,33.7123746 L35.1250836,17.0274247 L34.1083612,5.00869565 L22.0896321,3.99197324 L5.3993311,20.6822742 L18.4347826,33.7123746 Z M24.6421405,11.4782609 C24.8780506,10.5921892 25.5701156,9.90012421 26.4561873,9.66421405 C27.3444816,9.42876254 28.2862876,9.68026756 28.9391304,10.3277592 C29.5889429,10.9768906 29.8420356,11.9239472 29.6026756,12.8107023 C29.3667654,13.6967741 28.6747005,14.388839 27.7886288,14.6247492 C26.9003344,14.8602007 25.9585284,14.6086957 25.3056856,13.961204 C24.6595204,13.3099725 24.4069891,12.3650166 24.6421405,11.4782609 L24.6421405,11.4782609 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[1],`"/>
<path d="M18.3866221,38.9886288 C18.2956522,38.9779264 18.2046823,38.9351171 18.1351171,38.8655518 L0.251505017,20.9819398 C0.085689853,20.8144813 0.085689853,20.5447161 0.251505017,20.3772575 L20.4896321,0.139130435 C20.5538462,0.0695652174 20.6448161,0.0267558528 20.7411371,0.0160535117 L20.7197324,0.0160535117 C20.5966555,0.00535117057 20.4682274,0.0481605351 20.3826087,0.139130435 L0.144481605,20.3772575 C-0.0213335584,20.5447161 -0.0213335584,20.8144813 0.144481605,20.9819398 L18.0280936,38.8655518 C18.1244147,38.9672241 18.258194,39.0046823 18.3866221,38.9886288 L18.3866221,38.9886288 Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[1],`"/>
<path d="M40.4923077,25.4608696 L38.3732441,23.3471572 C38.2057856,23.181342 37.9360204,23.181342 37.7685619,23.3471572 L18.3973244,42.6809365 L5.68294314,29.9986622 C5.51548459,29.832847 5.24571942,29.832847 5.07826087,29.9986622 L2.95919732,32.1123746 C2.79338216,32.2798331 2.79338216,32.5495983 2.95919732,32.7170569 L15.9732441,45.709699 L18.0923077,47.8234114 C18.258194,47.9892977 18.5311037,47.9892977 18.69699,47.8234114 L40.4923077,26.0655518 C40.658194,25.8996656 40.658194,25.6267559 40.4923077,25.4608696 L40.4923077,25.4608696 Z M27.7886288,14.6247492 C28.6747005,14.388839 29.3667654,13.6967741 29.6026756,12.8107023 C29.8381271,11.922408 29.5866221,10.980602 28.9391304,10.3277592 C28.289999,9.67794673 27.3429424,9.42485403 26.4561873,9.66421405 C25.5701156,9.90012421 24.8780506,10.5921892 24.6421405,11.4782609 C24.406689,12.3665552 24.658194,13.3083612 25.3056856,13.961204 C25.9569171,14.6073692 26.901873,14.8599005 27.7886288,14.6247492 L27.7886288,14.6247492 Z" fill="`).concat((o=l.colors)===null||o===void 0?void 0:o[0],`"/>
<path d="M0.251505017,20.3772575 C0.085689853,20.5447161 0.085689853,20.8144813 0.251505017,20.9819398 L18.1351171,38.8655518 C18.2046823,38.9351171 18.290301,38.9779264 18.3866221,38.9886288 C18.5150502,39.0046823 18.6434783,38.9618729 18.7397993,38.8655518 L38.9779264,18.6220736 C39.0688963,18.5311037 39.1117057,18.4080268 39.1010033,18.2849498 L37.7364548,2.15652174 C37.6989967,1.73913043 37.3725753,1.41270903 36.9551839,1.37525084 L20.8267559,0.0160535117 L20.7411371,0.0160535117 C20.6448161,0.0267558528 20.5591973,0.0695652174 20.4896321,0.139130435 L0.251505017,20.3772575 Z M22.0896321,3.99197324 L34.1083612,5.00869565 L35.1250836,17.0274247 L18.4347826,33.7123746 L5.3993311,20.6822742 L22.0896321,3.99197324 Z" fill="`).concat((e=l.colors)===null||e===void 0?void 0:e[0],`"/>
</svg>`)},y=A("antd-tags",!1,C);return c.default=y,c.getIconAntdTagsSvgHtml=C,Object.defineProperty(c,"__esModule",{value:!0}),c}({});