8249f1cf3c29bdfbba8222a49be58207.json
7.17 KB
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { withConfigConsumer } from '../config-provider/context';\nimport Skeleton from '../skeleton';\nimport StatisticNumber from './Number';\n\nvar Statistic = function Statistic(props) {\n var prefixCls = props.prefixCls,\n className = props.className,\n style = props.style,\n valueStyle = props.valueStyle,\n _props$value = props.value,\n value = _props$value === void 0 ? 0 : _props$value,\n title = props.title,\n valueRender = props.valueRender,\n prefix = props.prefix,\n suffix = props.suffix,\n loading = props.loading,\n direction = props.direction,\n onMouseEnter = props.onMouseEnter,\n onMouseLeave = props.onMouseLeave;\n var valueNode = /*#__PURE__*/React.createElement(StatisticNumber, _extends({}, props, {\n value: value\n }));\n var cls = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: style,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave\n }, title && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-title\")\n }, title), /*#__PURE__*/React.createElement(Skeleton, {\n paragraph: false,\n loading: loading\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: valueStyle,\n className: \"\".concat(prefixCls, \"-content\")\n }, prefix && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-content-prefix\")\n }, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-content-suffix\")\n }, suffix))));\n};\n\nStatistic.defaultProps = {\n decimalSeparator: '.',\n groupSeparator: ',',\n loading: false\n};\nvar WrapperStatistic = withConfigConsumer({\n prefixCls: 'statistic'\n})(Statistic);\nexport default WrapperStatistic;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/statistic/Statistic.js"],"names":["_defineProperty","_extends","React","classNames","withConfigConsumer","Skeleton","StatisticNumber","Statistic","props","prefixCls","className","style","valueStyle","_props$value","value","title","valueRender","prefix","suffix","loading","direction","onMouseEnter","onMouseLeave","valueNode","createElement","cls","concat","paragraph","defaultProps","decimalSeparator","groupSeparator","WrapperStatistic"],"mappings":"AAAA,OAAOA,eAAP,MAA4B,uCAA5B;AACA,OAAOC,QAAP,MAAqB,gCAArB;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,SAASC,kBAAT,QAAmC,4BAAnC;AACA,OAAOC,QAAP,MAAqB,aAArB;AACA,OAAOC,eAAP,MAA4B,UAA5B;;AAEA,IAAIC,SAAS,GAAG,SAASA,SAAT,CAAmBC,KAAnB,EAA0B;AACxC,MAAIC,SAAS,GAAGD,KAAK,CAACC,SAAtB;AAAA,MACIC,SAAS,GAAGF,KAAK,CAACE,SADtB;AAAA,MAEIC,KAAK,GAAGH,KAAK,CAACG,KAFlB;AAAA,MAGIC,UAAU,GAAGJ,KAAK,CAACI,UAHvB;AAAA,MAIIC,YAAY,GAAGL,KAAK,CAACM,KAJzB;AAAA,MAKIA,KAAK,GAAGD,YAAY,KAAK,KAAK,CAAtB,GAA0B,CAA1B,GAA8BA,YAL1C;AAAA,MAMIE,KAAK,GAAGP,KAAK,CAACO,KANlB;AAAA,MAOIC,WAAW,GAAGR,KAAK,CAACQ,WAPxB;AAAA,MAQIC,MAAM,GAAGT,KAAK,CAACS,MARnB;AAAA,MASIC,MAAM,GAAGV,KAAK,CAACU,MATnB;AAAA,MAUIC,OAAO,GAAGX,KAAK,CAACW,OAVpB;AAAA,MAWIC,SAAS,GAAGZ,KAAK,CAACY,SAXtB;AAAA,MAYIC,YAAY,GAAGb,KAAK,CAACa,YAZzB;AAAA,MAaIC,YAAY,GAAGd,KAAK,CAACc,YAbzB;AAcA,MAAIC,SAAS,GAAG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4BA,SALnC,EAK8CL,MAAM,IAAI,aAAahB,KAAK,CAACsB,aAAN,CAAoB,MAApB,EAA4B;AAC/Gd,IAAAA,SAAS,EAAE,GAAGgB,MAAH,CAAUjB,SAAV,EAAqB,iBAArB;AADoG,GAA5B,EAElFS,MAFkF,CALrE,CAHQ,CAPJ,CAApB;AAkBD,CArCD;;AAuCAX,SAAS,CAACqB,YAAV,GAAyB;AACvBC,EAAAA,gBAAgB,EAAE,GADK;AAEvBC,EAAAA,cAAc,EAAE,GAFO;AAGvBX,EAAAA,OAAO,EAAE;AAHc,CAAzB;AAKA,IAAIY,gBAAgB,GAAG3B,kBAAkB,CAAC;AACxCK,EAAAA,SAAS,EAAE;AAD6B,CAAD,CAAlB,CAEpBF,SAFoB,CAAvB;AAGA,eAAewB,gBAAf","sourcesContent":["import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { withConfigConsumer } from '../config-provider/context';\nimport Skeleton from '../skeleton';\nimport StatisticNumber from './Number';\n\nvar Statistic = function Statistic(props) {\n var prefixCls = props.prefixCls,\n className = props.className,\n style = props.style,\n valueStyle = props.valueStyle,\n _props$value = props.value,\n value = _props$value === void 0 ? 0 : _props$value,\n title = props.title,\n valueRender = props.valueRender,\n prefix = props.prefix,\n suffix = props.suffix,\n loading = props.loading,\n direction = props.direction,\n onMouseEnter = props.onMouseEnter,\n onMouseLeave = props.onMouseLeave;\n var valueNode = /*#__PURE__*/React.createElement(StatisticNumber, _extends({}, props, {\n value: value\n }));\n var cls = classNames(prefixCls, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), className);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: style,\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave\n }, title && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-title\")\n }, title), /*#__PURE__*/React.createElement(Skeleton, {\n paragraph: false,\n loading: loading\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: valueStyle,\n className: \"\".concat(prefixCls, \"-content\")\n }, prefix && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-content-prefix\")\n }, prefix), valueRender ? valueRender(valueNode) : valueNode, suffix && /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-content-suffix\")\n }, suffix))));\n};\n\nStatistic.defaultProps = {\n decimalSeparator: '.',\n groupSeparator: ',',\n loading: false\n};\nvar WrapperStatistic = withConfigConsumer({\n prefixCls: 'statistic'\n})(Statistic);\nexport default WrapperStatistic;"]},"metadata":{},"sourceType":"module"}