@fe6/icon-vue
Version:
Water Icon 的 VUE3 图标
2 lines (1 loc) • 4.58 kB
JavaScript
var IconsBytedBirthdayCake=function(k,l){"use strict";var u={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)},L=function(a,r,t){var o=r?.colors||[],i=[],n=r?.theme||t.theme;switch(n){case"outline":i.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor),i.push(typeof o[0]=="string"?o[0]:t.colors.outline.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:t.colors.outline.outFillColor);break;case"filled":i.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),i.push(typeof o[0]=="string"?o[0]:t.colors.filled.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor),i.push(typeof o[1]=="string"?o[1]:t.colors.filled.outFillColor);break;case"twoTone":i.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor),i.push(typeof o[0]=="string"?o[0]:t.colors.twoTone.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:t.colors.twoTone.outFillColor);break;case"multiColor":i.push(typeof o[0]=="string"?o[0]:t.colors.multiColor.outStrokeColor),i.push(typeof o[1]=="string"?o[1]:t.colors.multiColor.outFillColor),i.push(typeof o[2]=="string"?o[2]:t.colors.multiColor.innerStrokeColor),i.push(typeof o[3]=="string"?o[3]:t.colors.multiColor.innerFillColor);break}return{size:r?.size||t.size,strokeWidth:r?.strokeWidth||t.strokeWidth,strokeLinecap:r?.strokeLinecap||t.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||t.strokeLinejoin,colors:i,id:a}},C=Symbol("cube-icon-context"),f=function(a,r,t){var o=l.defineComponent({name:"icon-"+a,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin"],setup:function(n){var j=h(),s=l.inject(C,u)||u;return function(){var y=n.size,V=n.strokeWidth,v=n.strokeLinecap,W=n.strokeLinejoin,w=n.theme,m=n.colors,N=n.spin,S=L(j,{size:y,strokeWidth:V,strokeLinecap:v,strokeLinejoin:W,theme:w,colors:m},s),d=["".concat(s.prefix,"-icon")];return d.push("".concat(s.prefix,"-icon-").concat(a)),r&&s.rtl&&d.push("".concat(s.prefix,"-icon-rtl")),N&&d.push("".concat(s.prefix,"-icon-spin")),l.createVNode("span",{class:d.join(" ")},[t(S)])}}});return o},c=f("byted-birthday-cake",!1,function(e){return l.createVNode("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[l.createVNode("path",{d:"M8 40H40V24H8V40Z",fill:e.colors[1]},null),l.createVNode("path",{d:"M40 40H8M40 40H4H8M40 40H44M40 40V24H8V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M40 34L36 32L32 34L28 32L24 34L20 32L16 34L12 32L8 34",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M32 24V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M24 24V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M16 24V15",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M32 10V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M24 10V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M16 10V8",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M8 24V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),l.createVNode("path",{d:"M40 24V40",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});return k.BytedBirthdayCake=c,k.default=c,Object.defineProperty(k,"__esModule",{value:!0}),k}({},Vue);