import{d,l as t,aM as p,aN as c,r as m,J as b,M as f}from"./index.1d1a5ecb.js";const y={title:{type:String},colNumber:{type:Number,default:24},columns:{type:Array},data:{type:Object},labelWidth:{type:String},show:{type:Boolean,default:!0}};const h=d({name:"BasicDescriptions",props:y,setup(l,{slots:s}){return()=>{const{title:n,colNumber:r,columns:i,data:a,labelWidth:o,show:u}=l;return u?t(c,{title:n,border:!0,column:r,size:"small"},{default:()=>[i.map(e=>t(p,{label:e.label,key:e.field,span:e.span?e.span:6},{default:()=>[t("div",{class:"col-item"},[t("p",{class:"col-label",style:{width:o+"px"}},[e.label]),t("p",{class:"col-value"},[e.render?e.render(a[e.field],a):a[e.field]])])]})),s.custom&&s.custom(l.data)]}):t("div",{style:{display:"flex",width:"100%",justifyContent:"center",flexDirection:"column",alignItems:"center"}},[t(m("el-button"),{text:!0,size:"large",icon:b("warning-filled"),disabled:!0},null),t("span",null,[f("\u6682\u65E0\u6570\u636E")])])}}});export{h as B};
