import{_ as t,o as e,f as a,w as i,j as s,t as n,x as l,n as r,k as u,l as d}from"./index--EfctvOJ.js";const o=t({name:"UniTag",emits:["click"],props:{type:{type:String,default:"default"},size:{type:String,default:"normal"},text:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},inverted:{type:[Boolean,String],default:!1},circle:{type:[Boolean,String],default:!1},mark:{type:[Boolean,String],default:!1},customStyle:{type:String,default:""}},computed:{classes(){const{type:t,disabled:e,inverted:a,circle:i,mark:s,size:n,isTrue:l}=this;return["uni-tag--"+t,"uni-tag--"+n,l(e)?"uni-tag--disabled":"",l(a)?"uni-tag--"+t+"--inverted":"",l(i)?"uni-tag--circle":"",l(s)?"uni-tag--mark":"",l(a)?"uni-tag--inverted uni-tag-text--"+t:"","small"===n?"uni-tag-text--small":""].join(" ")}},methods:{isTrue:t=>!0===t||"true"===t,onClick(){this.isTrue(this.disabled)||this.$emit("click")}}},[["render",function(t,o,c,g,p,m){const y=d;return c.text?(e(),a(y,{key:0,class:l(["uni-tag",m.classes]),style:r(c.customStyle),onClick:m.onClick},{default:i((()=>[s(n(c.text),1)])),_:1},8,["class","style","onClick"])):u("",!0)}],["__scopeId","data-v-f9b60738"]]);export{o as _};
