2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[25787],{5966:function(h,d,o){"use strict";var c=o(28991),l=o(81253),s=o(85893),t=o(47869),g=["fieldProps","proFieldProps"],m=["fieldProps","proFieldProps"],e="text",_=function(i){var T=i.fieldProps,C=i.proFieldProps,L=(0,l.Z)(i,g);return(0,s.jsx)(t.Z,(0,c.Z)({valueType:e,fieldProps:T,filedConfig:{valueType:e},proFieldProps:C},L))},Z=function(i){var T=i.fieldProps,C=i.proFieldProps,L=(0,l.Z)(i,m);return(0,s.jsx)(t.Z,(0,c.Z)({valueType:"password",fieldProps:T,proFieldProps:C,filedConfig:{valueType:e}},L))},M=_;M.Password=Z,M.displayName="ProFormComponent",d.Z=M},952:function(h,d,o){"use strict";var c=o(56640),l=o.n(c),s=o(5894);d.ZP=s.A},5894:function(h,d,o){"use strict";o.d(d,{A:function(){return r}});var c=o(9715),l=o(55843),s=o(28991),t=o(85893),g=o(42489),m=o(96156),e=o(49111),_=o(19650),Z=o(84305),M=o(39559),p=o(28481),i=o(8812),T=o(56725),C=o(53621),L=o(94184),x=o.n(L),a=o(67294),E=o(66758),B=o(2514),j=o(96138),A=a.forwardRef(function(u,y){var v=a.useContext(E.Z),I=v.groupProps,n=(0,s.Z)((0,s.Z)({},I),u),G=n.children,z=n.collapsible,lo=n.defaultCollapsed,ao=n.style,io=n.labelLayout,V=n.title,K=V===void 0?u.label:V,H=n.tooltip,Q=n.align,Y=Q===void 0?"start":Q,J=n.direction,X=n.size,b=X===void 0?32:X,uo=n.titleStyle,w=n.titleRender,f=n.spaceProps,U=n.extra,N=n.autoFocus,vo=(0,T.Z)(function(){return lo||!1},{value:u.collapsed,onChange:u.onCollapse}),k=(0,p.Z)(vo,2),S=k[0],co=k[1],Po=(0,a.useContext)(M.ZP.ConfigContext),po=Po.getPrefixCls,q=(0,B.zx)(u),Eo=q.ColWrapper,oo=q.RowWrapper,R=po("pro-form-group"),to=z&&(0,t.jsx)(i.Z,{style:{marginRight:8},rotate:S?void 0:90}),eo=(0,t.jsx)(C.Z,{label:to?(0,t.jsxs)("div",{children:[to,K]}):K,tooltip:H}),so=(0,a.useCallback)(function(O){var W=O.children;return(0,t.jsx)(_.Z,(0,s.Z)((0,s.Z)({},f),{},{className:x()("".concat(R,"-container"),f==null?void 0:f.className),size:b,align:Y,direction:J,style:(0,s.Z)({rowGap:0},f==null?void 0:f.style),children:W}))},[Y,R,J,b,f]),no=w?w(eo,u):eo,fo=(0,a.useMemo)(function(){var O=[],W=a.Children.toArray(G).map(function(P,Mo){var $;return a.isValidElement(P)&&(P==null||($=P.props)===null||$===void 0?void 0:$.hidden)?(O.push(P),null):Mo===0&&a.isValidElement(P)&&N?a.cloneElement(P,(0,s.Z)((0,s.Z)({},P.props),{},{autoFocus:N})):P});return[(0,t.jsx)(oo,{Wrapper:so,children:W},"children"),O.length>0?(0,t.jsx)("div",{style:{display:"none"},children:O}):null]},[G,oo,so,N]),ro=(0,p.Z)(fo,2),mo=ro[0],_o=ro[1];return(0,t.jsx)(Eo,{children:(0,t.jsxs)("div",{className:x()(R,(0,m.Z)({},"".concat(R,"-twoLine"),io==="twoLine")),style:ao,ref:y,children:[_o,(K||H||U)&&(0,t.jsx)("div",{className:"".concat(R,"-title"),style:uo,onClick:function(){co(!S)},children:U?(0,t.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[no,(0,t.jsx)("span",{onClick:function(W){return W.stopPropagation()},children:U})]}):no}),z&&S?null:mo]})})});A.displayName="ProForm-Group";var F=A,D=o(7525);function r(u){return(0,t.jsx)(g.I,(0,s.Z)({layout:"vertical",submitter:{render:function(v,I){return I.reverse()}},contentRender:function(v,I){return(0,t.jsxs)(t.Fragment,{children:[v,I]})}},u))}r.Group=F,r.useForm=l.Z.useForm,r.Item=D.Z,r.useWatch=l.Z.useWatch,r.ErrorList=l.Z.ErrorList,r.Provider=l.Z.Provider,r.useFormInstance=l.Z.useFormInstance},53621:function(h,d,o){"use strict";var c=o(28991),l=o(22385),s=o(45777),t=o(96156),g=o(84305),m=o(39559),e=o(85893),_=o(68628),Z=o(94184),M=o.n(Z),p=o(67294),i=o(47369),T=o.n(i),C=function(x){var a=x.label,E=x.tooltip,B=x.ellipsis,j=x.subTitle,A=(0,p.useContext)(m.ZP.ConfigContext),F=A.getPrefixCls;if(!E&&!j)return(0,e.jsx)(e.Fragment,{children:a});var D=F("pro-core-label-tip"),r=typeof E=="string"||p.isValidElement(E)?{title:E}:E,u=(r==null?void 0:r.icon)||(0,e.jsx)(_.Z,{});return(0,e.jsxs)("div",{className:D,onMouseDown:function(v){return v.stopPropagation()},onMouseLeave:function(v){return v.stopPropagation()},onMouseMove:function(v){return v.stopPropagation()},children:[(0,e.jsx)("div",{className:M()("".concat(D
|