09572d4f9bf47b2305f14a81ee94f1fc.json
6.07 KB
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nfunction notEmpty(val) {\n return val !== undefined && val !== null;\n}\n\nvar Cell = function Cell(_ref) {\n var itemPrefixCls = _ref.itemPrefixCls,\n component = _ref.component,\n span = _ref.span,\n className = _ref.className,\n style = _ref.style,\n labelStyle = _ref.labelStyle,\n contentStyle = _ref.contentStyle,\n bordered = _ref.bordered,\n label = _ref.label,\n content = _ref.content,\n colon = _ref.colon;\n var Component = component;\n\n if (bordered) {\n var _classNames;\n\n return /*#__PURE__*/React.createElement(Component, {\n className: classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(itemPrefixCls, \"-item-label\"), notEmpty(label)), _defineProperty(_classNames, \"\".concat(itemPrefixCls, \"-item-content\"), notEmpty(content)), _classNames), className),\n style: style,\n colSpan: span\n }, notEmpty(label) ? label : content);\n }\n\n return /*#__PURE__*/React.createElement(Component, {\n className: classNames(\"\".concat(itemPrefixCls, \"-item\"), className),\n style: style,\n colSpan: span\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(itemPrefixCls, \"-item-container\")\n }, label && /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(itemPrefixCls, \"-item-label\"), _defineProperty({}, \"\".concat(itemPrefixCls, \"-item-no-colon\"), !colon)),\n style: labelStyle\n }, label), content && /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(itemPrefixCls, \"-item-content\")),\n style: contentStyle\n }, content)));\n};\n\nexport default Cell;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/descriptions/Cell.js"],"names":["_defineProperty","React","classNames","notEmpty","val","undefined","Cell","_ref","itemPrefixCls","component","span","className","style","labelStyle","contentStyle","bordered","label","content","colon","Component","_classNames","createElement","concat","colSpan"],"mappings":"AAAA,OAAOA,eAAP,MAA4B,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AAEjDC,MAAAA,KAAK,EAAEA,KAF0C;AAGjDW,MAAAA,OAAO,EAAEb;AAHwC,KAA/B,EAIjBP,QAAQ,CAACa,KAAD,CAAR,GAAkBA,KAAlB,GAA0BC,OAJT,CAApB;AAKD;;AAED,SAAO,aAAahB,KAAK,CAACoB,aAAN,CAAoBF,SAApB,EAA+B;AACjDR,IAAAA,SAAS,EAAET,UAAU,CAAC,GAAGoB,MAAH,CAAUd,aAAV,EAAyB,OAAzB,CAAD,EAAoCG,SAApC,CAD4B;AAEjDC,IAAAA,KAAK,EAAEA,KAF0C;AAGjDW,IAAAA,OAAO,EAAEb;AAHwC,GAA/B,EAIjB,aAAaT,KAAK,CAACoB,aAAN,CAAoB,KAApB,EAA2B;AACzCV,IAAAA,SAAS,EAAE,GAAGW,MAAH,CAAUd,aAAV,EAAyB,iBAAzB;AAD8B,GAA3B,EAEbQ,KAAK,IAAI,aAAaf,KAAK,CAACoB,aAAN,CAAoB,MAApB,EAA4B;AACnDV,IAAAA,SAAS,EAAET,UAAU,CAAC,GAAGoB,MAAH,CAAUd,aAAV,EAAyB,aAAzB,CAAD,EAA0CR,eAAe,CAAC,EAAD,EAAK,GAAGsB,MAAH,CAAUd,aAAV,EAAyB,gBAAzB,CAAL,EAAiD,CAACU,KAAlD,CAAzD,CAD8B;AAEnDN,IAAAA,KAAK,EAAEC;AAF4C,GAA5B,EAGtBG,KAHsB,CAFT,EAKLC,OAAO,IAAI,aAAahB,KAAK,CAACoB,aAAN,CAAoB,MAApB,EAA4B;AAC7DV,IAAAA,SAAS,EAAET,UAAU,CAAC,GAAGoB,MAAH,CAAUd,aAAV,EAAyB,eAAzB,CAAD,CADwC;AAE7DI,IAAAA,KAAK,EAAEE;AAFsD,GAA5B,EAGhCG,OAHgC,CALnB,CAJI,CAApB;AAaD,CArCD;;AAuCA,eAAeX,IAAf","sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nfunction notEmpty(val) {\n return val !== undefined && val !== null;\n}\n\nvar Cell = function Cell(_ref) {\n var itemPrefixCls = _ref.itemPrefixCls,\n component = _ref.component,\n span = _ref.span,\n className = _ref.className,\n style = _ref.style,\n labelStyle = _ref.labelStyle,\n contentStyle = _ref.contentStyle,\n bordered = _ref.bordered,\n label = _ref.label,\n content = _ref.content,\n colon = _ref.colon;\n var Component = component;\n\n if (bordered) {\n var _classNames;\n\n return /*#__PURE__*/React.createElement(Component, {\n className: classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(itemPrefixCls, \"-item-label\"), notEmpty(label)), _defineProperty(_classNames, \"\".concat(itemPrefixCls, \"-item-content\"), notEmpty(content)), _classNames), className),\n style: style,\n colSpan: span\n }, notEmpty(label) ? label : content);\n }\n\n return /*#__PURE__*/React.createElement(Component, {\n className: classNames(\"\".concat(itemPrefixCls, \"-item\"), className),\n style: style,\n colSpan: span\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(itemPrefixCls, \"-item-container\")\n }, label && /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(itemPrefixCls, \"-item-label\"), _defineProperty({}, \"\".concat(itemPrefixCls, \"-item-no-colon\"), !colon)),\n style: labelStyle\n }, label), content && /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(\"\".concat(itemPrefixCls, \"-item-content\")),\n style: contentStyle\n }, content)));\n};\n\nexport default Cell;"]},"metadata":{},"sourceType":"module"}