@fe6/icon-vue
Version:
Water Icon 的 VUE3 图标
2 lines (1 loc) • 4.75 kB
JavaScript
var IconsBytedForm=function(d,r){"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(u,l,t){var o=l?.colors||[],i=[],n=l?.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:l?.size||t.size,strokeWidth:l?.strokeWidth||t.strokeWidth,strokeLinecap:l?.strokeLinecap||t.strokeLinecap,strokeLinejoin:l?.strokeLinejoin||t.strokeLinejoin,colors:i,id:u}},C=Symbol("cube-icon-context"),L=function(u,l,t){var o=r.defineComponent({name:"icon-"+u,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin"],setup:function(n){var v=h(),s=r.inject(C,a)||a;return function(){var V=n.size,j=n.strokeWidth,y=n.strokeLinecap,m=n.strokeLinejoin,N=n.theme,F=n.colors,w=n.spin,W=f(v,{size:V,strokeWidth:j,strokeLinecap:y,strokeLinejoin:m,theme:N,colors:F},s),k=["".concat(s.prefix,"-icon")];return k.push("".concat(s.prefix,"-icon-").concat(u)),l&&s.rtl&&k.push("".concat(s.prefix,"-icon-rtl")),w&&k.push("".concat(s.prefix,"-icon-spin")),r.createVNode("span",{class:k.join(" ")},[t(W)])}}});return o},c=L("byted-form",!1,function(e){return r.createVNode("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[r.createVNode("rect",{x:"4",y:"8",width:"40",height:"32",rx:"2",fill:e.colors[1],stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 29H44H4Z",fill:e.colors[1]},null),r.createVNode("path",{d:"M4 29H44",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 19H44H4Z",fill:e.colors[1]},null),r.createVNode("path",{d:"M4 19H44",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17 40V19V40Z",fill:e.colors[1]},null),r.createVNode("path",{d:"M17 40V19",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 38V17V38Z",fill:e.colors[1]},null),r.createVNode("path",{d:"M4 38V17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 38V17V38Z",fill:e.colors[1]},null),r.createVNode("path",{d:"M44 38V17",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M31 40V19V40Z",fill:e.colors[1]},null),r.createVNode("path",{d:"M31 40V19",stroke:e.colors[2],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),r.createVNode("path",{d:"M9 40H39",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});return d.BytedForm=c,d.default=c,Object.defineProperty(d,"__esModule",{value:!0}),d}({},Vue);