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