import{u}from"./hooks.428ba1c3.js";import{b as p,j as t,bp as c,bq as m,k as b,l as f}from"./index.4d3e3847.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}},h=p({name:"BasicDescriptions",props:y,setup(i,{slots:s}){return()=>{const{title:n,colNumber:l,columns:r,data:a,labelWidth:d,show:o}=i;return o?t(m,{title:n,border:!0,width:i.labelWidth,column:l,size:"small"},{default:()=>[r.map(e=>t(c,{label:e.label,key:e.field,span:e.span,labeWidth:e.labelWidth?e.labelWidth:d},{default:()=>[e.render?e.render(a[e.field],a):a[e.field],e.append]})),s.custom&&s.custom(i.data)]}):t("div",{style:{display:"flex",width:"100%",justifyContent:"center",flexDirection:"column",alignItems:"center"}},[t(b("el-button"),{text:!0,size:"large",icon:u("warning-filled"),disabled:!0},null),t("span",null,[f("\u6682\u65E0\u6570\u636E")])])}}}),g=h;export{g as B};
