@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
8 lines (7 loc) • 7.3 kB
JavaScript
var IconsAntdBarcode=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,a,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(a=l.charCodeAt(o++),o===e){r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(a&240)>>4),r+=i.charAt((a&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=i.charAt(n>>2),r+=i.charAt((n&3)<<4|(a&240)>>4),r+=i.charAt((a&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 a=f(h(),o,e),u=r(a),i=g(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;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="M2.99665552,5 L0.428093645,5 C0.19264214,5 0,5.19264214 0,5.42809364 L0,42.2441472 C0,42.4795987 0.19264214,42.6722408 0.428093645,42.6722408 L2.99665552,42.6722408 C3.23210702,42.6722408 3.42474916,42.4795987 3.42474916,42.2441472 L3.42474916,5.42809364 C3.42474916,5.19264214 3.23210702,5 2.99665552,5 Z M47.5719064,5 L45.0033445,5 C44.767893,5 44.5752508,5.19264214 44.5752508,5.42809364 L44.5752508,42.2441472 C44.5752508,42.4795987 44.767893,42.6722408 45.0033445,42.6722408 L47.5719064,42.6722408 C47.8073579,42.6722408 48,42.4795987 48,42.2441472 L48,5.42809364 C48,5.19264214 47.8073579,5 47.5719064,5 Z M7.27759197,35.8227425 L13.270903,35.8227425 C13.5063545,35.8227425 13.6989967,35.6301003 13.6989967,35.3946488 L13.6989967,5.42809364 C13.6989967,5.19264214 13.5063545,5 13.270903,5 L7.27759197,5 C7.04214047,5 6.84949833,5.19264214 6.84949833,5.42809364 L6.84949833,35.3946488 C6.84949833,35.6301003 7.04214047,35.8227425 7.27759197,35.8227425 Z M24.4548495,35.8227425 L27.0234114,35.8227425 C27.2588629,35.8227425 27.451505,35.6301003 27.451505,35.3946488 L27.451505,5.42809364 C27.451505,5.19264214 27.2588629,5 27.0234114,5 L24.4548495,5 C24.219398,5 24.0267559,5.19264214 24.0267559,5.42809364 L24.0267559,35.3946488 C24.0267559,35.6301003 24.219398,35.8227425 24.4548495,35.8227425 Z M31.1973244,35.8227425 L40.722408,35.8227425 C40.9578595,35.8227425 41.1505017,35.6301003 41.1505017,35.3946488 L41.1505017,5.42809364 C41.1505017,5.19264214 40.9578595,5 40.722408,5 L31.1973244,5 C30.9618729,5 30.7692308,5.19264214 30.7692308,5.42809364 L30.7692308,35.3946488 C30.7692308,35.6301003 30.9618729,35.8227425 31.1973244,35.8227425 Z M17.5518395,35.8227425 L20.1204013,35.8227425 C20.3558528,35.8227425 20.548495,35.6301003 20.548495,35.3946488 L20.548495,5.42809364 C20.548495,5.19264214 20.3558528,5 20.1204013,5 L17.5518395,5 C17.316388,5 17.1237458,5.19264214 17.1237458,5.42809364 L17.1237458,35.3946488 C17.1237458,35.6301003 17.316388,35.8227425 17.5518395,35.8227425 Z M13.3244147,39.2474916 L7.33110368,39.2474916 C7.09565217,39.2474916 6.90301003,39.4401338 6.90301003,39.6755853 L6.90301003,42.2441472 C6.90301003,42.4795987 7.09565217,42.6722408 7.33110368,42.6722408 L13.3244147,42.6722408 C13.5598662,42.6722408 13.7525084,42.4795987 13.7525084,42.2441472 L13.7525084,39.6755853 C13.7525084,39.4401338 13.5598662,39.2474916 13.3244147,39.2474916 Z M27.0769231,39.2474916 L24.5083612,39.2474916 C24.2729097,39.2474916 24.0802676,39.4401338 24.0802676,39.6755853 L24.0802676,42.2441472 C24.0802676,42.4795987 24.2729097,42.6722408 24.5083612,42.6722408 L27.0769231,42.6722408 C27.3123746,42.6722408 27.5050167,42.4795987 27.5050167,42.2441472 L27.5050167,39.6755853 C27.5050167,39.4401338 27.3123746,39.2474916 27.0769231,39.2474916 Z M40.7759197,39.2474916 L31.2508361,39.2474916 C31.0153846,39.2474916 30.8227425,39.4401338 30.8227425,39.6755853 L30.8227425,42.2441472 C30.8227425,42.4795987 31.0153846,42.6722408 31.2508361,42.6722408 L40.7759197,42.6722408 C41.0113712,42.6722408 41.2040134,42.4795987 41.2040134,42.2441472 L41.2040134,39.6755853 C41.2040134,39.4401338 41.0113712,39.2474916 40.7759197,39.2474916 Z M20.173913,39.2474916 L17.6053512,39.2474916 C17.3698997,39.2474916 17.1772575,39.4401338 17.1772575,39.6755853 L17.1772575,42.2441472 C17.1772575,42.4795987 17.3698997,42.6722408 17.6053512,42.6722408 L20.173913,42.6722408 C20.4093645,42.6722408 20.6020067,42.4795987 20.6020067,42.2441472 L20.6020067,39.6755853 C20.6020067,39.4401338 20.4093645,39.2474916 20.173913,39.2474916 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/>
</svg>`)},y=A("antd-barcode",!1,c);return C.default=y,C.getIconAntdBarcodeSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});