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