20a0fe61b21db255d8c6cfc2677dcbd1.json
5.84 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport { List } from 'rc-field-form';\nimport devWarning from '../_util/devWarning';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemPrefixContext } from './context';\n\nvar FormList = function FormList(_a) {\n var customizePrefixCls = _a.prefixCls,\n children = _a.children,\n props = __rest(_a, [\"prefixCls\", \"children\"]);\n\n devWarning(!!props.name, 'Form.List', 'Miss `name` prop.');\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('form', customizePrefixCls);\n return /*#__PURE__*/React.createElement(List, props, function (fields, operation, meta) {\n return /*#__PURE__*/React.createElement(FormItemPrefixContext.Provider, {\n value: {\n prefixCls: prefixCls,\n status: 'error'\n }\n }, children(fields.map(function (field) {\n return _extends(_extends({}, field), {\n fieldKey: field.key\n });\n }), operation, {\n errors: meta.errors\n }));\n });\n};\n\nexport default FormList;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/form/FormList.js"],"names":["_extends","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","List","devWarning","ConfigContext","FormItemPrefixContext","FormList","_a","customizePrefixCls","prefixCls","children","props","name","_React$useContext","useContext","getPrefixCls","createElement","fields","operation","meta","Provider","value","status","map","field","fieldKey","key","errors"],"mappings":"A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kBAAkB,GAAGD,EAAE,CAACE,SAA5B;AAAA,MACIC,QAAQ,GAAGH,EAAE,CAACG,QADlB;AAAA,MAEIC,KAAK,GAAGxB,MAAM,CAACoB,EAAD,EAAK,CAAC,WAAD,EAAc,UAAd,CAAL,CAFlB;;AAIAJ,EAAAA,UAAU,CAAC,CAAC,CAACQ,KAAK,CAACC,IAAT,EAAe,WAAf,EAA4B,mBAA5B,CAAV;;AAEA,MAAIC,iBAAiB,GAAGZ,KAAK,CAACa,UAAN,CAAiBV,aAAjB,CAAxB;AAAA,MACIW,YAAY,GAAGF,iBAAiB,CAACE,YADrC;;AAGA,MAAIN,SAAS,GAAGM,YAAY,CAAC,MAAD,EAASP,kBAAT,CAA5B;AACA,SAAO,aAAaP,KAAK,CAACe,aAAN,CAAoBd,IAApB,EAA0BS,KAA1B,EAAiC,UAAUM,MAAV,EAAkBC,SAAlB,EAA6BC,IAA7B,EAAmC;AACtF,WAAO,aAAalB,KAAK,CAACe,aAAN,CAAoBX,qBAAqB,CAACe,QAA1C,EAAoD;AACtEC,MAAAA,KAAK,EAAE;AACLZ,QAAAA,SAAS,EAAEA,SADN;AAELa,QAAAA,MAAM,EAAE;AAFH;AAD+D,KAApD,EAKjBZ,QAAQ,CAACO,MAAM,CAACM,GAAP,CAAW,UAAUC,KAAV,EAAiB;AACtC,aAAOtC,QAAQ,CAACA,QAAQ,CAAC,EAAD,EAAKsC,KAAL,CAAT,EAAsB;AACnCC,QAAAA,QAAQ,EAAED,KAAK,CAACE;AADmB,OAAtB,CAAf;AAGD,KAJW,CAAD,EAIPR,SAJO,EAII;AACbS,MAAAA,MAAM,EAAER,IAAI,CAACQ;AADA,KAJJ,CALS,CAApB;AAYD,GAbmB,CAApB;AAcD,CAzBD;;AA2BA,eAAerB,QAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport * as React from 'react';\nimport { List } from 'rc-field-form';\nimport devWarning from '../_util/devWarning';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemPrefixContext } from './context';\n\nvar FormList = function FormList(_a) {\n var customizePrefixCls = _a.prefixCls,\n children = _a.children,\n props = __rest(_a, [\"prefixCls\", \"children\"]);\n\n devWarning(!!props.name, 'Form.List', 'Miss `name` prop.');\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('form', customizePrefixCls);\n return /*#__PURE__*/React.createElement(List, props, function (fields, operation, meta) {\n return /*#__PURE__*/React.createElement(FormItemPrefixContext.Provider, {\n value: {\n prefixCls: prefixCls,\n status: 'error'\n }\n }, children(fields.map(function (field) {\n return _extends(_extends({}, field), {\n fieldKey: field.key\n });\n }), operation, {\n errors: meta.errors\n }));\n });\n};\n\nexport default FormList;"]},"metadata":{},"sourceType":"module"}