Files
shz-admin/shihezi/980.182c4eb9.async.js

2 lines
9.7 KiB
JavaScript
Raw Normal View History

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[980,3188],{31199:function(Q,F,o){var t=o(1413),u=o(91),g=o(67294),h=o(43495),O=o(85893),E=["fieldProps","min","proFieldProps","max"],S=function(i,I){var Z=i.fieldProps,_=i.min,T=i.proFieldProps,p=i.max,d=(0,u.Z)(i,E);return(0,O.jsx)(h.Z,(0,t.Z)({valueType:"digit",fieldProps:(0,t.Z)({min:_,max:p},Z),ref:I,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:T},d))},K=g.forwardRef(S);F.Z=K},64317:function(Q,F,o){var t=o(1413),u=o(91),g=o(22270),h=o(67294),O=o(66758),E=o(43495),S=o(85893),K=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],C=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],i=function(d,x){var B=d.fieldProps,s=d.children,n=d.params,f=d.proFieldProps,m=d.mode,j=d.valueEnum,R=d.request,W=d.showSearch,v=d.options,$=(0,u.Z)(d,K),L=(0,h.useContext)(O.Z);return(0,S.jsx)(E.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,g.h)(j),request:R,params:n,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({options:v,mode:m,showSearch:W,getPopupContainer:L.getPopupContainer},B),ref:x,proFieldProps:f},$),{},{children:s}))},I=h.forwardRef(function(p,d){var x=p.fieldProps,B=p.children,s=p.params,n=p.proFieldProps,f=p.mode,m=p.valueEnum,j=p.request,R=p.options,W=(0,u.Z)(p,C),v=(0,t.Z)({options:R,mode:f||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},x),$=(0,h.useContext)(O.Z);return(0,S.jsx)(E.Z,(0,t.Z)((0,t.Z)({valueEnum:(0,g.h)(m),request:j,params:s,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,t.Z)({getPopupContainer:$.getPopupContainer},v),ref:d,proFieldProps:n},W),{},{children:B}))}),Z=h.forwardRef(i),_=I,T=Z;T.SearchSelect=_,T.displayName="ProFormComponent",F.Z=T},90672:function(Q,F,o){var t=o(1413),u=o(91),g=o(67294),h=o(43495),O=o(85893),E=["fieldProps","proFieldProps"],S=function(C,i){var I=C.fieldProps,Z=C.proFieldProps,_=(0,u.Z)(C,E);return(0,O.jsx)(h.Z,(0,t.Z)({ref:i,valueType:"textarea",fieldProps:I,proFieldProps:Z},_))};F.Z=g.forwardRef(S)},5966:function(Q,F,o){var t=o(97685),u=o(1413),g=o(91),h=o(21770),O=o(77569),E=o(55241),S=o(98423),K=o(67294),C=o(43495),i=o(85893),I=["fieldProps","proFieldProps"],Z=["fieldProps","proFieldProps"],_="text",T=function(s){var n=s.fieldProps,f=s.proFieldProps,m=(0,g.Z)(s,I);return(0,i.jsx)(C.Z,(0,u.Z)({valueType:_,fieldProps:n,filedConfig:{valueType:_},proFieldProps:f},m))},p=function(s){var n=(0,h.Z)(s.open||!1,{value:s.open,onChange:s.onOpenChange}),f=(0,t.Z)(n,2),m=f[0],j=f[1];return(0,i.jsx)(O.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(W){var v,$=W.getFieldValue(s.name||[]);return(0,i.jsx)(E.Z,(0,u.Z)((0,u.Z)({getPopupContainer:function(P){return P&&P.parentNode?P.parentNode:P},onOpenChange:function(P){return j(P)},content:(0,i.jsxs)("div",{style:{padding:"4px 0"},children:[(v=s.statusRender)===null||v===void 0?void 0:v.call(s,$),s.strengthText?(0,i.jsx)("div",{style:{marginTop:10},children:(0,i.jsx)("span",{children:s.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},s.popoverProps),{},{open:m,children:s.children}))}})},d=function(s){var n=s.fieldProps,f=s.proFieldProps,m=(0,g.Z)(s,Z),j=(0,K.useState)(!1),R=(0,t.Z)(j,2),W=R[0],v=R[1];return n!=null&&n.statusRender&&m.name?(0,i.jsx)(p,{name:m.name,statusRender:n==null?void 0:n.statusRender,popoverProps:n==null?void 0:n.popoverProps,strengthText:n==null?void 0:n.strengthText,open:W,onOpenChange:v,children:(0,i.jsx)("div",{children:(0,i.jsx)(C.Z,(0,u.Z)({valueType:"password",fieldProps:(0,u.Z)((0,u.Z)({},(0,S.Z)(n,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(L){var P;n==null||(P=n.onBlur)===null||P===void 0||P.call(n,L),v(!1)},onClick:function(L){var P;n==null||(P=n.onClick)===null||P===void 0||P.call(n,L),v(!0)}}),proFieldProps:f,filedConfig:{valueType:_}},m))})}):(0,i.jsx)(C.Z,(0,u.Z)({valueType:"password",fieldProps:n,proFieldProps:f,filedConfig:{valueType:_}},m))},x=T;x.Password=d,x.displayName="ProFormCo