Files
shz-admin/shihezi/6412.fc6426bb.async.js

2 lines
10 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6412],{26412:function(ve,G,v){v.d(G,{Z:function(){return re}});var s=v(67294),H=v(93967),j=v.n(H),L=v(74443),X=v(53124),U=v(98675),F=v(25378),Z={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},P=s.createContext({}),V=v(50344),J=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(i[n[l]]=e[n[l]]);return i};const K=e=>(0,V.Z)(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function Q(e,t,i){const n=s.useMemo(()=>t||K(i),[t,i]);return s.useMemo(()=>n.map(r=>{var{span:o}=r,g=J(r,["span"]);return o==="filled"?Object.assign(Object.assign({},g),{filled:!0}):Object.assign(Object.assign({},g),{span:typeof o=="number"?o:(0,L.m9)(e,o)})}),[n,e])}var Y=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&Object.prototype.propertyIsEnumerable.call(e,n[l])&&(i[n[l]]=e[n[l]]);return i};function q(e,t){let i=[],n=[],l=!1,r=0;return e.filter(o=>o).forEach(o=>{const{filled:g}=o,u=Y(o,["filled"]);if(g){n.push(u),i.push(n),n=[],r=0;return}const p=t-r;r+=o.span||1,r>=t?(r>t?(l=!0,n.push(Object.assign(Object.assign({},u),{span:p}))):n.push(u),i.push(n),n=[],r=0):n.push(u)}),n.length>0&&i.push(n),i=i.map(o=>{const g=o.reduce((u,p)=>u+(p.span||1),0);if(g<t){const u=o[o.length-1];return u.span=t-(g-(u.span||1)),o}return o}),[i,l]}var _=(e,t)=>{const[i,n]=(0,s.useMemo)(()=>q(t,e),[t,e]);return i},k=({children:e})=>e;function T(e){return e!=null}var M=e=>{const{itemPrefixCls:t,component:i,span:n,className:l,style:r,labelStyle:o,contentStyle:g,bordered:u,label:p,content:d,colon:S,type:$,styles:b}=e,h=i,a=s.useContext(P),{classNames:m}=a;return u?s.createElement(h,{className:j()({[`${t}-item-label`]:$==="label",[`${t}-item-content`]:$==="content",[`${m==null?void 0:m.label}`]:$==="label",[`${m==null?void 0:m.content}`]:$==="content"},l),style:r,colSpan:n},T(p)&&s.createElement("span",{style:Object.assign(Object.assign({},o),b==null?void 0:b.label)},p),T(d)&&s.createElement("span",{style:Object.assign(Object.assign({},o),b==null?void 0:b.content)},d)):s.createElement(h,{className:j()(`${t}-item`,l),style:r,colSpan:n},s.createElement("div",{className:`${t}-item-container`},(p||p===0)&&s.createElement("span",{className:j()(`${t}-item-label`,m==null?void 0:m.label,{[`${t}-item-no-colon`]:!S}),style:Object.assign(Object.assign({},o),b==null?void 0:b.label)},p),(d||d===0)&&s.createElement("span",{className:j()(`${t}-item-content`,m==null?void 0:m.content),style:Object.assign(Object.assign({},g),b==null?void 0:b.content)},d)))};function B(e,{colon:t,prefixCls:i,bordered:n},{component:l,type:r,showLabel:o,showContent:g,labelStyle:u,contentStyle:p,styles:d}){return e.map(({label:S,children:$,prefixCls:b=i,className:h,style:a,labelStyle:m,contentStyle:c,span:I=1,key:E,styles:f},w)=>typeof l=="string"?s.createElement(M,{key:`${r}-${E||w}`,className:h,style:a,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.label),m),f==null?void 0:f.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},p),d==null?void 0:d.content),c),f==null?void 0:f.content)},span:I,colon:t,component:l,itemPrefixCls:b,bordered:n,label:o?S:null,content:g?$:null,type:r}):[s.createElement(M,{key:`label-${E||w}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.label),a),m),f==null?void 0:f.label),span:1,colon:t,component:l[0],itemPrefixCls:b,bordered:n,label:S,type:"label"}),s.createElement(M,{key:`content-${E||w}`,className:h,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),d==null?void 0:d.content