UNPKG

@fe6/icon-cube-vue

Version:

Water Icon 的支持自定义图标

2 lines (1 loc) 8.78 kB
var IconsBytedLatticePattern=function(d,i){"use strict";var V={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"},N=function(n){var o=window.__iconCube__;return n&&o?o[n]:null},y=Object.prototype.hasOwnProperty,v=function(n,o){return y.call(n,o)},M=Object.prototype.toString,m=function(n){return M.call(n)},a=function(n,o,t,r,l){if(!n||!v(n,o))return l;var s=m(n[o])==="[object ".concat(t,"]")?n[o]:l;return o==="content"||o==="canSet"||r?s:l},b=function(n,o,t){var r=[];switch(n){case"outline":r.push(o[0]||t.outline.outStrokeColor),r.push(o[1]||t.outline.outFillColor),r.push(o[0]||t.outline.outStrokeColor),r.push(o[1]||t.outline.outFillColor);break;case"filled":r.push(o[0]||t.filled.outStrokeColor),r.push(o[0]||t.filled.outStrokeColor),r.push(o[1]||t.filled.outFillColor),r.push(o[1]||t.filled.outFillColor);break;case"twoTone":r.push(o[0]||t.twoTone.outStrokeColor),r.push(o[1]||t.twoTone.outFillColor),r.push(o[0]||t.twoTone.outStrokeColor),r.push(o[1]||t.twoTone.outFillColor);break;case"multiColor":r.push(o[0]||t.multiColor.outStrokeColor),r.push(o[1]||t.multiColor.outFillColor),r.push(o[2]||t.multiColor.innerStrokeColor),r.push(o[3]||t.multiColor.innerFillColor);break}return r},T=function(n,o,t){var r=o?.colors||[],l=[],s=N(n),k=a(s,"canSet","Boolean",!1,!0),h=a(s,"theme","String",k,o?.theme||t.theme);switch(h){case"outline":l.push(typeof r[0]=="string"&&!t.colors.outline.outStrokeColor?r[0]:t.colors.outline.outStrokeColor),l.push(typeof r[1]=="string"&&!t.colors.outline.outFillColor?r[1]:t.colors.outline.outFillColor),l.push(typeof r[0]=="string"&&!t.colors.outline.outStrokeColor?r[0]:t.colors.outline.outStrokeColor),l.push(typeof r[1]=="string"&&!t.colors.outline.outFillColor?r[1]:t.colors.outline.outFillColor);break;case"filled":l.push(typeof r[0]=="string"&&!t.colors.filled.outStrokeColor?r[0]:t.colors.filled.outStrokeColor),l.push(typeof r[0]=="string"&&!t.colors.filled.outStrokeColor?r[0]:t.colors.filled.outStrokeColor),l.push(typeof r[1]=="string"&&!t.colors.filled.outFillColor?r[1]:t.colors.filled.outFillColor),l.push(typeof r[1]=="string"&&!t.colors.filled.outFillColor?r[1]:t.colors.filled.outFillColor);break;case"twoTone":l.push(typeof r[0]=="string"&&!t.colors.twoTone.outStrokeColor?r[0]:t.colors.twoTone.outStrokeColor),l.push(typeof r[1]=="string"&&!t.colors.twoTone.outFillColor?r[1]:t.colors.twoTone.outFillColor),l.push(typeof r[0]=="string"&&!t.colors.twoTone.outStrokeColor?r[0]:t.colors.twoTone.outStrokeColor),l.push(typeof r[1]=="string"&&!t.colors.twoTone.outFillColor?r[1]:t.colors.twoTone.outFillColor);break;case"multiColor":l.push(typeof r[0]=="string"&&!t.colors.multiColor.outStrokeColor?r[0]:t.colors.multiColor.outStrokeColor),l.push(typeof r[1]=="string"&&!t.colors.multiColor.outFillColor?r[1]:t.colors.multiColor.outFillColor),l.push(typeof r[2]=="string"&&!t.colors.multiColor.innerStrokeColor?r[2]:t.colors.multiColor.innerStrokeColor),l.push(typeof r[3]=="string"&&!t.colors.multiColor.innerFillColor?r[3]:t.colors.multiColor.innerFillColor);break}var L=a(s,"size","String",k,String(o?.size||t.size)),j=a(s,"strokeLinejoin","String",k,o?.strokeLinejoin||t.strokeLinejoin),C=a(s,"strokeLinecap","String",k,o?.strokeLinecap||t.strokeLinecap),S=a(s,"strokeWidth","String",k,o?.strokeWidth||t.strokeWidth),w=a(s,"spin","String",k,o?.spin||t.spin),c=a(s,"colors","Array",k,o?.colors||l).slice();return c=b(h,c,t.colors),{size:L,strokeWidth:S,strokeLinecap:C,strokeLinejoin:j,colors:c,spin:w,id:n}},f=Symbol("cube-icon-context"),H=function(n,o,t){var r=i.defineComponent({name:"icon-"+n,props:["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","colors","spin","id"],setup:function(s){var k=i.inject(f,V)||V;return function(){var h=s.size,L=s.strokeWidth,j=s.strokeLinecap,C=s.strokeLinejoin,S=s.theme,w=s.colors,c=s.spin,W=String(s.id?s.id:n),F=T(W,{size:h,strokeWidth:L,strokeLinecap:j,strokeLinejoin:C,theme:S,colors:w,spin:c,id:W},k),u=["".concat(k.prefix,"-icon")];return u.push("".concat(k.prefix,"-icon-").concat(n)),o&&k.rtl&&u.push("".concat(k.prefix,"-icon-rtl")),c&&String(c)==="true"&&u.push("".concat(k.prefix,"-icon-spin")),n==="cube"?i.createVNode("span",{class:u.join(" "),innerHTML:t(F)},null):i.createVNode("span",{class:u.join(" ")},[t(F)])}}});return r},z=H("byted-lattice-pattern",!1,function(e){return i.createVNode("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},[i.createVNode("path",{d:"M6 8H10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M14 16H18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M16 6V10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M8 14V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M22 8H26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M30 16H34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M32 6V10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M24 14V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M38 8H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M40 14V18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M6 24H10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M14 32H18",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M16 22V26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M8 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M22 24H26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M30 32H34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M32 22V26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M24 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M38 24H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M40 30V34",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M6 40H10",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M16 38V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M22 40H26",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M32 38V42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null),i.createVNode("path",{d:"M38 40H42",stroke:e.colors[0],"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin},null)])});return d.default=z,Object.defineProperty(d,"__esModule",{value:!0}),d}({},Vue);