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