956e7abb0a65e86693509f06144c4e55.json
9.2 KB
{"ast":null,"code":"import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\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 classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\n\nvar TimelineItem = function TimelineItem(_a) {\n var _classNames, _classNames2;\n\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n _a$color = _a.color,\n color = _a$color === void 0 ? 'blue' : _a$color,\n dot = _a.dot,\n _a$pending = _a.pending,\n pending = _a$pending === void 0 ? false : _a$pending,\n position = _a.position,\n label = _a.label,\n children = _a.children,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('timeline', customizePrefixCls);\n var itemClassName = classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-item\"), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-item-pending\"), pending), _classNames), className);\n var dotClassName = classNames((_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head\"), true), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head-custom\"), dot), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head-\").concat(color), true), _classNames2));\n return /*#__PURE__*/React.createElement(\"li\", _extends({}, restProps, {\n className: itemClassName\n }), label && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-label\")\n }, label), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-tail\")\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: dotClassName,\n style: {\n borderColor: /blue|red|green|gray/.test(color || '') ? undefined : color\n }\n }, dot), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-content\")\n }, children));\n};\n\nexport default TimelineItem;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/timeline/TimelineItem.js"],"names":["_extends","_defineProperty","__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","React","classNames","ConfigContext","TimelineItem","_a","_classNames","_classNames2","customizePrefixCls","prefixCls","className","_a$color","color","dot","_a$pending","pending","position","label","children","restProps","_React$useContext","useContext","getPrefixCls","itemClassName","concat","dotClassName","createElement","style","borderColor","test","undefined"],"mappings":"AAAA,OAAOA,QAAP,MAAqB,gCAArB;AACA,OAAOC,eAAP,MAA4B,uCAA5B;;AAEA,IAAIC,MAAM,GAAG,QAAQ,KAAKA,MAAb,IAAuB,UAAUC,CAAV,EAAaC,CAAb,EAAgB;AAClD,MAAIC,CAAC,GAAG,EAAR;;AAEA,OAAK,IAAIC,CAAT,IAAcH,CAAd,EAAiB;AACf,QAAII,MAAM,CAACC,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCP,CAArC,EAAwCG,CAAxC,KAA8CF,CAAC,CAACO,OAAF,CAAUL,CAAV,IAAe,CAAjE,EAAoED,CAAC,CAACC,CAAD,CAAD,GAAOH,CAAC,CAACG,CAAD,CAAR;AACrE;;AAED,MAAIH,CAAC,IAAI,IAAL,IAAa,OAAOI,MAAM,CAACK,qBAAd,KAAwC,UAAzD,EAAqE,KAAK,IAAIC,CAAC,GAAG,CAAR,EAAWP,CAAC,GAAGC,MAAM,CAACK,qBAAP,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,IAAAA,SAAS,EAAE,GAAGc,MAAH,CAAUf,SAAV,EAAqB,aAArB;AADwC,GAA3B,EAEvBQ,KAFuB,CAFN,EAIT,aAAahB,KAAK,CAACyB,aAAN,CAAoB,KAApB,EAA2B;AACjDhB,IAAAA,SAAS,EAAE,GAAGc,MAAH,CAAUf,SAAV,EAAqB,YAArB;AADsC,GAA3B,CAJJ,EAMhB,aAAaR,KAAK,CAACyB,aAAN,CAAoB,KAApB,EAA2B;AAC1ChB,IAAAA,SAAS,EAAEe,YAD+B;AAE1CE,IAAAA,KAAK,EAAE;AACLC,MAAAA,WAAW,EAAE,sBAAsBC,IAAtB,CAA2BjB,KAAK,IAAI,EAApC,IAA0CkB,SAA1C,GAAsDlB;AAD9D;AAFmC,GAA3B,EAKdC,GALc,CANG,EAWX,aAAaZ,KAAK,CAACyB,aAAN,CAAoB,KAApB,EAA2B;AAC/ChB,IAAAA,SAAS,EAAE,GAAGc,MAAH,CAAUf,SAAV,EAAqB,eAArB;AADoC,GAA3B,EAEnBS,QAFmB,CAXF,CAApB;AAcD,CAnCD;;AAqCA,eAAed,YAAf","sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\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 classNames from 'classnames';\nimport { ConfigContext } from '../config-provider';\n\nvar TimelineItem = function TimelineItem(_a) {\n var _classNames, _classNames2;\n\n var customizePrefixCls = _a.prefixCls,\n className = _a.className,\n _a$color = _a.color,\n color = _a$color === void 0 ? 'blue' : _a$color,\n dot = _a.dot,\n _a$pending = _a.pending,\n pending = _a$pending === void 0 ? false : _a$pending,\n position = _a.position,\n label = _a.label,\n children = _a.children,\n restProps = __rest(_a, [\"prefixCls\", \"className\", \"color\", \"dot\", \"pending\", \"position\", \"label\", \"children\"]);\n\n var _React$useContext = React.useContext(ConfigContext),\n getPrefixCls = _React$useContext.getPrefixCls;\n\n var prefixCls = getPrefixCls('timeline', customizePrefixCls);\n var itemClassName = classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-item\"), true), _defineProperty(_classNames, \"\".concat(prefixCls, \"-item-pending\"), pending), _classNames), className);\n var dotClassName = classNames((_classNames2 = {}, _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head\"), true), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head-custom\"), dot), _defineProperty(_classNames2, \"\".concat(prefixCls, \"-item-head-\").concat(color), true), _classNames2));\n return /*#__PURE__*/React.createElement(\"li\", _extends({}, restProps, {\n className: itemClassName\n }), label && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-label\")\n }, label), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-tail\")\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: dotClassName,\n style: {\n borderColor: /blue|red|green|gray/.test(color || '') ? undefined : color\n }\n }, dot), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-item-content\")\n }, children));\n};\n\nexport default TimelineItem;"]},"metadata":{},"sourceType":"module"}