index.vue.cace3977.js 1.3 KB

1
  1. import{f as m,y as o,o as r,c as a,a as f,a4 as g,k as s,cL as p,m as c,w as _,a1 as y,ce as i,bK as h,B as N,n as l,cM as $,b,cf as k,H as x}from"./entry.32bca663.js";import{_ as C}from"./_plugin-vue_export-helper.c27b6911.js";const u=(e,t="px")=>Object.is(Number(e),NaN)?e:`${e}${t}`;function F(e){if(e.length===0||!e||e=="undefined")return e;const t=e.replace("//","/"),n=t.length;return t[n-1]==="/"?t.slice(0,n-1):t}const I=m({props:{name:{type:String,required:!0},size:{type:[Number,String],default:16},color:{type:String,default:"inherit"}},setup(e){const t=o(()=>`#${e.name}`),n=o(()=>({width:u(e.size),height:u(e.size),color:e.color}));return{symbolId:t,styles:n}}}),S=["xlink:href"];function P(e,t,n,d,E,w){return r(),a("svg",{"aria-hidden":"true",style:g(e.styles)},[f("use",{"xlink:href":e.symbolId,fill:"currentColor"},null,8,S)],4)}const z=C(I,[["render",P]]),B={key:1,class:"local-icon"},R=m({__name:"index",props:{name:{type:String,default:""},size:{type:[String,Number],default:"14px"},color:{type:String,default:"inherit"}},setup(e){const t=e;return(n,d)=>(r(),a(x,null,[e.name.includes(s(p))?(r(),c(s(N),i(h({key:0},t)),{default:_(()=>[(r(),c(y(e.name)))]),_:1},16)):l("",!0),e.name.includes(s($))?(r(),a("span",B,[b(z,i(k(t)),null,16)])):l("",!0)],64))}});export{R as _,F as g};