"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue"),a=require("lodash-unified");require("../../../config-provider/index.js");require("../../ap-tag/index.js");const l=require("../ApLabel.js"),s=require("../constans.js"),c=require("../../../config-provider/hooks/use-namespace.js"),d=require("../../ap-tag/ap-tag.vue.js"),i=u.defineComponent({name:"ApLabelGroup",props:s.ApLabelGroupProps(),setup(r){const{b:n}=c.useNamespace("ap-label-group"),o=e=>(r.tagValue||r.tagValue===0)&&e.tagConfig&&e.tagConfig.length>0?()=>e.tagConfig.filter(t=>r.tagValue===t.value).map(t=>u.createVNode(d.default,u.mergeProps(a.omit(t,["type","size"]),{size:"small",type:"border"}),null)):e.customRender?()=>u.createVNode("div",null,[e.customRender(r.record)]):null;return()=>u.createVNode("div",{class:n()},[r.columns?r.columns.map((e,t)=>u.createVNode(l.default,u.mergeProps({key:t,show:r.value===e.value},a.omit(e,["value","tagConfig","customRender"])),{custom:o(e)})):u.createVNode("div",null,[u.createTextVNode("columns数组不能为空")])])}});exports.default=i;
