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
14 KiB

8 months ago
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[366],{34994:function($e,J,e){e.d(J,{A:function(){return t}});var Z=e(1413),S=e(8232),x=e(67294),U=e(78733),ue=e(9105),C=e(4942),Q=e(97685),ce=e(87462),ve=e(50756),ge=e(46976),l=function(v,T){return x.createElement(ge.Z,(0,ce.Z)({},v,{ref:T,icon:ve.Z}))},M=x.forwardRef(l),pe=e(21770),fe=e(48874),me=e(28459),w=e(78957),he=e(93967),O=e.n(he),xe=e(66758),ye=e(2514),Pe=e(98082),Ze=function(v){return(0,C.Z)({},v.componentCls,{"&-title":{marginBlockEnd:v.marginXL,fontWeight:"bold"},"&-container":(0,C.Z)({flexWrap:"wrap",maxWidth:"100%"},"> div".concat(v.antCls,"-space-item"),{maxWidth:"100%"}),"&-twoLine":(0,C.Z)((0,C.Z)((0,C.Z)((0,C.Z)({display:"block",width:"100%"},"".concat(v.componentCls,"-title"),{width:"100%",margin:"8px 0"}),"".concat(v.componentCls,"-container"),{paddingInlineStart:16}),"".concat(v.antCls,"-space-item,").concat(v.antCls,"-form-item"),{width:"100%"}),"".concat(v.antCls,"-form-item"),{"&-control":{display:"flex",alignItems:"center",justifyContent:"flex-end","&-input":{alignItems:"center",justifyContent:"flex-end","&-content":{flex:"none"}}}})})};function Se(h){return(0,Pe.Xj)("ProFormGroup",function(v){var T=(0,Z.Z)((0,Z.Z)({},v),{},{componentCls:".".concat(h)});return[Ze(T)]})}var u=e(85893),k=x.forwardRef(function(h,v){var T=x.useContext(xe.Z),D=T.groupProps,g=(0,Z.Z)((0,Z.Z)({},D),h),q=g.children,_=g.collapsible,W=g.defaultCollapsed,Fe=g.style,Me=g.labelLayout,z=g.title,V=z===void 0?h.label:z,ee=g.tooltip,te=g.align,G=te===void 0?"start":te,b=g.direction,X=g.size,ne=X===void 0?32:X,Te=g.titleStyle,re=g.titleRender,L=g.spaceProps,K=g.extra,Y=g.autoFocus,oe=(0,pe.Z)(function(){return W||!1},{value:h.collapsed,onChange:h.onCollapse}),ae=(0,Q.Z)(oe,2),y=ae[0],Le=ae[1],Re=(0,x.useContext)(me.ZP.ConfigContext),Ie=Re.getPrefixCls,le=(0,ye.zx)(h),Be=le.ColWrapper,se=le.RowWrapper,N=Ie("pro-form-group"),ie=Se(N),Ee=ie.wrapSSR,H=ie.hashId,o=_&&(0,u.jsx)(M,{style:{marginInlineEnd:8},rotate:y?void 0:90}),r=(0,u.jsx)(fe.G,{label:o?(0,u.jsxs)("div",{children:[o,V]}):V,tooltip:ee}),n=(0,x.useCallback)(function(c){var P=c.children;return(0,u.jsx)(w.Z,(0,Z.Z)((0,Z.Z)({},L),{},{className:O()("".concat(N,"-container ").concat(H),L==null?void 0:L.className),size:ne,align:G,direction:b,style:(0,Z.Z)({rowGap:0},L==null?void 0:L.style),children:P}))},[G,N,b,H,ne,L]),d=re?re(r,h):r,p=(0,x.useMemo)(function(){var c=[],P=x.Children.toArray(q).map(function(s,a){var A;return x.isValidElement(s)&&s!==null&&s!==void 0&&(A=s.props)!==null&&A!==void 0&&A.hidden?(c.push(s),null):a===0&&x.isValidElement(s)&&Y?x.cloneElement(s,(0,Z.Z)((0,Z.Z)({},s.props),{},{autoFocus:Y})):s});return[(0,u.jsx)(se,{Wrapper:n,children:P},"children"),c.length>0?(0,u.jsx)("div",{style:{display:"none"},children:c}):null]},[q,se,n,Y]),m=(0,Q.Z)(p,2),f=m[0],j=m[1];return Ee((0,u.jsx)(Be,{children:(0,u.jsxs)("div",{className:O()(N,H,(0,C.Z)({},"".concat(N,"-twoLine"),Me==="twoLine")),style:Fe,ref:v,children:[j,(V||ee||K)&&(0,u.jsx)("div",{className:"".concat(N,"-title ").concat(H).trim(),style:Te,onClick:function(){Le(!y)},children:K?(0,u.jsxs)("div",{style:{display:"flex",width:"100%",alignItems:"center",justifyContent:"space-between"},children:[d,(0,u.jsx)("span",{onClick:function(P){return P.stopPropagation()},children:K})]}):d}),(0,u.jsx)("div",{style:{display:_&&y?"none":void 0},children:f})]})}))});k.displayName="ProForm-Group";var Ce=k,je=e(4499);function t(h){return(0,u.jsx)(U.I,(0,Z.Z)({layout:"vertical",contentRender:function(T,D){return(0,u.jsxs)(u.Fragment,{children:[T,D]})}},h))}t.Group=Ce,t.useForm=S.Z.useForm,t.Item=je.Z,t.useWatch=S.Z.useWatch,t.ErrorList=S.Z.ErrorList,t.Provider=S.Z.Provider,t.useFormInstance=S.Z.useFormInstance,t.EditOrReadOnlyContext=ue.A},14525:function($e,J,e){e.r(J),e.d(J,{default:function(){return H}});var Z=e(15009),S=e.n(Z),x=e(97857),U=e.n(x),ue=e(99289),C=e.n(ue),Q=e(5574),ce=e.n(Q),ve=e(48357),ge=e(87547),l=e(1413),M=e(67294),pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M