You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
22 KiB
10 lines
22 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4648],{49726:function(re,B,o){o.d(B,{Z:function(){return I}});var a=o(93264),D=o(79685),h={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M573.7 252.5C422.5 197.4 201.3 96.7 201.3 96.7c-15.7-4.1-17.9 11.1-17.9 11.1-5 61.1 33.6 160.5 53.6 182.8 19.9 22.3 319.1 113.7 319.1 113.7S326 357.9 270.5 341.9c-55.6-16-37.9 17.8-37.9 17.8 11.4 61.7 64.9 131.8 107.2 138.4 42.2 6.6 220.1 4 220.1 4s-35.5 4.1-93.2 11.9c-42.7 5.8-97 12.5-111.1 17.8-33.1 12.5 24 62.6 24 62.6 84.7 76.8 129.7 50.5 129.7 50.5 33.3-10.7 61.4-18.5 85.2-24.2L565 743.1h84.6L603 928l205.3-271.9H700.8l22.3-38.7c.3.5.4.8.4.8S799.8 496.1 829 433.8l.6-1h-.1c5-10.8 8.6-19.7 10-25.8 17-71.3-114.5-99.4-265.8-154.5z"}}]},name:"dingding",theme:"outlined"},E=h,S=o(64507),L=function(R,V){return D.createElement(S.Z,(0,a.Z)((0,a.Z)({},R),{},{ref:V,icon:E}))};L.displayName="DingdingOutlined";var I=D.forwardRef(L)},79586:function(re,B,o){o.d(B,{f:function(){return r}});var a=o(6346),D=o(89543),h=o(68591),E=o.n(h),S=o(79685),L=o(34435),I=o(93264),U=o(33298),R=function(v){return(0,a.Z)({},v.componentCls,{width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}})};function V(p){return(0,U.Xj)("ProLayoutGridContent",function(v){var z=(0,I.Z)((0,I.Z)({},v),{},{componentCls:".".concat(p)});return[R(z)]})}var A=o(63342),r=function(v){var z=(0,S.useContext)(L.X),P=v.children,J=v.contentWidth,ee=v.className,Q=v.style,te=(0,S.useContext)(D.ZP.ConfigContext),ie=te.getPrefixCls,w=v.prefixCls||ie("pro"),de=J||z.contentWidth,G="".concat(w,"-grid-content"),H=V(G),oe=H.wrapSSR,ne=H.hashId,C=de==="Fixed"&&z.layout==="top";return oe((0,A.jsx)("div",{className:E()(G,ne,ee,(0,a.Z)({},"".concat(G,"-wide"),C)),style:Q,children:(0,A.jsx)("div",{className:"".concat(w,"-grid-content-children ").concat(ne).trim(),children:P})}))}},34435:function(re,B,o){o.d(B,{X:function(){return D}});var a=o(79685),D=(0,a.createContext)({})},3426:function(re,B,o){o.r(B),o.d(B,{default:function(){return v}});var a=o(49726),D=o(79586),h=o(36642),E=o(65906),S=o(10951),L=o(18283),I=o(94154),U=o(79685),R=o(24507),V=(0,R.kc)(function(z){var P=z.token;return{title:{position:"relative",color:P.colorText,fontSize:"12px",textAlign:"center"},"head-title":{marginBottom:"20px",color:P.colorTextHeading,fontWeight:"500px",fontSize:"16px"}}}),A=V,r=o(63342),p=h.Z.Step,v=function(){var z=A(),P=z.styles,J=(0,r.jsxs)("div",{className:P.title,children:[(0,r.jsxs)("div",{style:{margin:"8px 0 4px"},children:[(0,r.jsx)("span",{children:"\u66F2\u4E3D\u4E3D"}),(0,r.jsx)(a.Z,{style:{marginLeft:8,color:"#00A0E9"}})]}),(0,r.jsx)("div",{children:"2016-12-12 12:32"})]}),ee=(0,r.jsx)("div",{style:{fontSize:12},className:P.title,children:(0,r.jsxs)("div",{style:{margin:"8px 0 4px"},children:[(0,r.jsx)("span",{children:"\u5468\u6BDB\u6BDB"}),(0,r.jsxs)("a",{href:"",children:[(0,r.jsx)(a.Z,{style:{color:"#00A0E9",marginLeft:8}}),(0,r.jsx)("span",{children:"\u50AC\u4E00\u4E0B"})]})]})}),Q=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(E.Z,{title:"\u9879\u76EE\u540D\u79F0",children:[(0,r.jsx)(E.Z.Item,{label:"\u9879\u76EE ID",children:"23421"}),(0,r.jsx)(E.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u66F2\u4E3D\u4E3D"}),(0,r.jsx)(E.Z.Item,{label:"\u751F\u6548\u65F6\u95F4",children:"2016-12-12 ~ 2017-12-12"})]}),(0,r.jsx)("br",{}),(0,r.jsxs)(h.Z,{progressDot:!0,current:1,children:[(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u521B\u5EFA\u9879\u76EE"}),description:J}),(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u90E8\u95E8\u521D\u5BA1"}),description:ee}),(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u8D22\u52A1\u590D\u6838"})}),(0,r.jsx)(p,{title:(0,r.jsx)("span",{style:{fontSize:14},children:"\u5B8C\u6210"})})]})]}),te=(0,r.jsxs)(U.Fragment,{children:[(0,r.jsx)(S.ZP,{type:"primary",children:"\u8FD4\u56DE\u5217\u8868"}),(0,r.jsx)(S.ZP,{children:"\u67E5\u770B\u9879\u76EE"}),(0,r.jsx)(S.ZP,{children:"\u6253\u5370"})]});return(0,r.jsx)(D.f,{children:(0,r.jsx)(L.Z,{bordered:!1,children:(0,r.jsx)(I.ZP,{status:"success",title:"\u63D0\u4EA4\u6210\u529F",subTitle:"\u63D0\u4EA4\u7ED3\u679C\u9875\u7528\u4E8E\u53CD\u9988\u4E00\u7CFB\u5217\u64CD\u4F5C\u4EFB\u52A1\u7684\u5904\u7406\u7ED3\u679C\uFF0C \u5982\u679C\u4EC5\u662F\u7B80\u5355\u64CD\u4F5C\uFF0C\u4F7F\u7528 Message \u5168\u5C40\u63D0\u793A\u53CD\u9988\u5373\u53EF\u3002 \u672C\u6587\u5B57\u533A\u57DF\u53EF\u4EE5\u5C55\u793A\u7B80\u5355\u7684\u8865\u5145\u8BF4\u660E\uFF0C\u5982\u679C\u6709\u7C7B\u4F3C\u5C55\u793A \u201C\u5355\u636E\u201D\u7684\u9700\u6C42\uFF0C\u4E0B\u9762\u8FD9\u4E2A\u7070\u8272\u533A\u57DF\u53EF\u4EE5\u5448\u73B0\u6BD4\u8F83\u590D\u6742\u7684\u5185\u5BB9\u3002",extra:te,style:{marginBottom:16},children:Q})})})}},18283:function(re,B,o){o.d(B,{Z:function(){return be}});var a=o(79685),D=o(68591),h=o.n(D),E=o(3139),S=o(99248),L=o(73064),I=o(57196),U=o(55095),R=function(e,u){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,s=Object.getOwnPropertySymbols(e);t<s.length;t++)u.indexOf(s[t])<0&&Object.prototype.propertyIsEnumerable.call(e,s[t])&&(i[s[t]]=e[s[t]]);return i},A=e=>{var{prefixCls:u,className:i,hoverable:s=!0}=e,t=R(e,["prefixCls","className","hoverable"]);const{getPrefixCls:n}=a.useContext(S.E_),c=n("card",u),l=h()(`${c}-grid`,i,{[`${c}-grid-hoverable`]:s});return a.createElement("div",Object.assign({},t,{className:l}))},r=o(26477),p=o(4614),v=o(44244),z=o(25830);const P=e=>{const{antCls:u,componentCls:i,headerHeight:s,cardPaddingBase:t,tabsMarginBottom:n}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:s,marginBottom:-1,padding:`0 ${(0,r.bf)(t)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0`},(0,p.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.vS),{[`
|
|
> ${i}-typography,
|
|
> ${i}-typography-edit-content
|
|
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${u}-tabs-top`]:{clear:"both",marginBottom:n,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},J=e=>{const{cardPaddingBase:u,colorBorderSecondary:i,cardShadow:s,lineWidth:t}=e;return{width:"33.33%",padding:u,border:0,borderRadius:0,boxShadow:`
|
|
${(0,r.bf)(t)} 0 0 0 ${i},
|
|
0 ${(0,r.bf)(t)} 0 0 ${i},
|
|
${(0,r.bf)(t)} ${(0,r.bf)(t)} 0 0 ${i},
|
|
${(0,r.bf)(t)} 0 0 0 ${i} inset,
|
|
0 ${(0,r.bf)(t)} 0 0 ${i} inset;
|
|
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:s}}},ee=e=>{const{componentCls:u,iconCls:i,actionsLiMargin:s,cardActionsIconSize:t,colorBorderSecondary:n,actionsBg:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:c,borderTop:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${n}`,display:"flex",borderRadius:`0 0 ${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)}`},(0,p.dF)()),{"& > li":{margin:s,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${u}-btn), > ${i}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:(0,r.bf)(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${i}`]:{fontSize:t,lineHeight:(0,r.bf)(e.calc(t).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${n}`}}})},Q=e=>Object.assign(Object.assign({margin:`${(0,r.bf)(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},(0,p.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},p.vS),"&-description":{color:e.colorTextDescription}}),te=e=>{const{componentCls:u,cardPaddingBase:i,colorFillAlter:s}=e;return{[`${u}-head`]:{padding:`0 ${(0,r.bf)(i)}`,background:s,"&-title":{fontSize:e.fontSize}},[`${u}-body`]:{padding:`${(0,r.bf)(e.padding)} ${(0,r.bf)(i)}`}}},ie=e=>{const{componentCls:u}=e;return{overflow:"hidden",[`${u}-body`]:{userSelect:"none"}}},w=e=>{const{antCls:u,componentCls:i,cardShadow:s,cardHeadPadding:t,colorBorderSecondary:n,boxShadowTertiary:c,cardPaddingBase:l,extraColor:d}=e;return{[i]:Object.assign(Object.assign({},(0,p.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${i}-bordered)`]:{boxShadow:c},[`${i}-head`]:P(e),[`${i}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${i}-body`]:Object.assign({padding:l,borderRadius:` 0 0 ${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)}`},(0,p.dF)()),[`${i}-grid`]:J(e),[`${i}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${u}-image-mask`]:{borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0`}},[`${i}-actions`]:ee(e),[`${i}-meta`]:Q(e)}),[`${i}-bordered`]:{border:`${(0,r.bf)(e.lineWidth)} ${e.lineType} ${n}`,[`${i}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${i}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:s}},[`${i}-contain-grid`]:{borderRadius:`${(0,r.bf)(e.borderRadiusLG)} ${(0,r.bf)(e.borderRadiusLG)} 0 0 `,[`${i}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${i}-loading) ${i}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${i}-contain-tabs`]:{[`> ${i}-head`]:{minHeight:0,[`${i}-head-title, ${i}-extra`]:{paddingTop:t}}},[`${i}-type-inner`]:te(e),[`${i}-loading`]:ie(e),[`${i}-rtl`]:{direction:"rtl"}}},de=e=>{const{componentCls:u,cardPaddingSM:i,headerHeightSM:s,headerFontSizeSM:t}=e;return{[`${u}-small`]:{[`> ${u}-head`]:{minHeight:s,padding:`0 ${(0,r.bf)(i)}`,fontSize:t,[`> ${u}-head-wrapper`]:{[`> ${u}-extra`]:{fontSize:e.fontSize}}},[`> ${u}-body`]:{padding:i}},[`${u}-small${u}-contain-tabs`]:{[`> ${u}-head`]:{[`${u}-head-title, ${u}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},G=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText});var H=(0,v.I$)("Card",e=>{const u=(0,z.TS)(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[w(u),de(u)]},G),oe=function(e,u){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,s=Object.getOwnPropertySymbols(e);t<s.length;t++)u.indexOf(s[t])<0&&Object.prototype.propertyIsEnumerable.call(e,s[t])&&(i[s[t]]=e[s[t]]);return i};const ne=e=>{const{prefixCls:u,actions:i=[]}=e;return a.createElement("ul",{className:`${u}-actions`},i.map((s,t)=>{const n=`action-${t}`;return a.createElement("li",{style:{width:`${100/i.length}%`},key:n},a.createElement("span",null,s))}))};var ue=a.forwardRef((e,u)=>{const{prefixCls:i,className:s,rootClassName:t,style:n,extra:c,headStyle:l={},bodyStyle:d={},title:g,loading:m,bordered:$=!0,size:O,type:b,cover:y,actions:j,tabList:F,children:T,activeTabKey:Z,defaultActiveTabKey:ae,tabBarExtraContent:Y,hoverable:q,tabProps:k={}}=e,M=oe(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:x,direction:X,card:N}=a.useContext(S.E_),pe=_=>{var W;(W=e.onTabChange)===null||W===void 0||W.call(e,_)},se=a.useMemo(()=>{let _=!1;return a.Children.forEach(T,W=>{W&&W.type&&W.type===A&&(_=!0)}),_},[T]),f=x("card",i),[ye,he]=H(f),ve=a.createElement(I.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},T),K=Z!==void 0,me=Object.assign(Object.assign({},k),{[K?"activeKey":"defaultActiveKey"]:K?Z:ae,tabBarExtraContent:Y});let xe;const ce=(0,L.Z)(O),Ce=!ce||ce==="default"?"large":ce,Se=F?a.createElement(U.Z,Object.assign({size:Ce},me,{className:`${f}-head-tabs`,onChange:pe,items:F.map(_=>{var{tab:W}=_,Pe=oe(_,["tab"]);return Object.assign({label:W},Pe)})})):null;(g||c||Se)&&(xe=a.createElement("div",{className:`${f}-head`,style:l},a.createElement("div",{className:`${f}-head-wrapper`},g&&a.createElement("div",{className:`${f}-head-title`},g),c&&a.createElement("div",{className:`${f}-extra`},c)),Se));const je=y?a.createElement("div",{className:`${f}-cover`},y):null,Ee=a.createElement("div",{className:`${f}-body`,style:d},m?ve:T),Oe=j&&j.length?a.createElement(ne,{prefixCls:f,actions:j}):null,Be=(0,E.Z)(M,["onTabChange"]),De=h()(f,N==null?void 0:N.className,{[`${f}-loading`]:m,[`${f}-bordered`]:$,[`${f}-hoverable`]:q,[`${f}-contain-grid`]:se,[`${f}-contain-tabs`]:F&&F.length,[`${f}-${ce}`]:ce,[`${f}-type-${b}`]:!!b,[`${f}-rtl`]:X==="rtl"},s,t,he),ze=Object.assign(Object.assign({},N==null?void 0:N.style),n);return ye(a.createElement("div",Object.assign({ref:u},Be,{className:De,style:ze}),xe,je,Ee,Oe))}),ge=function(e,u){var i={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&u.indexOf(s)<0&&(i[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,s=Object.getOwnPropertySymbols(e);t<s.length;t++)u.indexOf(s[t])<0&&Object.prototype.propertyIsEnumerable.call(e,s[t])&&(i[s[t]]=e[s[t]]);return i},fe=e=>{const{prefixCls:u,className:i,avatar:s,title:t,description:n}=e,c=ge(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=a.useContext(S.E_),d=l("card",u),g=h()(`${d}-meta`,i),m=s?a.createElement("div",{className:`${d}-meta-avatar`},s):null,$=t?a.createElement("div",{className:`${d}-meta-title`},t):null,O=n?a.createElement("div",{className:`${d}-meta-description`},n):null,b=$||O?a.createElement("div",{className:`${d}-meta-detail`},$,O):null;return a.createElement("div",Object.assign({},c,{className:g}),m,b)};const le=ue;le.Grid=A,le.Meta=fe;var be=le},65906:function(re,B,o){o.d(B,{Z:function(){return s}});var a=o(79685),D=o(68591),h=o.n(D),E=o(85817),S=o(99248),L=o(73064),I=o(79301),R={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},A=a.createContext({}),r=o(89259),p=function(t,n){var c={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(c[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(t);d<l.length;d++)n.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(t,l[d])&&(c[l[d]]=t[l[d]]);return c};const v=t=>(0,r.Z)(t).map(n=>Object.assign(Object.assign({},n==null?void 0:n.props),{key:n.key}));function z(t,n,c){const l=a.useMemo(()=>n||v(c),[n,c]);return a.useMemo(()=>l.map(g=>{var{span:m}=g,$=p(g,["span"]);return Object.assign(Object.assign({},$),{span:typeof m=="number"?m:(0,E.m9)(t,m)})}),[l,t])}function P(t,n,c){let l=t,d=!1;return(c===void 0||c>n)&&(l=Object.assign(Object.assign({},t),{span:n}),d=c!==void 0),[l,d]}function J(t,n){const c=[];let l=[],d=n,g=!1;return t.filter(m=>m).forEach((m,$)=>{const O=m==null?void 0:m.span,b=O||1;if($===t.length-1){const[y,j]=P(m,d,O);g=g||j,l.push(y),c.push(l);return}if(b<d)d-=b,l.push(m);else{const[y,j]=P(m,d,b);g=g||j,l.push(y),c.push(l),d=n,l=[]}}),[c,g]}var Q=(t,n)=>{const[c,l]=(0,a.useMemo)(()=>J(n,t),[n,t]);return c},ie=t=>{let{children:n}=t;return n};function w(t){return t!=null}var G=t=>{const{itemPrefixCls:n,component:c,span:l,className:d,style:g,labelStyle:m,contentStyle:$,bordered:O,label:b,content:y,colon:j}=t,F=c;return O?a.createElement(F,{className:h()({[`${n}-item-label`]:w(b),[`${n}-item-content`]:w(y)},d),style:g,colSpan:l},w(b)&&a.createElement("span",{style:m},b),w(y)&&a.createElement("span",{style:$},y)):a.createElement(F,{className:h()(`${n}-item`,d),style:g,colSpan:l},a.createElement("div",{className:`${n}-item-container`},(b||b===0)&&a.createElement("span",{className:h()(`${n}-item-label`,{[`${n}-item-no-colon`]:!j}),style:m},b),(y||y===0)&&a.createElement("span",{className:h()(`${n}-item-content`),style:$},y)))};function H(t,n,c){let{colon:l,prefixCls:d,bordered:g}=n,{component:m,type:$,showLabel:O,showContent:b,labelStyle:y,contentStyle:j}=c;return t.map((F,T)=>{let{label:Z,children:ae,prefixCls:Y=d,className:q,style:k,labelStyle:M,contentStyle:x,span:X=1,key:N}=F;return typeof m=="string"?a.createElement(G,{key:`${$}-${N||T}`,className:q,style:k,labelStyle:Object.assign(Object.assign({},y),M),contentStyle:Object.assign(Object.assign({},j),x),span:X,colon:l,component:m,itemPrefixCls:Y,bordered:g,label:O?Z:null,content:b?ae:null}):[a.createElement(G,{key:`label-${N||T}`,className:q,style:Object.assign(Object.assign(Object.assign({},y),k),M),span:1,colon:l,component:m[0],itemPrefixCls:Y,bordered:g,label:Z}),a.createElement(G,{key:`content-${N||T}`,className:q,style:Object.assign(Object.assign(Object.assign({},j),k),x),span:X*2-1,component:m[1],itemPrefixCls:Y,bordered:g,content:ae})]})}var ne=t=>{const n=a.useContext(A),{prefixCls:c,vertical:l,row:d,index:g,bordered:m}=t;return l?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${g}`,className:`${c}-row`},H(d,t,Object.assign({component:"th",type:"label",showLabel:!0},n))),a.createElement("tr",{key:`content-${g}`,className:`${c}-row`},H(d,t,Object.assign({component:"td",type:"content",showContent:!0},n)))):a.createElement("tr",{key:g,className:`${c}-row`},H(d,t,Object.assign({component:m?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},n)))},C=o(26477),ue=o(4614),ge=o(44244),$e=o(25830);const fe=t=>{const{componentCls:n,labelBg:c}=t;return{[`&${n}-bordered`]:{[`> ${n}-view`]:{border:`${(0,C.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${n}-row`]:{borderBottom:`${(0,C.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,C.bf)(t.padding)} ${(0,C.bf)(t.paddingLG)}`,borderInlineEnd:`${(0,C.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${n}-item-label`]:{color:t.colorTextSecondary,backgroundColor:c,"&::after":{display:"none"}}}},[`&${n}-middle`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,C.bf)(t.paddingSM)} ${(0,C.bf)(t.paddingLG)}`}}},[`&${n}-small`]:{[`${n}-row`]:{[`> ${n}-item-label, > ${n}-item-content`]:{padding:`${(0,C.bf)(t.paddingXS)} ${(0,C.bf)(t.padding)}`}}}}}},le=t=>{const{componentCls:n,extraColor:c,itemPaddingBottom:l,colonMarginRight:d,colonMarginLeft:g,titleMarginBottom:m}=t;return{[n]:Object.assign(Object.assign(Object.assign({},(0,ue.Wf)(t)),fe(t)),{["&-rtl"]:{direction:"rtl"},[`${n}-header`]:{display:"flex",alignItems:"center",marginBottom:m},[`${n}-title`]:Object.assign(Object.assign({},ue.vS),{flex:"auto",color:t.titleColor,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}),[`${n}-extra`]:{marginInlineStart:"auto",color:c,fontSize:t.fontSize},[`${n}-view`]:{width:"100%",borderRadius:t.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${n}-row`]:{"> th, > td":{paddingBottom:l},"&:last-child":{borderBottom:"none"}},[`${n}-item-label`]:{color:t.colorTextTertiary,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,C.bf)(g)} ${(0,C.bf)(d)}`},[`&${n}-item-no-colon::after`]:{content:'""'}},[`${n}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${n}-item-content`]:{display:"table-cell",flex:1,color:t.contentColor,fontSize:t.fontSize,lineHeight:t.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${n}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${n}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${n}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${n}-row`]:{"> th, > td":{paddingBottom:t.paddingSM}}},"&-small":{[`${n}-row`]:{"> th, > td":{paddingBottom:t.paddingXS}}}})}},be=t=>({labelBg:t.colorFillAlter,titleColor:t.colorText,titleMarginBottom:t.fontSizeSM*t.lineHeightSM,itemPaddingBottom:t.padding,colonMarginRight:t.marginXS,colonMarginLeft:t.marginXXS/2,contentColor:t.colorText,extraColor:t.colorText});var e=(0,ge.I$)("Descriptions",t=>{const n=(0,$e.TS)(t,{});return le(n)},be),u=function(t,n){var c={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(c[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(t);d<l.length;d++)n.indexOf(l[d])<0&&Object.prototype.propertyIsEnumerable.call(t,l[d])&&(c[l[d]]=t[l[d]]);return c};const i=t=>{const{prefixCls:n,title:c,extra:l,column:d,colon:g=!0,bordered:m,layout:$,children:O,className:b,rootClassName:y,style:j,size:F,labelStyle:T,contentStyle:Z,items:ae}=t,Y=u(t,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:q,direction:k,descriptions:M}=a.useContext(S.E_),x=q("descriptions",n),X=(0,I.Z)(),N=a.useMemo(()=>{var K;return typeof d=="number"?d:(K=(0,E.m9)(X,Object.assign(Object.assign({},R),d)))!==null&&K!==void 0?K:3},[X,d]),pe=z(X,ae,O),se=(0,L.Z)(F),f=Q(N,pe),[ye,he]=e(x),ve=a.useMemo(()=>({labelStyle:T,contentStyle:Z}),[T,Z]);return ye(a.createElement(A.Provider,{value:ve},a.createElement("div",Object.assign({className:h()(x,M==null?void 0:M.className,{[`${x}-${se}`]:se&&se!=="default",[`${x}-bordered`]:!!m,[`${x}-rtl`]:k==="rtl"},b,y,he),style:Object.assign(Object.assign({},M==null?void 0:M.style),j)},Y),(c||l)&&a.createElement("div",{className:`${x}-header`},c&&a.createElement("div",{className:`${x}-title`},c),l&&a.createElement("div",{className:`${x}-extra`},l)),a.createElement("div",{className:`${x}-view`},a.createElement("table",null,a.createElement("tbody",null,f.map((K,me)=>a.createElement(ne,{key:me,index:me,colon:g,prefixCls:x,vertical:$==="vertical",bordered:m,row:K}))))))))};i.Item=ie;var s=i}}]);
|
|
|