@fe6/icon-vue
Version:
Water Icon 的 VUE3 图标
2 lines (1 loc) • 6.82 kB
JavaScript
var IconsBytedLatticePattern=function(s,o){"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"},u=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},L=function(a,r,i){var t=r?.colors||[],n=[],l=r?.theme||i.theme;switch(l){case"outline":n.push(typeof t[0]=="string"?t[0]:i.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:i.colors.outline.outFillColor),n.push(typeof t[0]=="string"?t[0]:i.colors.outline.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:i.colors.outline.outFillColor);break;case"filled":n.push(typeof t[0]=="string"?t[0]:i.colors.filled.outStrokeColor),n.push(typeof t[0]=="string"?t[0]:i.colors.filled.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:i.colors.filled.outFillColor),n.push(typeof t[1]=="string"?t[1]:i.colors.filled.outFillColor);break;case"twoTone":n.push(typeof t[0]=="string"?t[0]:i.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:i.colors.twoTone.outFillColor),n.push(typeof t[0]=="string"?t[0]:i.colors.twoTone.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:i.colors.twoTone.outFillColor);break;case"multiColor":n.push(typeof t[0]=="string"?t[0]:i.colors.multiColor.outStrokeColor),n.push(typeof t[1]=="string"?t[1]:i.colors.multiColor.outFillColor),n.push(typeof t[2]=="string"?t[2]:i.colors.multiColor.innerStrokeColor),n.push(typeof t[3]=="string"?t[3]:i.colors.multiColor.innerFillColor);break}return{size:r?.size||i.size,strokeWidth:r?.strokeWidth||i.strokeWidth,strokeLinecap:r?.strokeLinecap||i.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||i.strokeLinejoin,colors:n,id:a}},j=Symbol("cube-icon-context"),C=function(a,r,i){var t=o.defineComponent({name:"icon-"+a,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin"],setup:function(l){var V=u(),k=o.inject(j,d)||d;return function(){var f=l.size,W=l.strokeWidth,w=l.strokeLinecap,N=l.strokeLinejoin,M=l.theme,y=l.colors,m=l.spin,S=L(V,{size:f,strokeWidth:W,strokeLinecap:w,strokeLinejoin:N,theme:M,colors:y},k),c=["".concat(k.prefix,"-icon")];return c.push("".concat(k.prefix,"-icon-").concat(a)),r&&k.rtl&&c.push("".concat(k.prefix,"-icon-rtl")),m&&c.push("".concat(k.prefix,"-icon-spin")),o.createVNode("span",{class:c.join(" ")},[i(S)])}}});return t},h=C("byted-lattice-pattern",!1,function(e){return o.createVNode("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[o.createVNode("path",{d:"M6 8H10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M14 16H18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M16 6V10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M8 14V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M22 8H26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M30 16H34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M32 6V10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M24 14V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M38 8H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M40 14V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M6 24H10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M14 32H18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M16 22V26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M8 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M22 24H26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M30 32H34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M32 22V26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M24 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M38 24H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M40 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M6 40H10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M16 38V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M22 40H26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M32 38V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),o.createVNode("path",{d:"M38 40H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});return s.BytedLatticePattern=h,s.default=h,Object.defineProperty(s,"__esModule",{value:!0}),s}({},Vue);