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