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