el-link-1ee9a4a4.js 1.2 KB

1
  1. import{aE as v,bJ as g,d as o,aG as E,e as $,o as l,c as r,k as d,w,P as S,a as t,aQ as B,S as i,a1 as c,aH as u,aI as J,aJ as P,__tla as x}from"./index-66208f93.js";let f,C=Promise.all([(()=>{try{return x}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},k=["href"],m=o({name:"ElLink"});f=P(J(o({...m,props:p,emits:y,setup(n,{emit:b}){const e=n,s=E("link"),_=$(()=>[s.b(),s.m(e.type),s.is("disabled",e.disabled),s.is("underline",e.underline&&!e.disabled)]);function h(a){e.disabled||b("click",a)}return(a,G)=>(l(),r("a",{class:c(t(_)),href:a.disabled||!a.href?void 0:a.href,onClick:h},[a.icon?(l(),d(t(B),{key:0},{default:w(()=>[(l(),d(S(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,k))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]))});export{f as E,C as __tla};