69270797b8f33c20064afda6cdd60203.json
4.16 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport omit from 'omit.js';\nimport classNames from 'classnames';\nimport Element from './Element';\nimport { ConfigConsumer } from '../config-provider';\n\nvar SkeletonButton = function SkeletonButton(props) {\n var renderSkeletonButton = function renderSkeletonButton(_ref) {\n var getPrefixCls = _ref.getPrefixCls;\n var customizePrefixCls = props.prefixCls,\n className = props.className,\n active = props.active;\n var prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n var otherProps = omit(props, ['prefixCls']);\n var cls = classNames(prefixCls, \"\".concat(prefixCls, \"-element\"), _defineProperty({}, \"\".concat(prefixCls, \"-active\"), active), className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, _extends({\n prefixCls: \"\".concat(prefixCls, \"-button\")\n }, otherProps)));\n };\n\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, renderSkeletonButton);\n};\n\nSkeletonButton.defaultProps = {\n size: 'default'\n};\nexport default SkeletonButton;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/skeleton/Button.js"],"names":["_extends","_defineProperty","React","omit","classNames","Element","ConfigConsumer","SkeletonButton","props","renderSkeletonButton","_ref","getPrefixCls","customizePrefixCls","prefixCls","className","active","otherProps","cls","concat","createElement","defaultProps","size"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;AACA,OAAOC,eAAP,MAA4B,uCAA5B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,IAAP,MAAiB,SAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,OAAP,MAAoB,WAApB;AACA,SAASC,cAAT,QAA+B,oBAA/B;;AAEA,IAAIC,cAAc,GAAG,SAASA,cAAT,CAAwBC,KAAxB,EAA+B;AAClD,MAAIC,oBAAoB,GAAG,SAASA,oBAAT,CAA8BC,IAA9B,EAAoC;AAC7D,QAAIC,YAAY,GAAGD,IAAI,CAACC,YAAxB;AACA,QAAIC,kBAAkB,GAAGJ,KAAK,CAACK,SAA/B;AAAA,QACIC,SAAS,GAAGN,KAAK,CAACM,SADtB;AAAA,QAEIC,MAAM,GAAGP,KAAK,CAACO,MAFnB;AAGA,QAAIF,SAAS,GAAGF,YAAY,CAAC,UAAD,EAAaC,kBAAb,CAA5B;AACA,QAAII,UAAU,GAAGb,IAAI,CAACK,KAAD,EAAQ,CAAC,WAAD,CAAR,CAArB;AACA,QAAIS,GAAG,GAAGb,UAAU,CAACS,SAAD,EAAY,GAAGK,MAAH,CAAUL,SAAV,EAAqB,UAArB,CAAZ,EAA8CZ,eAAe,CAAC,EAAD,EAAK,GAAGiB,MAAH,CAAUL,SAAV,EAAqB,SAArB,CAAL,EAAsCE,MAAtC,CAA7D,EAA4GD,SAA5G,CAApB;AACA,WAAO,aAAaZ,KAAK,CAACiB,aAAN,CAAoB,KAApB,EAA2B;AAC7CL,MAAAA,SAAS,EAAEG;AADkC,KAA3B,EAEjB,aAAaf,KAAK,CAACiB,aAAN,CAAoBd,OAApB,EAA6BL,QAAQ,CAAC;AACpDa,MAAAA,SAAS,EAAE,GAAGK,MAAH,CAAUL,SAAV,EAAqB,SAArB;AADyC,KAAD,EAElDG,UAFkD,CAArC,CAFI,CAApB;AAKD,GAbD;;AAeA,SAAO,aAAad,KAAK,CAACiB,aAAN,CAAoBb,cAApB,EAAoC,IAApC,EAA0CG,oBAA1C,CAApB;AACD,CAjBD;;AAmBAF,cAAc,CAACa,YAAf,GAA8B;AAC5BC,EAAAA,IAAI,EAAE;AADsB,CAA9B;AAGA,eAAed,cAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport * as React from 'react';\nimport omit from 'omit.js';\nimport classNames from 'classnames';\nimport Element from './Element';\nimport { ConfigConsumer } from '../config-provider';\n\nvar SkeletonButton = function SkeletonButton(props) {\n var renderSkeletonButton = function renderSkeletonButton(_ref) {\n var getPrefixCls = _ref.getPrefixCls;\n var customizePrefixCls = props.prefixCls,\n className = props.className,\n active = props.active;\n var prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n var otherProps = omit(props, ['prefixCls']);\n var cls = classNames(prefixCls, \"\".concat(prefixCls, \"-element\"), _defineProperty({}, \"\".concat(prefixCls, \"-active\"), active), className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, _extends({\n prefixCls: \"\".concat(prefixCls, \"-button\")\n }, otherProps)));\n };\n\n return /*#__PURE__*/React.createElement(ConfigConsumer, null, renderSkeletonButton);\n};\n\nSkeletonButton.defaultProps = {\n size: 'default'\n};\nexport default SkeletonButton;"]},"metadata":{},"sourceType":"module"}