1 |
- import{az as v,aK as g,d as o,aB as E,J as $,o as l,c as r,q as d,w,L as B,a as t,aS as S,O as i,Y as c,aC as u,aD as C,aE as L,__tla as q}from"./index-2eab2d23.js";let f,x=Promise.all([(()=>{try{return q}catch{}})()]).then(async()=>{const p=v({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:""},icon:{type:g}}),y={click:n=>n instanceof MouseEvent},m=["href"],k=o({name:"ElLink"});f=L(C(o({...k,props:p,emits:y,setup(n,{emit:_}){const e=n,s=E("link"),b=$(()=>[s.b(),s.m(e.type),s.is("disabled",e.disabled),s.is("underline",e.underline&&!e.disabled)]);function h(a){e.disabled||_("click",a)}return(a,z)=>(l(),r("a",{class:c(t(b)),href:a.disabled||!a.href?void 0:a.href,onClick:h},[a.icon?(l(),d(t(S),{key:0},{default:w(()=>[(l(),d(B(a.icon)))]),_:1})):i("v-if",!0),a.$slots.default?(l(),r("span",{key:1,class:c(t(s).e("inner"))},[u(a.$slots,"default")],2)):i("v-if",!0),a.$slots.icon?u(a.$slots,"icon",{key:2}):i("v-if",!0)],10,m))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]))});export{f as E,x as __tla};
|