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