Files
shz-admin/shihezi/9665.4d34fc86.async.js

2 lines
13 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9665,8213,3628,3553,980,1256,802,7874,3188],{16434:function(w,B,r){var o=r(1413),v=r(55850),C=r(15861),D=r(91),h=r(97685),x=r(77569),S=r(25278),F=r(83622),P=r(67294),d=r(90789),Z=r(85893),W=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],E=P.forwardRef(function(l,c){var O=x.Z.useFormInstance(),L=(0,P.useState)(l.countDown||60),i=(0,h.Z)(L,2),n=i[0],y=i[1],T=(0,P.useState)(!1),A=(0,h.Z)(T,2),R=A[0],I=A[1],M=(0,P.useState)(),U=(0,h.Z)(M,2),$=U[0],g=U[1],k=l.rules,ne=l.name,e=l.phoneName,a=l.fieldProps,u=l.onTiming,t=l.captchaTextRender,s=t===void 0?function(m,b){return m?"".concat(b," \u79D2\u540E\u91CD\u65B0\u83B7\u53D6"):"\u83B7\u53D6\u9A8C\u8BC1\u7801"}:t,j=l.captchaProps,K=(0,D.Z)(l,W),V=function(){var m=(0,C.Z)((0,v.Z)().mark(function b(z){return(0,v.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,g(!0),f.next=4,K.onGetCaptcha(z);case 4:g(!1),I(!0),f.next=13;break;case 8:f.prev=8,f.t0=f.catch(0),I(!1),g(!1),console.log(f.t0);case 13:case"end":return f.stop()}},b,null,[[0,8]])}));return function(z){return m.apply(this,arguments)}}();return(0,P.useImperativeHandle)(c,function(){return{startTiming:function(){return I(!0)},endTiming:function(){return I(!1)}}}),(0,P.useEffect)(function(){var m=0,b=l.countDown;return R&&(m=window.setInterval(function(){y(function(z){return z<=1?(I(!1),clearInterval(m),b||60):z-1})},1e3)),function(){return clearInterval(m)}},[R]),(0,P.useEffect)(function(){u&&u(n)},[n,u]),(0,Z.jsxs)("div",{style:(0,o.Z)((0,o.Z)({},a==null?void 0:a.style),{},{display:"flex",alignItems:"center"}),ref:c,children:[(0,Z.jsx)(S.Z,(0,o.Z)((0,o.Z)({},a),{},{style:(0,o.Z)({flex:1,transition:"width .3s",marginRight:8},a==null?void 0:a.style)})),(0,Z.jsx)(F.ZP,(0,o.Z)((0,o.Z)({style:{display:"block"},disabled:R,loading:$},j),{},{onClick:(0,C.Z)((0,v.Z)().mark(function m(){var b;return(0,v.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(_.prev=0,!e){_.next=9;break}return _.next=4,O.validateFields([e].flat(1));case 4:return b=O.getFieldValue([e].flat(1)),_.next=7,V(b);case 7:_.next=11;break;case 9:return _.next=11,V("");case 11:_.next=16;break;case 13:_.prev=13,_.t0=_.catch(0),console.log(_.t0);case 16:case"end":return _.stop()}},m,null,[[0,13]])})),children:s(R,n)}))]})}),p=(0,d.G)(E);B.Z=p},31199:function(w,B,r){var o=r(1413),v=r(91),C=r(67294),D=r(43495),h=r(85893),x=["fieldProps","min","proFieldProps","max"],S=function(d,Z){var W=d.fieldProps,E=d.min,p=d.proFieldProps,l=d.max,c=(0,v.Z)(d,x);return(0,h.jsx)(D.Z,(0,o.Z)({valueType:"digit",fieldProps:(0,o.Z)({min:E,max:l},W),ref:Z,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:p},c))},F=C.forwardRef(S);B.Z=F},86615:function(w,B,r){var o=r(1413),v=r(91),C=r(22270),D=r(78045),h=r(67294),x=r(90789),S=r(43495),F=r(85893),P=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],d=h.forwardRef(function(p,l){var c=p.fieldProps,O=p.options,L=p.radioType,i=p.layout,n=p.proFieldProps,y=p.valueEnum,T=(0,v.Z)(p,P);return(0,F.jsx)(S.Z,(0,o.Z)((0,o.Z)({valueType:L==="button"?"radioButton":"radio",ref:l,valueEnum:(0,C.h)(y,void 0)},T),{},{fieldProps:(0,o.Z)({options:O,layout:i},c),proFieldProps:n,filedConfig:{customLightMode:!0}}))}),Z=h.forwardRef(function(p,l){var c=p.fieldProps,O=p.children;return(0,F.jsx)(D.ZP,(0,o.Z)((0,o.Z)({},c),{},{ref:l,children:O}))}),W=(0,x.G)(Z,{valuePropName:"checked",ignoreWidth:!0}),E=W;E.Group=d,E.Button=D.ZP.Button,E.displayName="ProFormComponent",B.Z=E},64317:function(w,B,r){var o=r(1413),v=r(91),C=r(22270),D=r(67294),h=r(66758),x=r(43495),S=r(85893),F=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],P=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],d=function(c,O){var L=c.fieldProps,i=c.children,n=c.params,y=c.proFieldProps,T=c.mode,A=c.valueEnum,R=c.request,I=c.showSearch,M=c.options,U=(0,v.Z)(c,F),$=(0,D.useContext)(h.Z);return(0,S.jsx)(x.Z,(0,o.Z)((0,o.Z)({v