@fe6/icon-vue
Version:
Water Icon 的 VUE3 图标
2 lines (1 loc) • 3.73 kB
JavaScript
var IconsBytedMosaic=function(u,i){"use strict";var d={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"},f=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},V=function(a,t,e){var o=t?.colors||[],r=[],s=t?.theme||e.theme;switch(s){case"outline":r.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),r.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":r.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),r.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),r.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":r.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),r.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":r.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),r.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),r.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),r.push(typeof o[3]=="string"?o[3]:e.colors.multiColor.innerFillColor);break}return{size:t?.size||e.size,strokeWidth:t?.strokeWidth||e.strokeWidth,strokeLinecap:t?.strokeLinecap||e.strokeLinecap,strokeLinejoin:t?.strokeLinejoin||e.strokeLinejoin,colors:r,id:a}},k=Symbol("cube-icon-context"),C=function(a,t,e){var o=i.defineComponent({name:"icon-"+a,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin"],setup:function(s){var p=f(),n=i.inject(k,d)||d;return function(){var H=s.size,y=s.strokeWidth,m=s.strokeLinecap,N=s.strokeLinejoin,v=s.theme,M=s.colors,L=s.spin,S=V(p,{size:H,strokeWidth:y,strokeLinecap:m,strokeLinejoin:N,theme:v,colors:M},n),c=["".concat(n.prefix,"-icon")];return c.push("".concat(n.prefix,"-icon-").concat(a)),t&&n.rtl&&c.push("".concat(n.prefix,"-icon-rtl")),L&&c.push("".concat(n.prefix,"-icon-spin")),i.createVNode("span",{class:c.join(" ")},[e(S)])}}});return o},h=C("byted-mosaic",!1,function(l){return i.createVNode("svg",{width:l.size,height:l.size,viewBox:"0 0 48 48",fill:"none"},[i.createVNode("path",{d:"M44 36H36V44H44V36Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M28 36H20V44H28V36Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M12 36H4V44H12V36Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M44 20H36V28H44V20Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M28 20H20V28H28V20Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M12 20H4V28H12V20Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M44 4H36V12H44V4Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M28 4H20V12H28V4Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M12 4H4V12H12V4Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M20 12H12V20H20V12Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M20 28H12V36H20V28Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M36 12H28V20H36V12Z",fill:l.colors[0]},null),i.createVNode("path",{d:"M36 28H28V36H36V28Z",fill:l.colors[0]},null)])});return u.BytedMosaic=h,u.default=h,Object.defineProperty(u,"__esModule",{value:!0}),u}({},Vue);