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.
1 lines
22 KiB
1 lines
22 KiB
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9078],{49726:function(ne,Z,n){n.d(Z,{Z:function(){return I}});var a=n(93264),h=n(79685),F={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"},B=F,D=n(64507),L=function(K,ae){return h.createElement(D.Z,(0,a.Z)((0,a.Z)({},K),{},{ref:ae,icon:B}))};L.displayName="DingdingOutlined";var I=h.forwardRef(L)},29514:function(ne,Z,n){var a=n(93264),h=n(79685),F=n(90462),B=n(64507),D=function(I,R){return h.createElement(B.Z,(0,a.Z)((0,a.Z)({},I),{},{ref:R,icon:F.Z}))};D.displayName="DownOutlined",Z.Z=h.forwardRef(D)},12086:function(ne,Z,n){var a=n(93264),h=n(79685),F=n(62415),B=n(64507),D=function(I,R){return h.createElement(B.Z,(0,a.Z)((0,a.Z)({},I),{},{ref:R,icon:F.Z}))};D.displayName="EllipsisOutlined",Z.Z=h.forwardRef(D)},63243:function(ne,Z,n){var a=n(93264),h=n(79685),F=n(92933),B=n(64507),D=function(I,R){return h.createElement(B.Z,(0,a.Z)((0,a.Z)({},I),{},{ref:R,icon:F.Z}))};D.displayName="InfoCircleOutlined",Z.Z=h.forwardRef(D)},9097:function(ne,Z,n){n.r(Z),n.d(Z,{default:function(){return P}});var a=n(42329),h=n.n(a),F=n(97380),B=n.n(F),D=n(29514),L=n(12086),I=n(49726),R=n(63243),K=n(34435),ae=n(89336),le=n(79586),se=n(8025),ie=n(36642),U=n(10951),re=n(37741),ue=n(27097),H=n(6774),ce=n(45161),o=n(65906),fe=n(8262),Q=n(73198),T=n(18283),pe=n(58898),w=n(498),k=n(32626),g=n(68591),d=n.n(g),u=n(79685),x=n(29195),b=n.n(x),O=n(56717),E=n.n(O);function C(){return f.apply(this,arguments)}function f(){return f=E()(b()().mark(function p(){return b()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,se.request)("/api/profile/advanced"));case 1:case"end":return v.stop()}},p)})),f.apply(this,arguments)}var S=n(37482),A=n.n(S),y=n(24507),j=(0,y.kc)(function(p){var m=p.token;return{main:{".ant-descriptions-row > td":{paddingBottom:"8px"},".ant-page-header-heading-extra":{flexDirection:"column"}},headerList:{marginBottom:"4px",".ant-descriptions-row > td":{paddingBottom:"8px"}},stepDescription:A()({position:"relative",left:"38px",paddingTop:"8px",fontSize:"14px",textAlign:"left","> div":{marginTop:"8px",marginBottom:"4px"}},"@media screen and (max-width: ".concat(m.screenSM,"px)"),{left:"8px"}),pageHeader:A()({".ant-page-header-heading-extra > * + *":{marginLeft:"8px"}},"@media screen and (max-width: ".concat(m.screenSM,"px)"),{".ant-pro-page-header-wrap-row":{flexDirection:"column"}}),moreInfo:{display:"flex",justifyContent:"space-between",width:"200px"}}}),t=j,e=n(63342),s=ie.Z.Step,l=U.ZP.Group,i=(0,e.jsx)(K.X.Consumer,{children:function(m){var v=m.isMobile;return v?(0,e.jsx)(re.Z.Button,{type:"primary",icon:(0,e.jsx)(D.Z,{}),menu:{items:[{key:"1",label:"\u64CD\u4F5C\u4E00"},{key:"2",label:"\u64CD\u4F5C\u4E8C"},{key:"3",label:"\u64CD\u4F5C\u4E09"}]},placement:"bottomRight",children:"\u4E3B\u64CD\u4F5C"}):(0,e.jsxs)(ue.Z,{children:[(0,e.jsxs)(l,{children:[(0,e.jsx)(U.ZP,{children:"\u64CD\u4F5C\u4E00"}),(0,e.jsx)(U.ZP,{children:"\u64CD\u4F5C\u4E8C"}),(0,e.jsx)(re.Z,{menu:{items:[{key:"1",label:"\u9009\u9879\u4E00"},{key:"2",label:"\u9009\u9879\u4E8C"},{key:"3",label:"\u9009\u9879\u4E09"}]},placement:"bottomRight",children:(0,e.jsx)(U.ZP,{children:(0,e.jsx)(L.Z,{})})})]}),(0,e.jsx)(U.ZP,{type:"primary",children:"\u4E3B\u64CD\u4F5C"})]})}}),c=[{key:"tab1",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E00"},{key:"tab2",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E8C"},{key:"tab3",tab:"\u64CD\u4F5C\u65E5\u5FD7\u4E09"}],r=[{title:"\u64CD\u4F5C\u7C7B\u578B",dataIndex:"type",key:"type"},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",key:"name"},{title:"\u6267\u884C\u7ED3\u679C",dataIndex:"status",key:"status",render:function(m){return m==="agree"?(0,e.jsx)(H.Z,{status:"success",text:"\u6210\u529F"}):(0,e.jsx)(H.Z,{status:"error",text:"\u9A73\u56DE"})}},{title:"\u64CD\u4F5C\u65F6\u95F4",dataIndex:"updatedAt",key:"updatedAt"},{title:"\u5907\u6CE8",dataIndex:"memo",key:"memo"}],M=function(){var m=t(),v=m.styles,G=(0,e.jsxs)("div",{className:v.moreInfo,children:[(0,e.jsx)(ce.Z,{title:"\u72B6\u6001",value:"\u5F85\u5BA1\u6279"}),(0,e.jsx)(ce.Z,{title:"\u8BA2\u5355\u91D1\u989D",value:568.08,prefix:"\xA5"})]}),V=(0,e.jsx)(K.X.Consumer,{children:function(W){var me=W.isMobile;return(0,e.jsxs)(o.Z,{className:v.headerList,size:"small",column:me?1:2,children:[(0,e.jsx)(o.Z.Item,{label:"\u521B\u5EFA\u4EBA",children:"\u66F2\u4E3D\u4E3D"}),(0,e.jsx)(o.Z.Item,{label:"\u8BA2\u8D2D\u4EA7\u54C1",children:"XX \u670D\u52A1"}),(0,e.jsx)(o.Z.Item,{label:"\u521B\u5EFA\u65F6\u95F4",children:"2017-07-07"}),(0,e.jsx)(o.Z.Item,{label:"\u5173\u8054\u5355\u636E",children:(0,e.jsx)("a",{href:"",children:"12421"})}),(0,e.jsx)(o.Z.Item,{label:"\u751F\u6548\u65E5\u671F",children:"2017-07-07 ~ 2017-08-08"}),(0,e.jsx)(o.Z.Item,{label:"\u5907\u6CE8",children:"\u8BF7\u4E8E\u4E24\u4E2A\u5DE5\u4F5C\u65E5\u5185\u786E\u8BA4"})]})}}),q=(0,e.jsxs)("div",{className:d()(v.stepDescription),children:[(0,e.jsxs)(u.Fragment,{children:["\u66F2\u4E3D\u4E3D",(0,e.jsx)(I.Z,{style:{marginLeft:8}})]}),(0,e.jsx)("div",{children:"2016-12-12 12:32"})]}),oe=(0,e.jsxs)("div",{className:v.stepDescription,children:[(0,e.jsxs)(u.Fragment,{children:["\u5468\u6BDB\u6BDB",(0,e.jsx)(I.Z,{style:{color:"#00A0E9",marginLeft:8}})]}),(0,e.jsx)("div",{children:(0,e.jsx)("a",{href:"",children:"\u50AC\u4E00\u4E0B"})})]}),_=(0,u.useState)({operationKey:"tab1",tabActiveKey:"detail"}),Y=B()(_,2),z=Y[0],N=Y[1],$=function(W,me){var be=me.status,Ce=(0,e.jsxs)("div",{style:{width:160},children:["\u5434\u52A0\u53F7",(0,e.jsx)("span",{style:{float:"right"},children:(0,e.jsx)(H.Z,{status:"default",text:(0,e.jsx)("span",{style:{color:"rgba(0, 0, 0, 0.45)"},children:"\u672A\u54CD\u5E94"})})}),(0,e.jsx)("div",{style:{marginTop:4},children:"\u8017\u65F6\uFF1A2\u5C0F\u65F625\u5206\u949F"})]});return be==="process"?(0,e.jsx)(fe.Z,{placement:"topLeft",arrowPointAtCenter:!0,content:Ce,children:(0,e.jsx)("span",{children:W})}):W},X=(0,se.useRequest)(C),J=X.data,de=J===void 0?{}:J,ee=X.loading,xe=de.advancedOperation1,Ee=de.advancedOperation2,ye=de.advancedOperation3,he={tab1:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:xe,columns:r}),tab2:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:Ee,columns:r}),tab3:(0,e.jsx)(Q.Z,{pagination:!1,loading:ee,dataSource:ye,columns:r})},te=function(W){N(h()(h()({},z),{},{tabActiveKey:W}))},ve=function(W){N(h()(h()({},z),{},{operationKey:W}))};return(0,e.jsx)(ae._z,{title:"\u5355\u53F7\uFF1A234231029431",extra:i,className:v.pageHeader,content:V,extraContent:G,tabActiveKey:z.tabActiveKey,onTabChange:te,tabList:[{key:"detail",tab:"\u8BE6\u60C5"},{key:"rule",tab:"\u89C4\u5219"}],children:(0,e.jsx)("div",{className:v.main,children:(0,e.jsxs)(le.f,{children:[(0,e.jsx)(T.Z,{title:"\u6D41\u7A0B\u8FDB\u5EA6",style:{marginBottom:24},children:(0,e.jsx)(K.X.Consumer,{children:function(W){var me=W.isMobile;return(0,e.jsxs)(ie.Z,{direction:me?"vertical":"horizontal",progressDot:$,current:1,children:[(0,e.jsx)(s,{title:"\u521B\u5EFA\u9879\u76EE",description:q}),(0,e.jsx)(s,{title:"\u90E8\u95E8\u521D\u5BA1",description:oe}),(0,e.jsx)(s,{title:"\u8D22\u52A1\u590D\u6838"}),(0,e.jsx)(s,{title:"\u5B8C\u6210"})]})}})}),(0,e.jsxs)(T.Z,{title:"\u7528\u6237\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:[(0,e.jsxs)(o.Z,{style:{marginBottom:24},children:[(0,e.jsx)(o.Z.Item,{label:"\u7528\u6237\u59D3\u540D",children:"\u4ED8\u5C0F\u5C0F"}),(0,e.jsx)(o.Z.Item,{label:"\u4F1A\u5458\u5361\u53F7",children:"32943898021309809423"}),(0,e.jsx)(o.Z.Item,{label:"\u8EAB\u4EFD\u8BC1",children:"3321944288191034921"}),(0,e.jsx)(o.Z.Item,{label:"\u8054\u7CFB\u65B9\u5F0F",children:"18112345678"}),(0,e.jsx)(o.Z.Item,{label:"\u8054\u7CFB\u5730\u5740",children:"\u66F2\u4E3D\u4E3D 18100000000 \u6D59\u6C5F\u7701\u676D\u5DDE\u5E02\u897F\u6E56\u533A\u9EC4\u59D1\u5C71\u8DEF\u5DE5\u4E13\u8DEF\u4EA4\u53C9\u8DEF\u53E3"})]}),(0,e.jsxs)(o.Z,{style:{marginBottom:24},title:"\u4FE1\u606F\u7EC4",children:[(0,e.jsx)(o.Z.Item,{label:"\u67D0\u67D0\u6570\u636E",children:"725"}),(0,e.jsx)(o.Z.Item,{label:"\u8BE5\u6570\u636E\u66F4\u65B0\u65F6\u95F4",children:"2017-08-08"}),(0,e.jsx)(o.Z.Item,{label:(0,e.jsxs)("span",{children:["\u67D0\u67D0\u6570\u636E",(0,e.jsx)(pe.Z,{title:"\u6570\u636E\u8BF4\u660E",children:(0,e.jsx)(R.Z,{style:{color:"rgba(0, 0, 0, 0.43)",marginLeft:4}})})]}),children:"725"}),(0,e.jsx)(o.Z.Item,{label:"\u8BE5\u6570\u636E\u66F4\u65B0\u65F6\u95F4",children:"2017-08-08"})]}),(0,e.jsx)("h4",{style:{marginBottom:16},children:"\u4FE1\u606F\u7EC4"}),(0,e.jsxs)(T.Z,{type:"inner",title:"\u591A\u5C42\u7EA7\u4FE1\u606F\u7EC4",children:[(0,e.jsxs)(o.Z,{style:{marginBottom:16},title:"\u7EC4\u540D\u79F0",children:[(0,e.jsx)(o.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u6797\u4E1C\u4E1C"}),(0,e.jsx)(o.Z.Item,{label:"\u89D2\u8272\u7801",children:"1234567"}),(0,e.jsx)(o.Z.Item,{label:"\u6240\u5C5E\u90E8\u95E8",children:"XX\u516C\u53F8 - YY\u90E8"}),(0,e.jsx)(o.Z.Item,{label:"\u8FC7\u671F\u65F6\u95F4",children:"2017-08-08"}),(0,e.jsx)(o.Z.Item,{label:"\u63CF\u8FF0",children:"\u8FD9\u6BB5\u63CF\u8FF0\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F\u5F88\u957F..."})]}),(0,e.jsx)(w.Z,{style:{margin:"16px 0"}}),(0,e.jsx)(o.Z,{style:{marginBottom:16},title:"\u7EC4\u540D\u79F0",column:1,children:(0,e.jsx)(o.Z.Item,{label:"\u5B66\u540D",children:"Citrullus lanatus (Thunb.) Matsum. et Nakai\u4E00\u5E74\u751F\u8513\u751F\u85E4\u672C\uFF1B\u830E\u3001\u679D\u7C97\u58EE\uFF0C\u5177\u660E\u663E\u7684\u68F1\u3002\u5377\u987B\u8F83\u7C97.."})}),(0,e.jsx)(w.Z,{style:{margin:"16px 0"}}),(0,e.jsxs)(o.Z,{title:"\u7EC4\u540D\u79F0",children:[(0,e.jsx)(o.Z.Item,{label:"\u8D1F\u8D23\u4EBA",children:"\u4ED8\u5C0F\u5C0F"}),(0,e.jsx)(o.Z.Item,{label:"\u89D2\u8272\u7801",children:"1234568"})]})]})]}),(0,e.jsx)(T.Z,{title:"\u7528\u6237\u8FD1\u534A\u5E74\u6765\u7535\u8BB0\u5F55",style:{marginBottom:24},bordered:!1,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(T.Z,{bordered:!1,tabList:c,onTabChange:ve,children:he[z.operationKey]})]})})})},P=M},65906:function(ne,Z,n){n.d(Z,{Z:function(){return j}});var a=n(79685),h=n(68591),F=n.n(h),B=n(85817),D=n(99248),L=n(73064),I=n(79301),K={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},le=a.createContext({}),se=n(89259),ie=function(t,e){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,l=Object.getOwnPropertySymbols(t);i<l.length;i++)e.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(t,l[i])&&(s[l[i]]=t[l[i]]);return s};const U=t=>(0,se.Z)(t).map(e=>Object.assign(Object.assign({},e==null?void 0:e.props),{key:e.key}));function re(t,e,s){const l=a.useMemo(()=>e||U(s),[e,s]);return a.useMemo(()=>l.map(c=>{var{span:r}=c,M=ie(c,["span"]);return Object.assign(Object.assign({},M),{span:typeof r=="number"?r:(0,B.m9)(t,r)})}),[l,t])}function ue(t,e,s){let l=t,i=!1;return(s===void 0||s>e)&&(l=Object.assign(Object.assign({},t),{span:e}),i=s!==void 0),[l,i]}function H(t,e){const s=[];let l=[],i=e,c=!1;return t.filter(r=>r).forEach((r,M)=>{const P=r==null?void 0:r.span,p=P||1;if(M===t.length-1){const[m,v]=ue(r,i,P);c=c||v,l.push(m),s.push(l);return}if(p<i)i-=p,l.push(r);else{const[m,v]=ue(r,i,p);c=c||v,l.push(m),s.push(l),i=e,l=[]}}),[s,c]}var o=(t,e)=>{const[s,l]=(0,a.useMemo)(()=>H(e,t),[e,t]);return s},Q=t=>{let{children:e}=t;return e};function T(t){return t!=null}var w=t=>{const{itemPrefixCls:e,component:s,span:l,className:i,style:c,labelStyle:r,contentStyle:M,bordered:P,label:p,content:m,colon:v}=t,G=s;return P?a.createElement(G,{className:F()({[`${e}-item-label`]:T(p),[`${e}-item-content`]:T(m)},i),style:c,colSpan:l},T(p)&&a.createElement("span",{style:r},p),T(m)&&a.createElement("span",{style:M},m)):a.createElement(G,{className:F()(`${e}-item`,i),style:c,colSpan:l},a.createElement("div",{className:`${e}-item-container`},(p||p===0)&&a.createElement("span",{className:F()(`${e}-item-label`,{[`${e}-item-no-colon`]:!v}),style:r},p),(m||m===0)&&a.createElement("span",{className:F()(`${e}-item-content`),style:M},m)))};function k(t,e,s){let{colon:l,prefixCls:i,bordered:c}=e,{component:r,type:M,showLabel:P,showContent:p,labelStyle:m,contentStyle:v}=s;return t.map((G,V)=>{let{label:q,children:oe,prefixCls:_=i,className:Y,style:z,labelStyle:N,contentStyle:$,span:X=1,key:J}=G;return typeof r=="string"?a.createElement(w,{key:`${M}-${J||V}`,className:Y,style:z,labelStyle:Object.assign(Object.assign({},m),N),contentStyle:Object.assign(Object.assign({},v),$),span:X,colon:l,component:r,itemPrefixCls:_,bordered:c,label:P?q:null,content:p?oe:null}):[a.createElement(w,{key:`label-${J||V}`,className:Y,style:Object.assign(Object.assign(Object.assign({},m),z),N),span:1,colon:l,component:r[0],itemPrefixCls:_,bordered:c,label:q}),a.createElement(w,{key:`content-${J||V}`,className:Y,style:Object.assign(Object.assign(Object.assign({},v),z),$),span:X*2-1,component:r[1],itemPrefixCls:_,bordered:c,content:oe})]})}var d=t=>{const e=a.useContext(le),{prefixCls:s,vertical:l,row:i,index:c,bordered:r}=t;return l?a.createElement(a.Fragment,null,a.createElement("tr",{key:`label-${c}`,className:`${s}-row`},k(i,t,Object.assign({component:"th",type:"label",showLabel:!0},e))),a.createElement("tr",{key:`content-${c}`,className:`${s}-row`},k(i,t,Object.assign({component:"td",type:"content",showContent:!0},e)))):a.createElement("tr",{key:c,className:`${s}-row`},k(i,t,Object.assign({component:r?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},e)))},u=n(26477),x=n(4614),b=n(44244),O=n(25830);const E=t=>{const{componentCls:e,labelBg:s}=t;return{[`&${e}-bordered`]:{[`> ${e}-view`]:{border:`${(0,u.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"},[`${e}-row`]:{borderBottom:`${(0,u.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderBottom:"none"},[`> ${e}-item-label, > ${e}-item-content`]:{padding:`${(0,u.bf)(t.padding)} ${(0,u.bf)(t.paddingLG)}`,borderInlineEnd:`${(0,u.bf)(t.lineWidth)} ${t.lineType} ${t.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${e}-item-label`]:{color:t.colorTextSecondary,backgroundColor:s,"&::after":{display:"none"}}}},[`&${e}-middle`]:{[`${e}-row`]:{[`> ${e}-item-label, > ${e}-item-content`]:{padding:`${(0,u.bf)(t.paddingSM)} ${(0,u.bf)(t.paddingLG)}`}}},[`&${e}-small`]:{[`${e}-row`]:{[`> ${e}-item-label, > ${e}-item-content`]:{padding:`${(0,u.bf)(t.paddingXS)} ${(0,u.bf)(t.padding)}`}}}}}},C=t=>{const{componentCls:e,extraColor:s,itemPaddingBottom:l,colonMarginRight:i,colonMarginLeft:c,titleMarginBottom:r}=t;return{[e]:Object.assign(Object.assign(Object.assign({},(0,x.Wf)(t)),E(t)),{["&-rtl"]:{direction:"rtl"},[`${e}-header`]:{display:"flex",alignItems:"center",marginBottom:r},[`${e}-title`]:Object.assign(Object.assign({},x.vS),{flex:"auto",color:t.titleColor,fontWeight:t.fontWeightStrong,fontSize:t.fontSizeLG,lineHeight:t.lineHeightLG}),[`${e}-extra`]:{marginInlineStart:"auto",color:s,fontSize:t.fontSize},[`${e}-view`]:{width:"100%",borderRadius:t.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${e}-row`]:{"> th, > td":{paddingBottom:l},"&:last-child":{borderBottom:"none"}},[`${e}-item-label`]:{color:t.colorTextTertiary,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,u.bf)(c)} ${(0,u.bf)(i)}`},[`&${e}-item-no-colon::after`]:{content:'""'}},[`${e}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${e}-item-content`]:{display:"table-cell",flex:1,color:t.contentColor,fontSize:t.fontSize,lineHeight:t.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${e}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${e}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${e}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${e}-row`]:{"> th, > td":{paddingBottom:t.paddingSM}}},"&-small":{[`${e}-row`]:{"> th, > td":{paddingBottom:t.paddingXS}}}})}},f=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 S=(0,b.I$)("Descriptions",t=>{const e=(0,O.TS)(t,{});return C(e)},f),A=function(t,e){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,l=Object.getOwnPropertySymbols(t);i<l.length;i++)e.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(t,l[i])&&(s[l[i]]=t[l[i]]);return s};const y=t=>{const{prefixCls:e,title:s,extra:l,column:i,colon:c=!0,bordered:r,layout:M,children:P,className:p,rootClassName:m,style:v,size:G,labelStyle:V,contentStyle:q,items:oe}=t,_=A(t,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","items"]),{getPrefixCls:Y,direction:z,descriptions:N}=a.useContext(D.E_),$=Y("descriptions",e),X=(0,I.Z)(),J=a.useMemo(()=>{var te;return typeof i=="number"?i:(te=(0,B.m9)(X,Object.assign(Object.assign({},K),i)))!==null&&te!==void 0?te:3},[X,i]),de=re(X,oe,P),ee=(0,L.Z)(G),xe=o(J,de),[Ee,ye]=S($),he=a.useMemo(()=>({labelStyle:V,contentStyle:q}),[V,q]);return Ee(a.createElement(le.Provider,{value:he},a.createElement("div",Object.assign({className:F()($,N==null?void 0:N.className,{[`${$}-${ee}`]:ee&&ee!=="default",[`${$}-bordered`]:!!r,[`${$}-rtl`]:z==="rtl"},p,m,ye),style:Object.assign(Object.assign({},N==null?void 0:N.style),v)},_),(s||l)&&a.createElement("div",{className:`${$}-header`},s&&a.createElement("div",{className:`${$}-title`},s),l&&a.createElement("div",{className:`${$}-extra`},l)),a.createElement("div",{className:`${$}-view`},a.createElement("table",null,a.createElement("tbody",null,xe.map((te,ve)=>a.createElement(d,{key:ve,index:ve,colon:c,prefixCls:$,vertical:M==="vertical",bordered:r,row:te}))))))))};y.Item=Q;var j=y},45161:function(ne,Z,n){n.d(Z,{Z:function(){return k}});var a=n(79685),h=n(28120),F=n(23196),B=n(68591),D=n.n(B),L=n(99248),I=n(57196),K=g=>{const{value:d,formatter:u,precision:x,decimalSeparator:b,groupSeparator:O="",prefixCls:E}=g;let C;if(typeof u=="function")C=u(d);else{const f=String(d),S=f.match(/^(-?)(\d*)(\.(\d+))?$/);if(!S||f==="-")C=f;else{const A=S[1];let y=S[2]||"0",j=S[4]||"";y=y.replace(/\B(?=(\d{3})+(?!\d))/g,O),typeof x=="number"&&(j=j.padEnd(x,"0").slice(0,x>0?x:0)),j&&(j=`${b}${j}`),C=[a.createElement("span",{key:"int",className:`${E}-content-value-int`},A,y),j&&a.createElement("span",{key:"decimal",className:`${E}-content-value-decimal`},j)]}}return a.createElement("span",{className:`${E}-content-value`},C)},ae=n(4614),le=n(44244),se=n(25830);const ie=g=>{const{componentCls:d,marginXXS:u,padding:x,colorTextDescription:b,titleFontSize:O,colorTextHeading:E,contentFontSize:C,fontFamily:f}=g;return{[`${d}`]:Object.assign(Object.assign({},(0,ae.Wf)(g)),{[`${d}-title`]:{marginBottom:u,color:b,fontSize:O},[`${d}-skeleton`]:{paddingTop:x},[`${d}-content`]:{color:E,fontSize:C,fontFamily:f,[`${d}-content-value`]:{display:"inline-block",direction:"ltr"},[`${d}-content-prefix, ${d}-content-suffix`]:{display:"inline-block"},[`${d}-content-prefix`]:{marginInlineEnd:u},[`${d}-content-suffix`]:{marginInlineStart:u}}})}},U=g=>{const{fontSizeHeading3:d,fontSize:u}=g;return{titleFontSize:u,contentFontSize:d}};var re=(0,le.I$)("Statistic",g=>{const d=(0,se.TS)(g,{});return[ie(d)]},U),H=g=>{const{prefixCls:d,className:u,rootClassName:x,style:b,valueStyle:O,value:E=0,title:C,valueRender:f,prefix:S,suffix:A,loading:y=!1,onMouseEnter:j,onMouseLeave:t,decimalSeparator:e=".",groupSeparator:s=","}=g,{getPrefixCls:l,direction:i,statistic:c}=a.useContext(L.E_),r=l("statistic",d),[M,P]=re(r),p=a.createElement(K,Object.assign({decimalSeparator:e,groupSeparator:s,prefixCls:r},g,{value:E})),m=D()(r,{[`${r}-rtl`]:i==="rtl"},c==null?void 0:c.className,u,x,P);return M(a.createElement("div",{className:m,style:Object.assign(Object.assign({},c==null?void 0:c.style),b),onMouseEnter:j,onMouseLeave:t},C&&a.createElement("div",{className:`${r}-title`},C),a.createElement(I.Z,{paragraph:!1,loading:y,className:`${r}-skeleton`},a.createElement("div",{style:O,className:`${r}-content`},S&&a.createElement("span",{className:`${r}-content-prefix`},S),f?f(p):p,A&&a.createElement("span",{className:`${r}-content-suffix`},A)))))};const ce=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function o(g,d){let u=g;const x=/\[[^\]]*]/g,b=(d.match(x)||[]).map(f=>f.slice(1,-1)),O=d.replace(x,"[]"),E=ce.reduce((f,S)=>{let[A,y]=S;if(f.includes(A)){const j=Math.floor(u/y);return u-=j*y,f.replace(new RegExp(`${A}+`,"g"),t=>{const e=t.length;return j.toString().padStart(e,"0")})}return f},O);let C=0;return E.replace(x,()=>{const f=b[C];return C+=1,f})}function fe(g,d){const{format:u=""}=d,x=new Date(g).getTime(),b=Date.now(),O=Math.max(x-b,0);return o(O,u)}const Q=1e3/30;function T(g){return new Date(g).getTime()}const pe=g=>{const{value:d,format:u="HH:mm:ss",onChange:x,onFinish:b}=g,O=(0,h.Z)(),E=a.useRef(null),C=()=>{b==null||b(),E.current&&(clearInterval(E.current),E.current=null)},f=()=>{const y=T(d);y>=Date.now()&&(E.current=setInterval(()=>{O(),x==null||x(y-Date.now()),y<Date.now()&&C()},Q))};a.useEffect(()=>(f(),()=>{E.current&&(clearInterval(E.current),E.current=null)}),[d]);const S=(y,j)=>fe(y,Object.assign(Object.assign({},j),{format:u})),A=y=>(0,F.Tm)(y,{title:void 0});return a.createElement(H,Object.assign({},g,{valueRender:A,formatter:S}))};var w=a.memo(pe);H.Countdown=w;var k=H}}]);
|
|
|