import{k as T,au as w,d as v,u as M,e as N,o as t,f as V,M as n,r as m,n as o,a,c,w as i,Q as k,$ as g,V as C,g as y,T as $,h as I}from"./index-11843334.js";import{S as P,l as h,E as b,_ as F}from"./el-button-7b435908.js";const K=T({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:w,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Q={close:l=>l instanceof MouseEvent,click:l=>l instanceof MouseEvent},j=v({name:"ElTag"}),q=v({...j,props:K,emits:Q,setup(l,{emit:r}){const S=l,_=P(),s=M("tag"),u=N(()=>{const{type:e,hit:f,effect:E,closable:B,round:z}=S;return[s.b(),s.is("closable",B),s.m(e),s.m(_.value),s.m(E),s.is("hit",f),s.is("round",z)]}),p=e=>{r("close",e)},d=e=>{r("click",e)};return(e,f)=>e.disableTransitions?(t(),V("span",{key:0,class:o(a(u)),style:y({backgroundColor:e.color}),onClick:d},[n("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(t(),c(a(b),{key:0,class:o(a(s).e("close")),onClick:g(p,["stop"])},{default:i(()=>[k(a(h))]),_:1},8,["class","onClick"])):C("v-if",!0)],6)):(t(),c($,{key:1,name:`${a(s).namespace.value}-zoom-in-center`,appear:""},{default:i(()=>[n("span",{class:o(a(u)),style:y({backgroundColor:e.color}),onClick:d},[n("span",{class:o(a(s).e("content"))},[m(e.$slots,"default")],2),e.closable?(t(),c(a(b),{key:0,class:o(a(s).e("close")),onClick:g(p,["stop"])},{default:i(()=>[k(a(h))]),_:1},8,["class","onClick"])):C("v-if",!0)],6)]),_:3},8,["name"]))}});var A=F(q,[["__file","tag.vue"]]);const H=I(A);export{H as E,K as t};
