UNPKG

@fe6/icon-img

Version:

Water Icon 的纯 HTML 图标

8 lines (7 loc) 5.96 kB
var IconsAntdQrcode=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"},L=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},h=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}},f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",g=function(l,t){for(var r="",o=0,e=l.length,n,s,u,i=t?p:f;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=h(L(),o,e),u=r(s),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="M21.25,0 L2,0 C0.89375,0 0,0.89375 0,2 L0,21.25 C0,21.525 0.225,21.75 0.5,21.75 L21.25,21.75 C21.525,21.75 21.75,21.525 21.75,21.25 L21.75,0.5 C21.75,0.225 21.525,0 21.25,0 Z M17.75,17.75 L4,17.75 L4,4 L17.75,4 L17.75,17.75 Z M9.125,13.125 L12.625,13.125 C12.9,13.125 13.125,12.9 13.125,12.625 L13.125,9.125 C13.125,8.85 12.9,8.625 12.625,8.625 L9.125,8.625 C8.85,8.625 8.625,8.85 8.625,9.125 L8.625,12.625 C8.625,12.9 8.85,13.125 9.125,13.125 Z M21.25,26.25 L0.5,26.25 C0.225,26.25 0,26.475 0,26.75 L0,46 C0,47.10625 0.89375,48 2,48 L21.25,48 C21.525,48 21.75,47.775 21.75,47.5 L21.75,26.75 C21.75,26.475 21.525,26.25 21.25,26.25 Z M17.75,44 L4,44 L4,30.25 L17.75,30.25 L17.75,44 Z M9.125,39.375 L12.625,39.375 C12.9,39.375 13.125,39.15 13.125,38.875 L13.125,35.375 C13.125,35.1 12.9,34.875 12.625,34.875 L9.125,34.875 C8.85,34.875 8.625,35.1 8.625,35.375 L8.625,38.875 C8.625,39.15 8.85,39.375 9.125,39.375 Z M46,0 L26.75,0 C26.475,0 26.25,0.225 26.25,0.5 L26.25,21.25 C26.25,21.525 26.475,21.75 26.75,21.75 L47.5,21.75 C47.775,21.75 48,21.525 48,21.25 L48,2 C48,0.89375 47.10625,0 46,0 Z M44,17.75 L30.25,17.75 L30.25,4 L44,4 L44,17.75 Z M35.375,13.125 L38.875,13.125 C39.15,13.125 39.375,12.9 39.375,12.625 L39.375,9.125 C39.375,8.85 39.15,8.625 38.875,8.625 L35.375,8.625 C35.1,8.625 34.875,8.85 34.875,9.125 L34.875,12.625 C34.875,12.9 35.1,13.125 35.375,13.125 Z M47.5,26.25 L44.5,26.25 C44.225,26.25 44,26.475 44,26.75 L44,35.125 L39.125,35.125 L39.125,26.75 C39.125,26.475 38.9,26.25 38.625,26.25 L26.75,26.25 C26.475,26.25 26.25,26.475 26.25,26.75 L26.25,47.5 C26.25,47.775 26.475,48 26.75,48 L29.75,48 C30.025,48 30.25,47.775 30.25,47.5 L30.25,32.25 L35.125,32.25 L35.125,38.625 C35.125,38.9 35.35,39.125 35.625,39.125 L47.5,39.125 C47.775,39.125 48,38.9 48,38.625 L48,26.75 C48,26.475 47.775,26.25 47.5,26.25 Z M38.625,44 L35.625,44 C35.35,44 35.125,44.225 35.125,44.5 L35.125,47.5 C35.125,47.775 35.35,48 35.625,48 L38.625,48 C38.9,48 39.125,47.775 39.125,47.5 L39.125,44.5 C39.125,44.225 38.9,44 38.625,44 Z M47.5,44 L44.5,44 C44.225,44 44,44.225 44,44.5 L44,47.5 C44,47.775 44.225,48 44.5,48 L47.5,48 C47.775,48 48,47.775 48,47.5 L48,44.5 C48,44.225 47.775,44 47.5,44 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[0],`"/> </svg>`)},y=A("antd-qrcode",!1,c);return C.default=y,C.getIconAntdQrcodeSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});