@fe6/icon-img
Version:
Water Icon 的纯 HTML 图标
9 lines (8 loc) • 5.91 kB
JavaScript
var IconsAntdSliders=function(C){"use strict";var L={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"},v=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},h=function(l,t,r){var o=t?.colors||[],e=[],i=t?.theme||r.theme;switch(i){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,i,s,u,n=t?p:f;o<e;){if(i=l.charCodeAt(o++)&255,o===e){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4),r+="==";break}if(s=l.charCodeAt(o++),o===e){r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2),r+="=";break}u=l.charCodeAt(o++),r+=n.charAt(i>>2),r+=n.charAt((i&3)<<4|(s&240)>>4),r+=n.charAt((s&15)<<2|(u&192)>>6),r+=n.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=L,S=function(){return m},A=function(l,t,r){return function(o){var e=S(),i=["".concat(e.prefix,"-icon")];i.push("".concat(e.prefix,"-icon-").concat(l)),t&&e.rtl&&i.push("".concat(e.prefix,"-icon-rtl")),o!=null&&o.spin&&i.push("".concat(e.prefix,"-icon-spin"));var s=h(v(),o,e),u=r(s),n=g(k(u)),d="data:image/svg+xml;base64,".concat(n);return o!=null&&o.base64?d:'<span class="'.concat(i.join(" "),`">
<img class="`).concat(e.prefix,'-icon-img" src="').concat(d,`" />
</span>`)}},c=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="M4.08,10.92 L8.88,10.92 L8.88,37.32 L4.08,37.32 L4.08,10.92 Z M26.22,21.72 L21.78,21.72 C21.6805887,21.72 21.6,21.8005887 21.6,21.9 L21.6,26.34 C21.6,26.4394113 21.6805887,26.52 21.78,26.52 L26.22,26.52 C26.3194113,26.52 26.4,26.4394113 26.4,26.34 L26.4,21.9 C26.4,21.8005887 26.3194113,21.72 26.22,21.72 L26.22,21.72 Z M39.12,15.24 L43.92,15.24 L43.92,33 L39.12,33 L39.12,15.24 Z" fill="`).concat((t=l.colors)===null||t===void 0?void 0:t[1],`"/>
<path d="M47.52,11.16 L43.56,11.16 L43.56,5.4 C43.56,5.136 43.344,4.92 43.08,4.92 L39.96,4.92 C39.696,4.92 39.48,5.136 39.48,5.4 L39.48,11.16 L35.52,11.16 C35.256,11.16 35.04,11.376 35.04,11.64 L35.04,36.6 C35.04,36.864 35.256,37.08 35.52,37.08 L39.48,37.08 L39.48,42.84 C39.48,43.104 39.696,43.32 39.96,43.32 L43.08,43.32 C43.344,43.32 43.56,43.104 43.56,42.84 L43.56,37.08 L47.52,37.08 C47.784,37.08 48,36.864 48,36.6 L48,11.64 C48,11.376 47.784,11.16 47.52,11.16 Z M43.92,33 L39.12,33 L39.12,15.24 L43.92,15.24 L43.92,33 Z M30,17.64 L26.04,17.64 L26.04,7.32 C26.04,7.056 25.824,6.84 25.56,6.84 L22.44,6.84 C22.176,6.84 21.96,7.056 21.96,7.32 L21.96,17.64 L18,17.64 C17.736,17.64 17.52,17.856 17.52,18.12 L17.52,30.12 C17.52,30.384 17.736,30.6 18,30.6 L21.96,30.6 L21.96,40.92 C21.96,41.184 22.176,41.4 22.44,41.4 L25.56,41.4 C25.824,41.4 26.04,41.184 26.04,40.92 L26.04,30.6 L30,30.6 C30.264,30.6 30.48,30.384 30.48,30.12 L30.48,18.12 C30.48,17.856 30.264,17.64 30,17.64 Z M26.4,26.34 C26.4,26.4394113 26.3194113,26.52 26.22,26.52 L21.78,26.52 C21.6805887,26.52 21.6,26.4394113 21.6,26.34 L21.6,21.9 C21.6,21.8005887 21.6805887,21.72 21.78,21.72 L26.22,21.72 C26.3194113,21.72 26.4,21.8005887 26.4,21.9 L26.4,26.34 Z M12.48,6.84 L8.52,6.84 L8.52,3.48 C8.52,3.216 8.304,3 8.04,3 L4.92,3 C4.656,3 4.44,3.216 4.44,3.48 L4.44,6.84 L0.48,6.84 C0.216,6.84 0,7.056 0,7.32 L0,40.92 C0,41.184 0.216,41.4 0.48,41.4 L4.44,41.4 L4.44,44.76 C4.44,45.024 4.656,45.24 4.92,45.24 L8.04,45.24 C8.304,45.24 8.52,45.024 8.52,44.76 L8.52,41.4 L12.48,41.4 C12.744,41.4 12.96,41.184 12.96,40.92 L12.96,7.32 C12.96,7.056 12.744,6.84 12.48,6.84 Z M8.88,37.32 L4.08,37.32 L4.08,10.92 L8.88,10.92 L8.88,37.32 Z" fill="`).concat((r=l.colors)===null||r===void 0?void 0:r[0],`"/>
</svg>`)},y=A("antd-sliders",!1,c);return C.default=y,C.getIconAntdSlidersSvgHtml=c,Object.defineProperty(C,"__esModule",{value:!0}),C}({});