@fe6/icon-vue
Version:
Water Icon 的 VUE3 图标
2 lines (1 loc) • 6.49 kB
JavaScript
var IconsBytedCpu=function(s,t){"use strict";var a={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(k,r,l){var o=r?.colors||[],i=[],n=r?.theme||l.theme;switch(n){case"outline":i.push(typeof o[0]=="string"?o[0]:l.colors.outline.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:l.colors.outline.outFillColor),i.push(typeof o[0]=="string"?o[0]:l.colors.outline.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:l.colors.outline.outFillColor);break;case"filled":i.push(typeof o[0]=="string"?o[0]:l.colors.filled.outStrokeColor),i.push(typeof o[0]=="string"?o[0]:l.colors.filled.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:l.colors.filled.outFillColor),i.push(typeof o[1]=="string"?o[1]:l.colors.filled.outFillColor);break;case"twoTone":i.push(typeof o[0]=="string"?o[0]:l.colors.twoTone.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:l.colors.twoTone.outFillColor),i.push(typeof o[0]=="string"?o[0]:l.colors.twoTone.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:l.colors.twoTone.outFillColor);break;case"multiColor":i.push(typeof o[0]=="string"?o[0]:l.colors.multiColor.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:l.colors.multiColor.outFillColor),i.push(typeof o[2]=="string"?o[2]:l.colors.multiColor.innerStrokeColor),i.push(typeof o[3]=="string"?o[3]:l.colors.multiColor.innerFillColor);break}return{size:r?.size||l.size,strokeWidth:r?.strokeWidth||l.strokeWidth,strokeLinecap:r?.strokeLinecap||l.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||l.strokeLinejoin,colors:i,id:k}},V=Symbol("cube-icon-context"),C=function(k,r,l){var o=t.defineComponent({name:"icon-"+k,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin"],setup:function(n){var L=h(),d=t.inject(V,a)||a;return function(){var j=n.size,N=n.strokeWidth,v=n.strokeLinecap,M=n.strokeLinejoin,W=n.theme,w=n.colors,y=n.spin,H=f(L,{size:j,strokeWidth:N,strokeLinecap:v,strokeLinejoin:M,theme:W,colors:w},d),c=["".concat(d.prefix,"-icon")];return c.push("".concat(d.prefix,"-icon-").concat(k)),r&&d.rtl&&c.push("".concat(d.prefix,"-icon-rtl")),y&&c.push("".concat(d.prefix,"-icon-spin")),t.createVNode("span",{class:c.join(" ")},[l(H)])}}});return o},u=C("byted-cpu",!1,function(e){return t.createVNode("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[t.createVNode("path",{d:"M38 8H10C8.89543 8 8 8.89543 8 10V38C8 39.1046 8.89543 40 10 40H38C39.1046 40 40 39.1046 40 38V10C40 8.89543 39.1046 8 38 8Z",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{d:"M30 18H18V30H30V18Z",fill:e.colors[3],stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9092 2V8V2Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M14.9092 2V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9092 40V46V40Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M14.9092 40V46",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 2V8V2Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M24 2V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 40V46V40Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M24 40V46",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33.0908 2V8V2Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M33.0908 2V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33.0908 40V46V40Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M33.0908 40V46",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 14.9091H8H2Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M2 14.9091H8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40 14.9091H46H40Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M40 14.9091H46",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 24H8H2Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M2 24H8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40 24H46H40Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M40 24H46",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 33.0909H8H2Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M2 33.0909H8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),t.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40 33.0909H46H40Z",fill:e.colors[1]},null),t.createVNode("path",{d:"M40 33.0909H46",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});return s.BytedCpu=u,s.default=u,Object.defineProperty(s,"__esModule",{value:!0}),s}({},Vue);