(window.webpackJsonp=window.webpackJsonp||[]).push([[24],{156:function(e,r,t){var a={"./bash":142,"./bash.js":142,"./css":143,"./css.js":143,"./htmlbars":144,"./htmlbars.js":144,"./javascript":145,"./javascript.js":145,"./scss":146,"./scss.js":146,"./typescript":147,"./typescript.js":147};function s(e){var r=n(e);return t(r)}function n(e){if(!t.o(a,e)){var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}return a[e]}s.keys=function(){return Object.keys(a)},s.resolve=n,e.exports=s,s.id=156},557:function(e,r,t){"use strict";var a=t(151),s=(t(152),t(153)),n=(t(154),function(){return a.createElement(a.Fragment,{},a.createElement("h1",{id:"registerfieldmiddleware",className:"react-demo-h1"},"registerFieldMiddleware"),a.createElement("h2",{id:"介绍",className:"react-demo-h2"},"介绍"),a.createElement("p",{className:"react-demo-p"},"注册一个表单字段包装组件，类似于HOC，但是它是先注册组件层级浅,后注册的组件层级深，所以起名middleware"),a.createElement("h2",{id:"类型描述",className:"react-demo-h2"},"类型描述"),a.createElement(s,{code:"type registerFieldMiddleware(...wrappers : Wrapper)\n\ntype Wrapper(FormComponent : Function) : ReactComponent\n",justCode:!0,lang:"typescript"}),a.createElement("h2",{id:"依赖",className:"react-demo-h2"},"依赖"),a.createElement(s,{code:"import {registerFieldMiddleware} from '@uform/react'\n",justCode:!0,lang:"javascript"}),a.createElement("h2",{id:"用例",className:"react-demo-h2"},"用例"),a.createElement(s,{code:"import {registerFieldMiddleware} from '@uform/react'\n\nregisterFieldMiddleware((Field)=>{\n  return (props)=><div><Field {...props}/></div>\n})\n",justCode:!0,lang:"javascript"}))});n.meta={username:"zhili.wzl",email:"wangzhili56@126.com"},e.exports=n}}]);
//# sourceMappingURL=bundle.24.4fe11b94d773a4a0546b.js.map