"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9532],{35748:function(T,i,e){var s=e(35361),u=e(56929),c=e(50959),v=e(50474),f=e(11527),F=["fieldProps","min","proFieldProps","max"],h=function(l,m){var P=l.fieldProps,C=l.min,r=l.proFieldProps,p=l.max,x=(0,u.Z)(l,F);return(0,f.jsx)(v.Z,(0,s.Z)({valueType:"digit",fieldProps:(0,s.Z)({min:C,max:p},P),ref:m,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:r},x))},n=c.forwardRef(h);i.Z=n},90646:function(T,i,e){e.r(i),e.d(i,{default:function(){return G}});var s=e(90228),u=e.n(s),c=e(87999),v=e.n(c),f=e(48305),F=e.n(f),h=e(50959),n=e(49547),Z=e(35748),l=e(19014),m=e(35361),P=e(56929),C=e(50474),r=e(11527),p=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],x=h.forwardRef(function(t,o){var j=t.fieldProps,g=t.unCheckedChildren,d=t.checkedChildren,a=t.proFieldProps,O=(0,P.Z)(t,p);return(0,r.jsx)(C.Z,(0,m.Z)({valueType:"switch",fieldProps:(0,m.Z)({unCheckedChildren:g,checkedChildren:d},j),ref:o,valuePropName:"checked",proFieldProps:a,filedConfig:{valuePropName:"checked",ignoreWidth:!0,customLightMode:!0}},O))}),M=x,y=e(50925),I=e(94675),U=e(3598),W=e(7485),B=e(2733),L=function(o){var j=y.Z.useForm(),g=F()(j,1),d=g[0],a=o.values;(0,h.useEffect)(function(){console.log(a,"values"),d.resetFields(),d.setFieldsValue(a)},[d,o]);var O=(0,W.useIntl)(),K=function(){d.submit()},S=function(){o.onCancel()},$=function(){var E=v()(u()().mark(function A(R){return u()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:o.onSubmit(R);case 1:case"end":return D.stop()}},A)}));return function(R){return E.apply(this,arguments)}}();return(0,r.jsx)(I.Z,{width:640,title:"\u8F6E\u64AD\u56FE",open:o.open,forceRender:!0,destroyOnClose:!0,onOk:K,onCancel:S,children:(0,r.jsxs)(n.A,{form:d,submitter:!1,layout:"horizontal",onFinish:$,children:[(0,r.jsx)(Z.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,r.jsx)(n.A.Group,{children:(0,r.jsx)(l.Z,{name:"title",label:"\u6807\u9898",placeholder:"\u8BF7\u8F93\u5165\u6807\u9898"})}),(0,r.jsxs)(n.A.Group,{children:[(0,r.jsx)(n.A.Item,{label:"\u6392\u5E8F",name:"sortOrder",children:(0,r.jsx)(U.Z,{style:{width:200}})}),(0,r.jsx)(l.Z,{name:"jumpUrl",label:"\u8DF3\u8F6C\u5730\u5740",placeholder:"\u8BF7\u8F93\u5165\u8DF3\u8F6C\u5730\u5740"}),(0,r.jsx)(M,{checkedChildren:"\u542F\u7528",unCheckedChildren:"\u7981\u7528",name:"status",label:"\u662F\u5426\u542F\u7528",fieldProps:{defaultChecked:!0}})]}),(0,r.jsx)(n.A.Group,{children:(0,r.jsx)(n.A.Item,{label:"\u56FE\u7247",name:"imageUrl",children:(0,r.jsx)(B.Z,{fileType:"image",defaultValue:a==null?void 0:a.imageUrl,count:1,mode:""})})})]})})},G=L}}]);
