mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-17 12:48:08 +00:00
1 line
24 KiB
JavaScript
1 line
24 KiB
JavaScript
|
|
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9290],{26978:function(e,n,r){r.d(n,{Z:function(){return c}});var a=r(11757),t=r(44194),s={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"},o=r(54183),i=function(e,n){return t.createElement(o.Z,(0,a.Z)({},e,{ref:n,icon:s}))};var c=t.forwardRef(i)},40795:function(e,n,r){r.d(n,{Z:function(){return c}});var a=r(11757),t=r(44194),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"},o=r(54183),i=function(e,n){return t.createElement(o.Z,(0,a.Z)({},e,{ref:n,icon:s}))};var c=t.forwardRef(i)},58087:function(e,n,r){var a=r(11757),t=r(44194),s=r(15323),o=r(54183),i=function(e,n){return t.createElement(o.Z,(0,a.Z)({},e,{ref:n,icon:s.Z}))},c=t.forwardRef(i);n.Z=c},59908:function(e,n,r){r.d(n,{Z:function(){return c}});var a=r(11757),t=r(44194),s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},o=r(54183),i=function(e,n){return t.createElement(o.Z,(0,a.Z)({},e,{ref:n,icon:s}))};var c=t.forwardRef(i)},59129:function(e,n,r){var a=r(17082),t=r(72298),s=r(48921),o=r(73457),i=r(42601),c=r(16309),l=r(52288),u=r(75365),d=r(44194),f=r(69088),p=r(31549),g=["rules","name","phoneName","fieldProps","onTiming","captchaTextRender","captchaProps"],m=d.forwardRef((function(e,n){var r=c.Z.useFormInstance(),f=(0,d.useState)(e.countDown||60),m=(0,i.Z)(f,2),h=m[0],v=m[1],x=(0,d.useState)(!1),w=(0,i.Z)(x,2),Z=w[0],b=w[1],y=(0,d.useState)(),M=(0,i.Z)(y,2),k=M[0],j=M[1],P=(e.rules,e.name,e.phoneName),C=e.fieldProps,F=e.onTiming,S=e.captchaTextRender,T=void 0===S?function(e,n){return e?"".concat(n," 秒后重新获取"):"获取验证码"}:S,U=e.captchaProps,I=(0,o.Z)(e,g),V=function(){var e=(0,s.Z)((0,t.Z)().mark((function e(n){return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,j(!0),e.next=4,I.onGetCaptcha(n);case 4:j(!1),b(!0),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),b(!1),j(!1),console.log(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(n){return e.apply(this,arguments)}}();return(0,d.useImperativeHandle)(n,(function(){return{startTiming:function(){return b(!0)},endTiming:function(){return b(!1)}}})),(0,d.useEffect)((function(){var n=0,r=e.countDown;return Z&&(n=window.setInterval((function(){v((function(e){return e<=1?(b(!1),clearInterval(n),r||60):e-1}))}),1e3)),function(){return clearInterval(n)}}),[Z]),(0,d.useEffect)((function(){F&&F(h)}),[h,F]),(0,p.jsxs)("div",{style:(0,a.Z)((0,a.Z)({},null==C?void 0:C.style),{},{display:"flex",alignItems:"center"}),ref:n,children:[(0,p.jsx)(l.Z,(0,a.Z)((0,a.Z)({},C),{},{style:(0,a.Z)({flex:1,transition:"width .3s",marginRight:8},null==C?void 0:C.style)})),(0,p.jsx)(u.ZP,(0,a.Z)((0,a.Z)({style:{display:"block"},disabled:Z,loading:k},U),{},{onClick:(0,s.Z)((0,t.Z)().mark((function e(){var n;return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!P){e.next=9;break}return e.next=4,r.validateFields([P].flat(1));case 4:return n=r.getFieldValue([P].flat(1)),e.next=7,V(n);case 7:e.next=11;break;case 9:retu
|