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