eaf2fe9e30d5982389536b2db8cfca5b.json 3.04 KB
{"ast":null,"code":"import * as React from 'react';\nimport Empty from '../empty';\nimport { ConfigConsumer } from '.';\n\nvar renderEmpty = function renderEmpty(componentName) {\n  return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {\n    var getPrefixCls = _ref.getPrefixCls;\n    var prefix = getPrefixCls('empty');\n\n    switch (componentName) {\n      case 'Table':\n      case 'List':\n        return /*#__PURE__*/React.createElement(Empty, {\n          image: Empty.PRESENTED_IMAGE_SIMPLE\n        });\n\n      case 'Select':\n      case 'TreeSelect':\n      case 'Cascader':\n      case 'Transfer':\n      case 'Mentions':\n        return /*#__PURE__*/React.createElement(Empty, {\n          image: Empty.PRESENTED_IMAGE_SIMPLE,\n          className: \"\".concat(prefix, \"-small\")\n        });\n\n      default:\n        return /*#__PURE__*/React.createElement(Empty, null);\n    }\n  });\n};\n\nexport default renderEmpty;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/config-provider/renderEmpty.js"],"names":["React","Empty","ConfigConsumer","renderEmpty","componentName","createElement","_ref","getPrefixCls","prefix","image","PRESENTED_IMAGE_SIMPLE","className","concat"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,KAAP,MAAkB,UAAlB;AACA,SAASC,cAAT,QAA+B,GAA/B;;AAEA,IAAIC,WAAW,GAAG,SAASA,WAAT,CAAqBC,aAArB,EAAoC;AACpD,SAAO,aAAaJ,KAAK,CAACK,aAAN,CAAoBH,cAApB,EAAoC,IAApC,EAA0C,UAAUI,IAAV,EAAgB;AAC5E,QAAIC,YAAY,GAAGD,IAAI,CAACC,YAAxB;AACA,QAAIC,MAAM,GAAGD,YAAY,CAAC,OAAD,CAAzB;;AAEA,YAAQH,aAAR;AACE,WAAK,OAAL;AACA,WAAK,MAAL;AACE,eAAO,aAAaJ,KAAK,CAACK,aAAN,CAAoBJ,KAApB,EAA2B;AAC7CQ,UAAAA,KAAK,EAAER,KAAK,CAACS;AADgC,SAA3B,CAApB;;AAIF,WAAK,QAAL;AACA,WAAK,YAAL;AACA,WAAK,UAAL;AACA,WAAK,UAAL;AACA,WAAK,UAAL;AACE,eAAO,aAAaV,KAAK,CAACK,aAAN,CAAoBJ,KAApB,EAA2B;AAC7CQ,UAAAA,KAAK,EAAER,KAAK,CAACS,sBADgC;AAE7CC,UAAAA,SAAS,EAAE,GAAGC,MAAH,CAAUJ,MAAV,EAAkB,QAAlB;AAFkC,SAA3B,CAApB;;AAKF;AACE,eAAO,aAAaR,KAAK,CAACK,aAAN,CAAoBJ,KAApB,EAA2B,IAA3B,CAApB;AAlBJ;AAoBD,GAxBmB,CAApB;AAyBD,CA1BD;;AA4BA,eAAeE,WAAf","sourcesContent":["import * as React from 'react';\nimport Empty from '../empty';\nimport { ConfigConsumer } from '.';\n\nvar renderEmpty = function renderEmpty(componentName) {\n  return /*#__PURE__*/React.createElement(ConfigConsumer, null, function (_ref) {\n    var getPrefixCls = _ref.getPrefixCls;\n    var prefix = getPrefixCls('empty');\n\n    switch (componentName) {\n      case 'Table':\n      case 'List':\n        return /*#__PURE__*/React.createElement(Empty, {\n          image: Empty.PRESENTED_IMAGE_SIMPLE\n        });\n\n      case 'Select':\n      case 'TreeSelect':\n      case 'Cascader':\n      case 'Transfer':\n      case 'Mentions':\n        return /*#__PURE__*/React.createElement(Empty, {\n          image: Empty.PRESENTED_IMAGE_SIMPLE,\n          className: \"\".concat(prefix, \"-small\")\n        });\n\n      default:\n        return /*#__PURE__*/React.createElement(Empty, null);\n    }\n  });\n};\n\nexport default renderEmpty;"]},"metadata":{},"sourceType":"module"}