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.
2 lines
10 KiB
2 lines
10 KiB
6 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{72579:function(ke,W,r){r.r(W),r.d(W,{default:function(){return We}});var G=r(15009),F=r.n(G),K=r(97857),L=r.n(K),Q=r(99289),B=r.n(Q),X=r(5574),Y=r.n(X),J=r(39418),w=r(48357),q=r(87547),l=r(1413),P=r(67294),_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},ee=_,ne=r(91146),te=function(t,e){return P.createElement(ne.Z,(0,l.Z)((0,l.Z)({},t),{},{ref:e,icon:ee}))},re=P.forwardRef(te),oe=re,T=r(91),ae=r(10915),le=r(28459),se=r(93967),ie=r.n(se),de=r(34994),I=r(4942),ue=r(98082),ce=function(t){return(0,I.Z)((0,I.Z)({},t.componentCls,{"&-container":{display:"flex",flex:"1",flexDirection:"column",height:"100%",paddingInline:32,paddingBlock:24,overflow:"auto",background:"inherit"},"&-top":{textAlign:"center"},"&-header":{display:"flex",alignItems:"center",justifyContent:"center",height:"44px",lineHeight:"44px",a:{textDecoration:"none"}},"&-title":{position:"relative",insetBlockStart:"2px",color:"@heading-color",fontWeight:"600",fontSize:"33px"},"&-logo":{width:"44px",height:"44px",marginInlineEnd:"16px",verticalAlign:"top",img:{width:"100%"}},"&-desc":{marginBlockStart:"12px",marginBlockEnd:"40px",color:t.colorTextSecondary,fontSize:t.fontSize},"&-main":{minWidth:"328px",maxWidth:"580px",margin:"0 auto","&-other":{marginBlockStart:"24px",lineHeight:"22px",textAlign:"start"}}}),"@media (min-width: @screen-md-min)",(0,I.Z)({},"".concat(t.componentCls,"-container"),{paddingInline:0,paddingBlockStart:32,paddingBlockEnd:24,backgroundRepeat:"no-repeat",backgroundPosition:"center 110px",backgroundSize:"100%"}))};function ve(o){return(0,ue.Xj)("LoginForm",function(t){var e=(0,l.Z)((0,l.Z)({},t),{},{componentCls:".".concat(o)});return[ce(e)]})}var n=r(85893),ge=["logo","message","contentStyle","title","subTitle","actions","children","containerStyle","otherStyle"];function fe(o){var t,e=o.logo,i=o.message,d=o.contentStyle,c=o.title,u=o.subTitle,y=o.actions,g=o.children,j=o.containerStyle,v=o.otherStyle,a=(0,T.Z)(o,ge),N=(0,ae.YB)(),Z=a.submitter===!1?!1:(0,l.Z)((0,l.Z)({searchConfig:{submitText:N.getMessage("loginForm.submitText","\u767B\u5F55")}},a.submitter),{},{submitButtonProps:(0,l.Z)({size:"large",style:{width:"100%"}},(t=a.submitter)===null||t===void 0?void 0:t.submitButtonProps),render:function(O,D){var E,Ue=D.pop();if(typeof(a==null||(E=a.submitter)===null||E===void 0?void 0:E.render)=="function"){var A,b;return a==null||(A=a.submitter)===null||A===void 0||(b=A.render)===null||b===void 0?void 0:b.call(A,O,D)}return Ue}}),h=(0,P.useContext)(le.ZP.ConfigContext),f=h.getPrefixCls("pro-form-login"),p=ve(f),S=p.wrapSSR,s=p.hashId,m=function(O){return"".concat(f,"-").concat(O," ").concat(s)},z=(0,P.useMemo)(function(){return e?typeof e=="string"?(0,n.jsx)("img",{src:e}):e:null},[e]);return S((0,n.jsxs)("div",{className:ie()(m("container"),s),style:j,children:[(0,n.jsxs)("div",{className:"".concat(m("top")," ").concat(s).trim(),children:[c||z?(0,n.jsxs)("div",{className:"".concat(m("header")),children:[z?(0,n.jsx)("span",{className:m("logo"),children:z}):null,c?(0,n.jsx)("span",{className:m("title"),children:c}):null]}):null,u?(0,n.jsx)("div",{className:m("desc"),children:u}):null]}),(0,n.jsxs)("div",{className:m("main"),style:(0,l.Z)({width:328},d),children:[(0,n.jsxs)(de.A,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0},a),{},{submitter:Z,children:[i,g]})),y?(0,n.jsx)("div",{className:m("main-other"),style:v,children:y}):null]})]}))}var H=r(97685),he=r(21770),pe=r(8232),me=r(55241),xe=r(97435),C=r(59141),ye=["fieldProps","proFieldProps"],Pe=["fieldProps","proFieldProps"],M="text",Se=function(t){var e=t.fieldProps,i=t.proFieldProps,d
|