12 |
- import{L as r,m as s,o as n,a as c,S as f,V as g,P as a,b as _,O as S}from"./vue.e1d8f8c6.js";import{_ as x}from"./index.6661bcf9.js";const z=["src"],I=r({name:"svgIcon"}),w=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","/test/"],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};`),v=s(()=>`width: ${e.size}px;height: ${e.size}px;display: inline-block;overflow: hidden;`),h=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(),f(g(l.value)))],4)):d.value?(n(),c("div",{key:1,style:a(v.value)},[_("img",{src:l.value,style:a(h.value)},null,12,z)],4)):(n(),c("i",{key:2,class:S(l.value),style:a(i.value)},null,6))}}),b=x(w,[["__file","E:/code/wwwroot/local81.lzj/simple_storage/vue-next-admin/src/components/svgIcon/index.vue"]]);export{b as default};
|