"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3342],{35748:function(R,a,_){var l=_(35361),d=_(56929),s=_(50959),i=_(20734),m=_(11527),u=["fieldProps","min","proFieldProps","max"],E=function(n,P){var D=n.fieldProps,O=n.min,M=n.proFieldProps,e=n.max,v=(0,d.Z)(n,u);return(0,m.jsx)(i.Z,(0,l.Z)({valueType:"digit",fieldProps:(0,l.Z)({min:O,max:e},D),ref:P,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:M},v))},o=s.forwardRef(E);a.Z=o},20859:function(R,a,_){_.r(a);var l=_(90228),d=_.n(l),s=_(87999),i=_.n(s),m=_(48305),u=_.n(m),E=_(50959),o=_(49547),c=_(35748),n=_(19014),P=_(50925),D=_(94675),O=_(3598),M=_(7485),e=_(11527),v=function(r){var j=P.Z.useForm(),F=u()(j,1),t=F[0],A=r.values;(0,E.useEffect)(function(){console.log(A,"values"),t.resetFields(),t.setFieldsValue(A)},[t,r]);var B=(0,M.useIntl)(),T=function(){t.submit()},I=function(){r.onCancel()},x=function(){var p=i()(d()().mark(function f(C){return d()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:r.onSubmit(C);case 1:case"end":return h.stop()}},f)}));return function(C){return p.apply(this,arguments)}}();return(0,e.jsx)(D.Z,{width:640,title:"\u516C\u544A\u5206\u7C7B",open:r.open,forceRender:!0,destroyOnClose:!0,onOk:T,onCancel:I,children:(0,e.jsxs)(o.A,{form:t,submitter:!1,layout:"horizontal",onFinish:x,children:[(0,e.jsx)(c.Z,{name:"id",label:"ID",disabled:!0,hidden:!0}),(0,e.jsx)(o.A.Group,{children:(0,e.jsx)(n.Z,{name:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,e.jsx)(o.A.Group,{children:(0,e.jsx)(o.A.Item,{label:"\u6392\u5E8F",name:"sort",children:(0,e.jsx)(O.Z,{style:{width:200}})})})]})})};a.default=v}}]);
