123 |
- import{M as r,p as s,o as n,a as c,T as _,W as g,Q as a,b as f,P as x}from"./vue.60d2ee98.js";import{_ as I}from"./index.beaea096.js";const S=["src"],z=r({name:"svgIcon"}),$=r({...z,props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup(m){const e=m,u=["https","http","/src","/assets","data:image",{}.VITE_PUBLIC_PATH],l=s(()=>e==null?void 0:e.name),p=s(()=>{var t;return(t=e==null?void 0:e.name)==null?void 0:t.startsWith("ele-")}),d=s(()=>u.find(t=>{var o;return(o=e.name)==null?void 0:o.startsWith(t)})),i=s(()=>`font-size: ${e.size}px;color: ${e.color};`),h=s(()=>`width: ${e.size}px;height: ${e.size}px;display: inline-block;overflow: hidden;`),v=s(()=>{const t=[];return["-webkit","-ms","-o","-moz"].forEach(y=>t.push(`${y}-filter: drop-shadow(${e.color} 30px 0);`)),`width: ${e.size}px;height: ${e.size}px;position: relative;left: -${e.size}px;${t.join("")}`});return(t,o)=>p.value?(n(),c("i",{key:0,class:"el-icon",style:a(i.value)},[(n(),_(g(l.value)))],4)):d.value?(n(),c("div",{key:1,style:a(h.value)},[f("img",{src:l.value,style:a(v.value)},null,12,S)],4)):(n(),c("i",{key:2,class:x(l.value),style:a(i.value)},null,6))}}),b=I($,[["__file","C:/Users/89282/Desktop/xmgl_yjy/project-manager/h5/src/components/svgIcon/index.vue"]]);export{b as default};
- //# sourceMappingURL=index.4bbeb714.js.map
|