import{s as y,l as g,E as b,_ as E}from"./index-3bef6acb.js";import{a0 as w,a2 as m,G as o,ax as d,a4 as C,o as a,c as u,g as c,w as B,al as S,f as r,l as i,n as f,ab as p,ai as $}from"./index-25eb6331.js";const L=w({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:"hover"},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:y}}),P={click:l=>l instanceof MouseEvent},_=m({name:"ElLink"}),D=m({..._,props:L,emits:P,setup(l,{emit:v}){const n=l;g({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},o(()=>d(n.underline)));const s=C("link"),k=o(()=>[s.b(),s.m(n.type),s.is("disabled",n.disabled),s.is("underline",t.value==="always"),s.is("hover-underline",t.value==="hover"&&!n.disabled)]),t=o(()=>d(n.underline)?n.underline?"hover":"never":n.underline);function h(e){n.disabled||v("click",e)}return(e,N)=>(a(),u("a",{class:f(r(k)),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:h},[e.icon?(a(),c(r(b),{key:0},{default:B(()=>[(a(),c(S(e.icon)))]),_:1})):i("v-if",!0),e.$slots.default?(a(),u("span",{key:1,class:f(r(s).e("inner"))},[p(e.$slots,"default")],2)):i("v-if",!0),e.$slots.icon?p(e.$slots,"icon",{key:2}):i("v-if",!0)],10,["href","target"]))}});var I=E(D,[["__file","link.vue"]]);const G=$(I);export{G as E};
