@fe6/icon-vue
Version:
Water Icon 的 VUE3 图标
2 lines (1 loc) • 3.57 kB
JavaScript
var IconsBytedShuffle=function(u,s){"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"},h=function(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)},f=function(k,r,e){var o=r?.colors||[],l=[],i=r?.theme||e.theme;switch(i){case"outline":l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.outline.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.outline.outFillColor);break;case"filled":l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[0]=="string"?o[0]:e.colors.filled.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor),l.push(typeof o[1]=="string"?o[1]:e.colors.filled.outFillColor);break;case"twoTone":l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor),l.push(typeof o[0]=="string"?o[0]:e.colors.twoTone.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof o[0]=="string"?o[0]:e.colors.multiColor.outStrokeColor),l.push(typeof o[1]=="string"?o[1]:e.colors.multiColor.outFillColor),l.push(typeof o[2]=="string"?o[2]:e.colors.multiColor.innerStrokeColor),l.push(typeof o[3]=="string"?o[3]:e.colors.multiColor.innerFillColor);break}return{size:r?.size||e.size,strokeWidth:r?.strokeWidth||e.strokeWidth,strokeLinecap:r?.strokeLinecap||e.strokeLinecap,strokeLinejoin:r?.strokeLinejoin||e.strokeLinejoin,colors:l,id:k}},C=Symbol("cube-icon-context"),L=function(k,r,e){var o=s.defineComponent({name:"icon-"+k,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin"],setup:function(i){var p=h(),n=s.inject(C,d)||d;return function(){var v=i.size,y=i.strokeWidth,S=i.strokeLinecap,j=i.strokeLinejoin,m=i.theme,F=i.colors,W=i.spin,w=f(p,{size:v,strokeWidth:y,strokeLinecap:S,strokeLinejoin:j,theme:m,colors:F},n),a=["".concat(n.prefix,"-icon")];return a.push("".concat(n.prefix,"-icon-").concat(k)),r&&n.rtl&&a.push("".concat(n.prefix,"-icon-rtl")),W&&a.push("".concat(n.prefix,"-icon-spin")),s.createVNode("span",{class:a.join(" ")},[e(w)])}}});return o},c=L("byted-shuffle",!1,function(t){return s.createVNode("svg",{width:t.size,height:t.size,viewBox:"0 0 48 48",fill:"none"},[s.createVNode("path",{d:"M30 41.9999H42V29.9999",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),s.createVNode("path",{d:"M42 17.9999V5.99994H30",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),s.createVNode("path",{d:"M42 6L6 42",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null),s.createVNode("path",{d:"M24 23.9999L6 5.99994M31.5 31.4999L34 33.9999L39 38.9999L41.5 41.4999L42 41.9999",stroke:t.colors[0],"stroke-width":t.strokeWidth,"stroke-linecap":t.strokeLinecap,"stroke-linejoin":t.strokeLinejoin},null)])});return u.BytedShuffle=c,u.default=c,Object.defineProperty(u,"__esModule",{value:!0}),u}({},Vue);