import{t as S,u as k,y as x,d as y,c as t,be as B,as as P,a5 as T,x as h}from"./index.27735e87.js";const[v,s]=S("tag"),I={size:String,mark:Boolean,show:k,type:x("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean};var w=y({name:v,props:I,emits:["close"],setup(o,{slots:l,emit:r}){const c=a=>{a.stopPropagation(),r("close",a)},i=()=>o.plain?{color:o.textColor||o.color,borderColor:o.color}:{color:o.textColor,background:o.color},u=()=>{var a;const{type:d,mark:m,plain:g,round:C,size:e,closeable:f}=o,n={mark:m,plain:g,round:C};e&&(n[e]=e);const b=f&&t(T,{name:"cross",class:[s("close"),P],onClick:c},null);return t("span",{style:i(),class:s([n,d])},[(a=l.default)==null?void 0:a.call(l),b])};return()=>t(B,{name:o.closeable?"van-fade":void 0},{default:()=>[o.show?u():null]})}});const p=h(w);export{p as T};
