import{d as _,r as v,i as y,ak as f,_ as m,__tla as d}from"./index-2c56227b.js";import{i as T}from"./color-6e929987.js";import{d as g,__tla as h}from"./dict-763dd292.js";let n,C=Promise.all([(()=>{try{return d}catch{}})(),(()=>{try{return h}catch{}})()]).then(async()=>{n=m(_({name:"DictTag",props:{type:{type:String,required:!0},value:{type:[String,Number,Boolean],required:!0}},setup(r){const l=v(),p=()=>{var s,o,u,c,i;return r.type?r.value===void 0||r.value===null?null:(e=r.type,t=r.value.toString(),g(e).forEach(a=>{a.value===t&&(a.colorType+""!="primary"&&a.colorType+""!="default"||(a.colorType=""),l.value=a)}),y(f,{style:(s=l.value)!=null&&s.cssClass?"color: #fff":"",type:(o=l.value)==null?void 0:o.colorType,color:(u=l.value)!=null&&u.cssClass&&T((c=l.value)==null?void 0:c.cssClass)?(i=l.value)==null?void 0:i.cssClass:"",disableTransitions:!0},{default:()=>{var a;return[(a=l.value)==null?void 0:a.label]}})):null;var e,t};return()=>p()}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/components/DictTag/src/DictTag.vue"]])});export{n as _,C as __tla};
