4d26f3347b23f6ebaf242da26f8a6cd4.json
2.42 KB
{"ast":null,"code":"import * as React from 'react';\nimport omit from 'omit.js';\nimport { FormProvider as RcFormProvider } from 'rc-field-form';\nexport var FormContext = /*#__PURE__*/React.createContext({\n labelAlign: 'right',\n vertical: false,\n itemRef: function itemRef() {}\n});\nexport var FormItemContext = /*#__PURE__*/React.createContext({\n updateItemErrors: function updateItemErrors() {}\n});\nexport var FormProvider = function FormProvider(props) {\n var providerProps = omit(props, ['prefixCls']);\n return /*#__PURE__*/React.createElement(RcFormProvider, providerProps);\n};\nexport var FormItemPrefixContext = /*#__PURE__*/React.createContext({\n prefixCls: ''\n});","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/form/context.js"],"names":["React","omit","FormProvider","RcFormProvider","FormContext","createContext","labelAlign","vertical","itemRef","FormItemContext","updateItemErrors","props","providerProps","createElement","FormItemPrefixContext","prefixCls"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,SAASC,YAAY,IAAIC,cAAzB,QAA+C,eAA/C;AACA,OAAO,IAAIC,WAAW,GAAG,aAAaJ,KAAK,CAACK,aAAN,CAAoB;AACxDC,EAAAA,UAAU,EAAE,OAD4C;AAExDC,EAAAA,QAAQ,EAAE,KAF8C;AAGxDC,EAAAA,OAAO,EAAE,SAASA,OAAT,GAAmB,CAAE;AAH0B,CAApB,CAA/B;AAKP,OAAO,IAAIC,eAAe,GAAG,aAAaT,KAAK,CAACK,aAAN,CAAoB;AAC5DK,EAAAA,gBAAgB,EAAE,SAASA,gBAAT,GAA4B,CAAE;AADY,CAApB,CAAnC;AAGP,OAAO,IAAIR,YAAY,GAAG,SAASA,YAAT,CAAsBS,KAAtB,EAA6B;AACrD,MAAIC,aAAa,GAAGX,IAAI,CAACU,KAAD,EAAQ,CAAC,WAAD,CAAR,CAAxB;AACA,SAAO,aAAaX,KAAK,CAACa,aAAN,CAAoBV,cAApB,EAAoCS,aAApC,CAApB;AACD,CAHM;AAIP,OAAO,IAAIE,qBAAqB,GAAG,aAAad,KAAK,CAACK,aAAN,CAAoB;AAClEU,EAAAA,SAAS,EAAE;AADuD,CAApB,CAAzC","sourcesContent":["import * as React from 'react';\nimport omit from 'omit.js';\nimport { FormProvider as RcFormProvider } from 'rc-field-form';\nexport var FormContext = /*#__PURE__*/React.createContext({\n labelAlign: 'right',\n vertical: false,\n itemRef: function itemRef() {}\n});\nexport var FormItemContext = /*#__PURE__*/React.createContext({\n updateItemErrors: function updateItemErrors() {}\n});\nexport var FormProvider = function FormProvider(props) {\n var providerProps = omit(props, ['prefixCls']);\n return /*#__PURE__*/React.createElement(RcFormProvider, providerProps);\n};\nexport var FormItemPrefixContext = /*#__PURE__*/React.createContext({\n prefixCls: ''\n});"]},"metadata":{},"sourceType":"module"}