Files
machartaa_admin_dist/dist/assets/index-7008f7e9.js
T

2 lines
5.4 KiB
JavaScript
Raw Normal View History

2026-06-28 10:25:01 +03:30
import{b as a,an as w,a3 as ae,g as F,F as re,b8 as ce,by as se,bd as ie,aq as p,aj as L,d as te,ab as ue,aW as de,am as ne,O as ve,a2 as fe,a7 as Q,h as ye,ap as pe,aX as be}from"./index-6a73e237.js";import{R as Y,r as Z}from"./styleChecker-1fac0a11.js";import{c as me}from"./vnode-e651f296.js";function k(l){return l!=null}var Se=function(e){var n=e.itemPrefixCls,t=e.component,r=e.span,o=e.labelStyle,u=e.contentStyle,m=e.bordered,c=e.label,i=e.content,s=e.colon,S=t;if(m){var v;return a(S,{class:[(v={},w(v,"".concat(n,"-item-label"),k(c)),w(v,"".concat(n,"-item-content"),k(i)),v)],colSpan:r},{default:function(){return[k(c)&&a("span",{style:o},[c]),k(i)&&a("span",{style:u},[i])]}})}return a(S,{class:["".concat(n,"-item")],colSpan:r},{default:function(){return[a("div",{class:"".concat(n,"-item-container")},[c&&a("span",{class:["".concat(n,"-item-label"),w({},"".concat(n,"-item-no-colon"),!s)],style:o},[c]),i&&a("span",{class:"".concat(n,"-item-content"),style:u},[i])])]}})};const B=Se;var Ce=function(e){var n=function(v,d,b){var $=d.colon,I=d.prefixCls,C=d.bordered,x=b.component,O=b.type,N=b.showLabel,R=b.showContent,h=b.labelStyle,P=b.contentStyle;return v.map(function(f,j){var g,D,y=f.props||{},U=y.prefixCls,E=U===void 0?I:U,T=y.span,q=T===void 0?1:T,V=y.labelStyle,W=V===void 0?y["label-style"]:V,X=y.contentStyle,G=X===void 0?y["content-style"]:X,H=y.label,J=H===void 0?(g=f.children)===null||g===void 0||(D=g.label)===null||D===void 0?void 0:D.call(g):H,K=ce(f),A=se(f),M=ie(f),z=f.key;return typeof x=="string"?a(B,{key:"".concat(O,"-").concat(String(z)||j),class:A,style:M,labelStyle:p(p({},h),W),contentStyle:p(p({},P),G),span:q,colon:$,component:x,itemPrefixCls:E,bordered:C,label:N?J:null,content:R?K:null},null):[a(B,{key:"label-".concat(String(z)||j),class:A,style:p(p(p({},h),M),W),span:1,colon:$,component:x[0],itemPrefixCls:E,bordered:C,label:J},null),a(B,{key:"content-".concat(String(z)||j),class:A,style:p(p(p({},P),M),G),span:q*2-1,component:x[1],itemPrefixCls:E,bordered:C,content:K},null)]})},t=e.prefixCls,r=e.vertical,o=e.row,u=e.index,m=e.bordered,c=ae(oe,{labelStyle:F({}),contentStyle:F({})}),i=c.labelStyle,s=c.contentStyle;return r?a(re,null,[a("tr",{key:"label-".concat(u),class:"".concat(t,"-row")},[n(o,e,{component:"th",type:"label",showLabel:!0,labelStyle:i.value,contentStyle:s.value})]),a("tr",{key:"content-".concat(u),class:"".concat(t,"-row")},[n(o,e,{component:"td",type:"content",showContent:!0,labelStyle:i.value,contentStyle:s.value})])]):a("tr",{key:u,class:"".concat(t,"-row")},[n(o,e,{component:m?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:i.value,contentStyle:s.value})])};const xe=Ce;L.any;var he=function(){return{prefixCls:String,label:L.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}},ge=te({compatConfig:{MODE:3},name:"ADescriptionsItem",props:he(),slots:["label"],setup:function(e,n){var t=n.slots;return function(){var r;return(r=t.default)===null||r===void 0?void 0:r.call(t)}}}),le={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function _e(l,e){if(typeof l=="number")return l;if(ne(l)==="object")for(var n=0;n<Z.length;n++){var t=Z[n];if(e[t]&&l[t]!==void 0)return l[t]||le[t]}return 3}function ee(l,e,n){var t=l;return(e===void 0||e>n)&&(t=me(l,{span:n}),be(e===void 0,"Descriptions","Sum of column `span` in a line not match `column` of Descriptions.")),t}function we(l,e){var n=pe(l),t=[],r=[],o=e;return n.forEach(function(u,m){var c,i=(c=u.props)===null||c===void 0?void 0:c.span,s=i||1;if(m===n.length-1){r.push(ee(u,i,o)),t.push(r);return}s<o?(o-=s,r.push(u)):(r.push(ee(u,s,o)),t.push(r),o=e,r=[])}),t}var $e=function(){return{prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:L.any,extra:L.any,column:{type:[Number,Object],default:function(){return le}},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}},oe=Symbol("descriptionsContext"),_=te({compatConfig:{MODE:3},name:"ADescriptions",props:$