index.df22de48.js 1.3 KB

123
  1. import{e as r,f as s,g as o,h as c,p as f,v as y,l as a,j as _,n as x}from"./vue.e266cb73.js";import{_ as S}from"./_plugin-vue_export-helper.c27b6911.js";const z=["src"],I=r({name:"svgIcon"}),$=r({...I,props:{name:{type:String},size:{type:Number,default:()=>14},color:{type:String}},setup(m){const e=m,u=["https","http","/src","/assets","data:image","./"],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-")}),h=s(()=>u.find(t=>{var n;return(n=e.name)==null?void 0:n.startsWith(t)})),i=s(()=>`font-size: ${e.size}px;color: ${e.color};`),v=s(()=>`width: ${e.size}px;height: ${e.size}px;display: inline-block;overflow: hidden;`),d=s(()=>{const t=[];return["-webkit","-ms","-o","-moz"].forEach(g=>t.push(`${g}-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,n)=>p.value?(o(),c("i",{key:0,class:"el-icon",style:a(i.value)},[(o(),f(y(l.value)))],4)):h.value?(o(),c("div",{key:1,style:a(v.value)},[_("img",{src:l.value,style:a(d.value)},null,12,z)],4)):(o(),c("i",{key:2,class:x(l.value),style:a(i.value)},null,6))}}),b=S($,[["__file","C:/Users/89282/Desktop/lechang_storage/lechang_storage/vue-next-admin/src/components/svgIcon/index.vue"]]);export{b as default};
  2. //# sourceMappingURL=index.df22de48.js.map