import{o as t,h as e,w as a,j as i,t as s,A as n,W as l,N as r,y as u}from"./index-WeUkftbp.js";import{_ as o}from"./_plugin-vue_export-helper.BCo6x5W8.js";const d=o({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(o,d,c,g,p,m){const y=u;return c.text?(t(),e(y,{key:0,class:n(["uni-tag",m.classes]),style:l(c.customStyle),onClick:m.onClick},{default:a((()=>[i(s(c.text),1)])),_:1},8,["class","style","onClick"])):r("",!0)}],["__scopeId","data-v-9f3c5d16"]]);export{d as _};
