Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

2 рядки
13 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7751],{64893:function(me,J,e){"use strict";e.d(J,{G:function(){return y}});var P=e(96156),A=e(28481),o=e(28991),W=e(81253),T=e(85893),H=["colon","dependencies","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","initialValue","noStyle","label","labelAlign","labelCol","name","preserve","normalize","required","rules","shouldUpdate","trigger","validateFirst","validateStatus","validateTrigger","valuePropName","wrapperCol","hidden","addonBefore","addonAfter"];function B(F){var x={};return H.forEach(function(E){F[E]!==void 0&&(x[E]=F[E])}),x}var U=e(51812),C=e(26369),s=e(60249),K=e(94184),D=e.n(K),c=e(48526),l=e(80334),v=e(67294),d=e(30939),X=e(82785),Y=e(97462),re=e(66758),b=e(2514),j=["valueType","customLightMode","lightFilterLabelFormatter","valuePropName","ignoreWidth","defaultProps"],V=["label","tooltip","placeholder","width","bordered","messageVariables","ignoreFormItem","transform","convertValue","readonly","allowClear","colSize","getFormItemProps","getFieldProps","filedConfig","cacheForSwr","proFieldProps"],te=Symbol("ProFormComponent"),G={xs:104,s:216,sm:216,m:328,md:328,l:440,lg:440,xl:552},g=["switch","radioButton","radio","rate"];function y(F,x){F.displayName="ProFormComponent";var E=function(r){var n=(0,o.Z)((0,o.Z)({},r==null?void 0:r.filedConfig),x)||{},a=n.valueType,t=n.customLightMode,m=n.lightFilterLabelFormatter,I=n.valuePropName,h=I===void 0?"value":I,N=n.ignoreWidth,L=n.defaultProps,M=(0,W.Z)(n,j),f=(0,o.Z)((0,o.Z)({},L),r),_=f.label,ie=f.tooltip,se=f.placeholder,z=f.width,he=f.bordered,fe=f.messageVariables,le=f.ignoreFormItem,Ce=f.transform,pe=f.convertValue,q=f.readonly,de=f.allowClear,Ze=f.colSize,k=f.getFormItemProps,ee=f.getFieldProps,De=f.filedConfig,Pe=f.cacheForSwr,O=f.proFieldProps,u=(0,W.Z)(f,V),Z=a||u.valueType,ue=(0,v.useMemo)(function(){return N||g.includes(Z)},[N,Z]),Fe=(0,v.useState)(),Me=(0,A.Z)(Fe,2),Ee=Me[1],ge=(0,v.useState)(),ye=(0,A.Z)(ge,2),Ie=ye[0],ae=ye[1],S=v.useContext(re.Z),$=(0,v.useMemo)(function(){return{formItemProps:k==null?void 0:k(),fieldProps:ee==null?void 0:ee()}},[ee,k,u.dependenciesValues,Ie]),p=(0,v.useMemo)(function(){var i=(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},le?(0,U.Z)({value:u.value}):{}),{},{placeholder:se,disabled:r.disabled},S.fieldProps),$.fieldProps),u.fieldProps);return i.style=(0,U.Z)(i==null?void 0:i.style),i},[le,u.value,u.fieldProps,se,r.disabled,S.fieldProps,$.fieldProps]),xe=B(u),Se=(0,v.useMemo)(function(){return(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},S.formItemProps),xe),$.formItemProps),u.formItemProps)},[$.formItemProps,S.formItemProps,u.formItemProps,xe]),R=(0,v.useMemo)(function(){return(0,o.Z)((0,o.Z)({messageVariables:fe},M),Se)},[M,Se,fe]);(0,l.ET)(!u.defaultValue,"\u8BF7\u4E0D\u8981\u5728 Form \u4E2D\u4F7F\u7528 defaultXXX\u3002\u5982\u679C\u9700\u8981\u9ED8\u8BA4\u503C\u8BF7\u4F7F\u7528 initialValues \u548C initialValue\u3002");var Be=(0,v.useContext)(c.zb),Oe=Be.prefixName,Te=(0,v.useMemo)(function(){var i=R==null?void 0:R.name;return Array.isArray(i)&&(i=i.join("_")),Array.isArray(Oe)&&i&&(i="".concat(Oe.join("."),".").concat(i)),i&&"form-field-".concat(i)},[(0,d.P)(R==null?void 0:R.name),Oe]),Ue=(0,C.Z)(u),Ne=(0,v.useCallback)(function(){var i;k||ee?ae([]):u.renderFormItem&&Ee([]);for(var ce=arguments.length,ve=new Array(ce),oe=0;oe<ce;oe++)ve[oe]=arguments[oe];p==null||(i=p.onChange)===null||i===void 0||i.call.apply(i,[p].concat(ve))},[ee,k,p,u.renderFormItem]),Le=(0,v.useMemo)(function(){var i=(0,o.Z)({width:z&&!G[z]?z:S.grid?"100%":void 0},p==null?void 0:p.style);return ue&&Reflect.deleteProperty(i,"width"),(0,U.Z)(i)},[(0,d.P)(p==null?void 0:p.style),S.grid,ue,z]),Ae=(0,v.useMemo)(function(){var i=z&&G[z];return D()(p==null?void 0:p.className,(0,P.Z)({"pro-field":i},"pro-field-".concat(z),i&&!ue))||void 0},[z,p==null?void 0:p.className,ue]),We=(0,v.useMemo)(function(){return(0,U.Z)((0,o.Z)({mode:u==null?void 0:u.mode,readonly:q,params:u.params,proFieldKey:Te,cacheForSwr:Pe},O))},[u==null?void 0:u.mode,u.params,q,Te,Pe,O]),Re=(0,v.useMemo)(function(){return(0,o.Z)((0,o.Z)({onChange:Ne,allowClear:de},p),{},{style:Le,className:Ae})},[de,Ae,Ne,p,Le]),ne=(0,v.useMemo)(function(){return(0,T.jsx)(F,(0,o.Z)((0,o.Z)({},u),{},{fieldProps:Re,proFieldProps:We,ref:r==null?void 0:r.fieldRef}),r.proFormFieldKey||r.name)},[We,Re,(0,s.Z)(Ue,u,["onChange","onBlur","onFocus","record"])?void 0:{}]),Ke=(0,v.useMemo)(function(){var i,ce,ve,oe;return(0,T.jsx)(X.Z,(0,o.Z)((0,o.Z)({label:_&&(O==null?void 0:O.light)!==!0?_:void 0,tooltip:(O==null?void 0:O.light)!==!0&&ie,valuePropName:h},R),{},{ignoreFormItem:le,transform:Ce,dataFormat:p==null?void 0:p.format,valueType:Z,messageVariables:(0,o.Z)({label:_||""},R==null?void 0:R.messageVariables),convertValue:pe,lightProps:(0,U.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},p),{},{valueType:Z,bordered:he,allowClear:(i=ne==null||(ce=ne.props)===null||ce===void 0?void 0:ce.allowClear)!==null&&i!==void 0?i:de,light:O==null?void 0:O.light,label:_,customLightMode:t,labelFormatter:m,valuePropName:h,footerRender:ne==null||(ve=ne.props)===null||ve===void 0?void 0:ve.footerRender},u.lightProps),R.lightProps)),children:ne}),r.proFormFieldKey||((oe=R.name)===null||oe===void 0?void 0:oe.toString()))},[_,O==null?void 0:O.light,ie,h,r.proFormFieldKey,R,le,Ce,p,Z,pe,he,ne,de,t,m,u.lightProps]),be=(0,b.zx)(u),je=be.ColWrapper;return(0,T.jsx)(je,{children:Ke})},Q=function(r){var n=r.dependencies;return n?(0,T.jsx)(Y.Z,{name:n,children:function(t){return(0,T.jsx)(E,(0,o.Z)({dependenciesValues:t,dependencies:n},r))}}):(0,T.jsx)(E,(0,o.Z)({dependencies:n},r))};return Q}},97462:function(me,J,e){"use strict";var P=e(28991),A=e(9715),o=e(86835),W=e(81253),T=e(85893),H=e(41036),B=e(60249),U=e(92210),C=e(88306),s=e(8880),K=e(67294),D=e(59962),c=["name","children","ignoreFormListField"],l=function(d){var X=d.name,Y=d.children,re=d.ignoreFormListField,b=(0,W.Z)(d,c),j=(0,K.useContext)(H.Z),V=(0,K.useContext)(D.J),te=(0,K.useMemo)(function(){return X.map(function(G){var g,y=[G];return!re&&V.name!==void 0&&((g=V.listName)===null||g===void 0?void 0:g.length)&&y.unshift(V.listName),y.flat(1)})},[V.listName,V.name,re,X]);return(0,T.jsx)(o.Z.Item,(0,P.Z)((0,P.Z)({},b),{},{noStyle:!0,shouldUpdate:function(g,y,F){if(typeof b.shouldUpdate=="boolean")return b.shouldUpdate;if(typeof b.shouldUpdate=="function"){var x;return(x=b.shouldUpdate)===null||x===void 0?void 0:x.call(b,g,y,F)}return te.some(function(E){return!(0,B.Z)((0,C.Z)(g,E),(0,C.Z)(y,E))})},children:function(g){for(var y={},F=0;F<X.length;F++){var x,E=te[F],Q=X[F],w=[Q].flat(1),r=(x=j.getFieldFormatValueObject)===null||x===void 0?void 0:x.call(j,E);if(r&&Object.keys(r).length)y=(0,U.T)({},y,r),(0,C.Z)(r,E)&&(y=(0,s.Z)(y,w,(0,C.Z)(r,E),!1));else{var n;r=(n=g.getFieldValue)===null||n===void 0?void 0:n.call(g,E),typeof r!="undefined"&&(y=(0,s.Z)(y,w,r,!1))}}return Y==null?void 0:Y(y,(0,P.Z)((0,P.Z)({},g),j))}}))};J.Z=l},31649:function(me,J,e){"use strict";var P=e(28991),A=e(81253),o=e(85893),W=e(41707),T=e(22270),H=e(60249),B=e(67294),U=e(64893),C=["fieldProps","children","labelCol","label","autoFocus","isDefaultDom","render","proFieldProps","renderFormItem","valueType","initialValue","onChange","valueEnum","params","name","dependenciesValues","cacheForSwr","valuePropName"],s=function(c){var l=c.fieldProps,v=c.children,d=c.labelCol,X=c.label,Y=c.autoFocus,re=c.isDefaultDom,b=c.render,j=c.proFieldProps,V=c.renderFormItem,te=c.valueType,G=c.initialValue,g=c.onChange,y=c.valueEnum,F=c.params,x=c.name,E=c.dependenciesValues,Q=c.cacheForSwr,w=Q===void 0?!1:Q,r=c.valuePropName,n=r===void 0?"value":r,a=(0,A.Z)(c,C),t=(0,B.useMemo)(function(){return E&&a.request?(0,P.Z)((0,P.Z)({},F),E||{}):F},[E,F,a.request]),m=(0,B.useMemo)(function(){if(v)return B.isValidElement(v)?B.cloneElement(v,(0,P.Z)((0,P.Z)({},a),{},{onChange:function(){for(var h=arguments.length,N=new Array(h),L=0;L<h;L++)N[L]=arguments[L];if(l==null?void 0:l.onChange){var M;l==null||(M=l.onChange)===null||M===void 0||M.call.apply(M,[l].concat(N));return}g==null||g.apply(void 0,N)}},v.props)):(0,o.jsx)(o.Fragment,{children:v})},[v,l==null?void 0:l.onChange,g,a]);return m||(0,o.jsx)(W.ZP,(0,P.Z)((0,P.Z)((0,P.Z)({text:l==null?void 0:l[n],render:b,renderFormItem:V,valueType:te||"text",cacheForSwr:w,fieldProps:(0,P.Z)((0,P.Z)({autoFocus:Y},l),{},{onChange:function(){if(l==null?void 0:l.onChange){for(var h,N=arguments.length,L=new Array(N),M=0;M<N;M++)L[M]=arguments[M];l==null||(h=l.onChange)===null||h===void 0||h.call.apply(h,[l].concat(L));return}}}),valueEnum:(0,T.h)(y)},j),a),{},{mode:(j==null?void 0:j.mode)||"edit",params:t}))},K=(0,U.G)((0,B.memo)(s,function(D,c){return(0,H.Z)(c,D,["onChange","onBlur"])}));J.Z=K},3178:function(){},76772:function(me,J,e){"use strict";e.d(J,{Z:function(){return w}});var P=e(22122),A=e(28481),o=e(96156),W=e(38819),T=e(15873),H=e(43061),B=e(73218),U=e(54549),C=e(68855),s=e(57119),K=e(40847),D=e(68628),c=e(94184),l=e.n(c),v=e(63441),d=e(67294),X=e(53124),Y=e(5467),re=e(96159),b=e(6610),j=e(5991),V=e(10379),te=e(54070),G=function(r){(0,V.Z)(a,r);var n=(0,te.Z)(a);function a(){var t;return(0,b.Z)(this,a),t=n.apply(this,arguments),t.state={error:void 0,info:{componentStack:""}},t}return(0,j.Z)(a,[{key:"componentDidCatch",value:function(m,I){this.setState({error:m,info:I})}},{key:"render",value:function(){var m=this.props,I=m.message,h=m.description,N=m.children,L=this.state,M=L.error,f=L.info,_=f&&f.componentStack?f.componentStack:null,ie=typeof I=="undefined"?(M||"").toString():I,se=typeof h=="undefined"?_:h;return M?d.createElement(w,{type:"error",message:ie,description:d.createElement("pre",null,se)}):N}}]),a}(d.Component),g=function(r,n){var a={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&n.indexOf(t)<0&&(a[t]=r[t]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,t=Object.getOwnPropertySymbols(r);m<t.length;m++)n.indexOf(t[m])<0&&Object.prototype.propertyIsEnumerable.call(r,t[m])&&(a[t[m]]=r[t[m]]);return a},y={success:W.Z,info:K.Z,error:H.Z,warning:C.Z},F={success:T.Z,info:D.Z,error:B.Z,warning:s.Z},x=function(n){var a=n.description,t=n.icon,m=n.prefixCls,I=n.type,h=(a?F:y)[I]||null;return t?(0,re.wm)(t,d.createElement("span",{className:"".concat(m,"-icon")},t),function(){return{className:l()("".concat(m,"-icon"),(0,o.Z)({},t.props.className,t.props.className))}}):d.createElement(h,{className:"".concat(m,"-icon")})},E=function(n){var a=n.isClosable,t=n.closeText,m=n.prefixCls,I=n.closeIcon,h=n.handleClose;return a?d.createElement("button",{type:"button",onClick:h,className:"".concat(m,"-close-icon"),tabIndex:0},t?d.createElement("span",{className:"".concat(m,"-close-text")},t):I):null},Q=function(n){var a,t=n.description,m=n.prefixCls,I=n.message,h=n.banner,N=n.className,L=N===void 0?"":N,M=n.style,f=n.onMouseEnter,_=n.onMouseLeave,ie=n.onClick,se=n.afterClose,z=n.showIcon,he=n.closable,fe=n.closeText,le=n.closeIcon,Ce=le===void 0?d.createElement(U.Z,null):le,pe=n.action,q=g(n,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),de=d.useState(!1),Ze=(0,A.Z)(de,2),k=Ze[0],ee=Ze[1],De=d.useRef(),Pe=d.useContext(X.E_),O=Pe.getPrefixCls,u=Pe.direction,Z=O("alert",m),ue=function(S){var $;ee(!0),($=q.onClose)===null||$===void 0||$.call(q,S)},Fe=function(){var S=q.type;return S!==void 0?S:h?"warning":"info"},Me=fe?!0:he,Ee=Fe(),ge=h&&z===void 0?!0:z,ye=l()(Z,"".concat(Z,"-").concat(Ee),(a={},(0,o.Z)(a,"".concat(Z,"-with-description"),!!t),(0,o.Z)(a,"".concat(Z,"-no-icon"),!ge),(0,o.Z)(a,"".concat(Z,"-banner"),!!h),(0,o.Z)(a,"".concat(Z,"-rtl"),u==="rtl"),a),L),Ie=(0,Y.Z)(q);return d.createElement(v.Z,{visible:!k,motionName:"".concat(Z,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(S){return{maxHeight:S.offsetHeight}},onLeaveEnd:se},function(ae){var S=ae.className,$=ae.style;return d.createElement("div",(0,P.Z)({ref:De,"data-show":!k,className:l()(ye,S),style:(0,P.Z)((0,P.Z)({},M),$),onMouseEnter:f,onMouseLeave:_,onClick:ie,role:"alert"},Ie),ge?d.createElement(x,{description:t,icon:q.icon,prefixCls:Z,type:Ee}):null,d.createElement("div",{className:"".concat(Z,"-content")},I?d.createElement("div",{className:"".concat(Z,"-message")},I):null,t?d.createElement("div",{className:"".concat(Z,"-description")},t):null),pe?d.createElement("div",{className:"".concat(Z,"-action")},pe):null,d.createElement(E,{isClosable:!!Me,closeText:fe,prefixCls:Z,closeIcon:Ce,handleClose:ue}))})};Q.ErrorBoundary=G;var w=Q},17462:function(me,J,e){"use strict";var P=e(38663),A=e.n(P),o=e(3178),W=e.n(o)},30939:function(me,J,e){"use strict";e.d(J,{P:function(){return W}});var P=e(67294);function A(C){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(s){return typeof s}:A=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},A(C)}var o=function(){var s=new WeakSet;return function(K,D){if(A(D)==="object"&&D!==null){if(s.has(D))return;s.add(D)}return D}},W=function(s){return JSON.stringify(s,o())},T=function(s,K){try{return W(s)===W(K)}catch(D){}return!1};function H(C){var s=useRef("");return T(C,s.current)||(s.current=JSON.stringify(C,o())),s.current}function B(C,s){useEffect(C,[H(s)])}var U=null}}]);