UNPKG

@fe6/icon-cube-vue

Version:

Water Icon 的支持自定义图标

2 lines (1 loc) 6.5 kB
var IconsBytedMicroscopeOne=function(C,u){"use strict";var w={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"},j=function(i){var t=window.__iconCube__;return i&&t?t[i]:null},m=Object.prototype.hasOwnProperty,f=function(i,t){return m.call(i,t)},b=Object.prototype.toString,T=function(i){return b.call(i)},a=function(i,t,o,e,l){if(!i||!f(i,t))return l;var n=T(i[t])==="[object ".concat(o,"]")?i[t]:l;return t==="content"||t==="canSet"||e?n:l},W=function(i,t,o){var e=[];switch(i){case"outline":e.push(t[0]||o.outline.outStrokeColor),e.push(t[1]||o.outline.outFillColor),e.push(t[0]||o.outline.outStrokeColor),e.push(t[1]||o.outline.outFillColor);break;case"filled":e.push(t[0]||o.filled.outStrokeColor),e.push(t[0]||o.filled.outStrokeColor),e.push(t[1]||o.filled.outFillColor),e.push(t[1]||o.filled.outFillColor);break;case"twoTone":e.push(t[0]||o.twoTone.outStrokeColor),e.push(t[1]||o.twoTone.outFillColor),e.push(t[0]||o.twoTone.outStrokeColor),e.push(t[1]||o.twoTone.outFillColor);break;case"multiColor":e.push(t[0]||o.multiColor.outStrokeColor),e.push(t[1]||o.multiColor.outFillColor),e.push(t[2]||o.multiColor.innerStrokeColor),e.push(t[3]||o.multiColor.innerFillColor);break}return e},N=function(i,t,o){var e=t?.colors||[],l=[],n=j(i),s=a(n,"canSet","Boolean",!1,!0),h=a(n,"theme","String",s,t?.theme||o.theme);switch(h){case"outline":l.push(typeof e[0]=="string"&&!o.colors.outline.outStrokeColor?e[0]:o.colors.outline.outStrokeColor),l.push(typeof e[1]=="string"&&!o.colors.outline.outFillColor?e[1]:o.colors.outline.outFillColor),l.push(typeof e[0]=="string"&&!o.colors.outline.outStrokeColor?e[0]:o.colors.outline.outStrokeColor),l.push(typeof e[1]=="string"&&!o.colors.outline.outFillColor?e[1]:o.colors.outline.outFillColor);break;case"filled":l.push(typeof e[0]=="string"&&!o.colors.filled.outStrokeColor?e[0]:o.colors.filled.outStrokeColor),l.push(typeof e[0]=="string"&&!o.colors.filled.outStrokeColor?e[0]:o.colors.filled.outStrokeColor),l.push(typeof e[1]=="string"&&!o.colors.filled.outFillColor?e[1]:o.colors.filled.outFillColor),l.push(typeof e[1]=="string"&&!o.colors.filled.outFillColor?e[1]:o.colors.filled.outFillColor);break;case"twoTone":l.push(typeof e[0]=="string"&&!o.colors.twoTone.outStrokeColor?e[0]:o.colors.twoTone.outStrokeColor),l.push(typeof e[1]=="string"&&!o.colors.twoTone.outFillColor?e[1]:o.colors.twoTone.outFillColor),l.push(typeof e[0]=="string"&&!o.colors.twoTone.outStrokeColor?e[0]:o.colors.twoTone.outStrokeColor),l.push(typeof e[1]=="string"&&!o.colors.twoTone.outFillColor?e[1]:o.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof e[0]=="string"&&!o.colors.multiColor.outStrokeColor?e[0]:o.colors.multiColor.outStrokeColor),l.push(typeof e[1]=="string"&&!o.colors.multiColor.outFillColor?e[1]:o.colors.multiColor.outFillColor),l.push(typeof e[2]=="string"&&!o.colors.multiColor.innerStrokeColor?e[2]:o.colors.multiColor.innerStrokeColor),l.push(typeof e[3]=="string"&&!o.colors.multiColor.innerFillColor?e[3]:o.colors.multiColor.innerFillColor);break}var d=a(n,"size","String",s,String(t?.size||o.size)),p=a(n,"strokeLinejoin","String",s,t?.strokeLinejoin||o.strokeLinejoin),S=a(n,"strokeLinecap","String",s,t?.strokeLinecap||o.strokeLinecap),L=a(n,"strokeWidth","String",s,t?.strokeWidth||o.strokeWidth),v=a(n,"spin","String",s,t?.spin||o.spin),k=a(n,"colors","Array",s,t?.colors||l).slice();return k=W(h,k,o.colors),{size:d,strokeWidth:L,strokeLinecap:S,strokeLinejoin:p,colors:k,spin:v,id:i}},O=Symbol("cube-icon-context"),z=function(i,t,o){var e=u.defineComponent({name:"icon-"+i,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin","id"],setup:function(n){var s=u.inject(O,w)||w;return function(){var h=n.size,d=n.strokeWidth,p=n.strokeLinecap,S=n.strokeLinejoin,L=n.theme,v=n.colors,k=n.spin,F=String(n.id?n.id:i),y=N(F,{size:h,strokeWidth:d,strokeLinecap:p,strokeLinejoin:S,theme:L,colors:v,spin:k,id:F},s),c=["".concat(s.prefix,"-icon")];return c.push("".concat(s.prefix,"-icon-").concat(i)),t&&s.rtl&&c.push("".concat(s.prefix,"-icon-rtl")),k&&String(k)==="true"&&c.push("".concat(s.prefix,"-icon-spin")),i==="cube"?u.createVNode("span",{class:c.join(" "),innerHTML:o(y)},null):u.createVNode("span",{class:c.join(" ")},[o(y)])}}});return e},I=z("byted-microscope-one",!1,function(r){return u.createVNode("svg",{width:r.size,height:r.size,viewBox:"0 0 48 48",fill:"none"},[u.createVNode("path",{d:"M29.0026 18.3735L30.1075 17.2686L30.6378 16.7383C32.7857 14.5904 32.7857 11.108 30.6378 8.96014V8.96014C28.4899 6.81225 25.0075 6.81225 22.8596 8.96014L9.17208 22.6477C9.11629 22.7035 9.11629 22.7939 9.17208 22.8497L16.1421 29.8198C16.5327 30.2103 17.1658 30.2103 17.5563 29.8198L21.2687 26.1075L22.3735 25.0026",stroke:r.colors[0],"stroke-width":r.strokeWidth,"stroke-linecap":r.strokeLinecap},null),u.createVNode("path",{d:"M28.1629 6.48526L29.9307 4.71749C31.2975 3.35066 33.5136 3.35066 34.8804 4.71749C36.2473 6.08433 36.2473 8.30041 34.8804 9.66724L33.1127 11.435L28.1629 6.48526Z",fill:r.colors[1],stroke:r.colors[0],"stroke-width":r.strokeWidth,"stroke-linecap":r.strokeLinecap,"stroke-linejoin":r.strokeLinejoin},null),u.createVNode("path",{d:"M10.4853 24.1629L6.24262 28.4056L11.1924 33.3553L15.435 29.1127L10.4853 24.1629Z",stroke:r.colors[0],"stroke-width":r.strokeWidth,"stroke-linecap":r.strokeLinecap,"stroke-linejoin":r.strokeLinejoin},null),u.createVNode("circle",{cx:"26.0416",cy:"22.0416",r:"4.5",transform:"rotate(45 26.0416 22.0416)",fill:r.colors[1],stroke:r.colors[0],"stroke-width":r.strokeWidth},null),u.createVNode("path",{d:"M6 20L18.7279 32.7279",stroke:r.colors[0],"stroke-width":r.strokeWidth,"stroke-linecap":r.strokeLinecap,"stroke-linejoin":r.strokeLinejoin},null),u.createVNode("path",{d:"M10 44H42",stroke:r.colors[0],"stroke-width":r.strokeWidth,"stroke-linecap":r.strokeLinecap,"stroke-linejoin":r.strokeLinejoin},null),u.createVNode("path",{d:"M31 22C35 22 39 26 39 32C39 38.4 33.8333 41.8333 31 44",stroke:r.colors[0],"stroke-width":r.strokeWidth,"stroke-linecap":r.strokeLinecap,"stroke-linejoin":r.strokeLinejoin},null)])});return C.default=I,Object.defineProperty(C,"__esModule",{value:!0}),C}({},Vue);