1 |
- import{d,y as t,aJ as p,aK as c,x as m,R as b,W as f}from"./index.1417328f.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:i,columns:r,data:a,labelWidth:o,show:u}=l;return u?t(c,{title:n,border:!0,column:i,size:"small"},{default:()=>[r.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};
|