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
19 KiB
2 lines
19 KiB
3 months ago
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[455],{40110:function(me,z,r){var X=r(1413),N=r(67294),_=r(509),ee=r(91146),ne=function(v,J){return N.createElement(ee.Z,(0,X.Z)((0,X.Z)({},v),{},{ref:J,icon:_.Z}))},m=N.forwardRef(ne);z.Z=m},28490:function(me,z,r){r.r(z),r.d(z,{default:function(){return $e}});var X=r(97857),N=r.n(X),_=r(13769),ee=r.n(_),ne=r(15009),m=r.n(ne),ue=r(99289),v=r.n(ue),J=r(5574),j=r.n(J),U=r(48357),R=r(52043),V=r(40110),de=r(3089),se=r(90930),h=r(8232),x=r(55102),O=r(42075),S=r(14726),ge=r(55241),oe=r(66309),Q=r(2453),Se=r(13169),he=r(72051),ie=r(17788),pe=r(34041),xe=r(71230),ve=r(15746),Ze=r(47676),re=r(16250),De=r(27484),le=r.n(De),F=r(67294),Ee=r(19632),je=r.n(Ee),Ie=r(32400),Ae=r(56448),Pe=r.n(Ae),ke=r(66476),e=r(85893),be=function(w){var I=w.onUploadSuccess,Z=w.onUploadError,D=(0,F.useState)(!1),$=j()(D,2),b=$[0],B=$[1],H=(0,F.useState)([]),L=j()(H,2),A=L[0],M=L[1],T=(0,F.useState)(null),W=j()(T,2),P=W[0],E=W[1],k=ke.Z.Dragger;(0,F.useEffect)(function(){function n(){return t.apply(this,arguments)}function t(){return t=v()(m()().mark(function c(){var u,l;return m()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=3,(0,U.po)();case 3:if(u=f.sent,!(!u.data||!u.data.accessKeySecret||!u.data.accessKeyId)){f.next=7;break}return Q.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),f.abrupt("return");case 7:l=new(Pe())({region:"oss-cn-beijing",accessKeyId:u.data.accessKeyId,accessKeySecret:u.data.accessKeySecret,stsToken:u.data.securityToken,bucket:u.data.bucket}),E(l),f.next=15;break;case 11:f.prev=11,f.t0=f.catch(0),Q.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),Z&&Z(f.t0);case 15:case"end":return f.stop()}},c,null,[[0,11]])})),t.apply(this,arguments)}n()},[Z]);var Y=function(t){var c=(A||[]).filter(function(u){return u.url!==t.url});M(c)},d=function(){var n=v()(m()().mark(function t(c){var u,l,y,f;return m()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(u=c.file,!(u instanceof File)){p.next=26;break}return B(!0),p.prev=3,p.next=6,(0,Ie.p)(u);case 6:return l=p.sent,y="matrix/".concat(l,".").concat(u.name.split(".").pop()),p.next=10,P==null?void 0:P.put(y,u,{headers:{"Content-Type":u.type}});case 10:f="https://apks.bzgames.cn/".concat(y),I&&I(f),B(!1),M(function(ae){return[].concat(je()(ae),[{uid:u.uid,name:u.name+"\uFF1A"+f,status:"done",url:f}])}),p.next=21;break;case 16:p.prev=16,p.t0=p.catch(3),Q.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),Z&&Z(p.t0),M(function(ae){return[].concat(je()(ae),[{uid:u.uid,name:u.name,status:"error"}])});case 21:return p.prev=21,B(!1),p.finish(21);case 24:p.next=27;break;case 26:Q.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return p.stop()}},t,null,[[3,16,21,24]])}));return function(c){return n.apply(this,arguments)}}();return(0,e.jsxs)(k,{fileList:A,multiple:!0,customRequest:d,onRemove:Y,disabled:b||!P,onPreview:function(){var n=v()(m()().mark(function t(c){return m()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,navigator.clipboard.writeText(c.url||"");case 2:Q.ZP.success("\u94FE\u63A5\u590D\u5236\u6210\u529F "+c.url);case 3:case"end":return l.stop()}},t)}));return function(t){return n.apply(this,arguments)}}(),capture:void 0,children:[(0,e.jsx)("p",{className:"ant-upload-drag-icon",children:(0,e.jsx)("i",{className:"anticon anticon-inbox"})}),(0,e.jsx)("p",{className:"ant-upload-text",children:"\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"}),(0,e.jsx)("p",{className:"ant-upload-hint",children:"\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20\u3002\u6587\u4EF6\u540D\u5C06\u4F7F\u7528\u6587\u4EF6\u7684 MD5 \u503C\u547D\u540D\u3002"})]})},Oe=be,ye=r(67539),te=r(4575),Be=function(){var w=(0,F.useState)(!1),I=j()(w,2),Z=I[0],D=I[1],$=(0,F.useState)([]),b=j()($,2),B=b[0],H=b[1],L=(0,F.useState)([]),A=j()(L,2),M=A[0],T=A[1],W=h.Z.useForm(),P=j()(W,1),E=P[0],k=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0,f
|