import{b as m,C as y,a as f,u as h,c as b,o as a,g as o,E as r,w as g,I as v,l,J as C,s as i,n as d,r as c,_ as E,p as B}from"./post-2433f428.js";const _=m({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:y}}),w={click:t=>t instanceof MouseEvent},S=["href","target"],$=f({name:"ElLink"}),I=f({...$,props:_,emits:w,setup(t,{emit:u}){const s=t,n=h("link"),p=b(()=>[n.b(),n.m(s.type),n.is("disabled",s.disabled),n.is("underline",s.underline&&!s.disabled)]);function k(e){s.disabled||u("click",e)}return(e,P)=>(a(),o("a",{class:d(l(p)),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:k},[e.icon?(a(),r(l(C),{key:0},{default:g(()=>[(a(),r(v(e.icon)))]),_:1})):i("v-if",!0),e.$slots.default?(a(),o("span",{key:1,class:d(l(n).e("inner"))},[c(e.$slots,"default")],2)):i("v-if",!0),e.$slots.icon?c(e.$slots,"icon",{key:2}):i("v-if",!0)],10,S))}});var L=E(I,[["__file","link.vue"]]);const z=B(L);export{z as E};
//# sourceMappingURL=link-9358ed99.js.map
