UNPKG

@cainiaofe/cn-ui-charts

Version:
33 lines (32 loc) 1.7 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports["default"] = exports.CnStatisticCard = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose")); var _react = _interopRequireDefault(require("react")); var _statisticcardView = _interopRequireDefault(require("./statisticcard-view")); var CnStatisticCard = /*#__PURE__*/function (_React$Component) { (0, _inheritsLoose2["default"])(CnStatisticCard, _React$Component); function CnStatisticCard(props) { var _this; _this = _React$Component.call(this, props) || this; _this.reRender = function () { var _this$ref, _this$ref$current, _this$ref$current$reR; (_this$ref = _this.ref) === null || _this$ref === void 0 ? void 0 : (_this$ref$current = _this$ref.current) === null || _this$ref$current === void 0 ? void 0 : (_this$ref$current$reR = _this$ref$current.reRender) === null || _this$ref$current$reR === void 0 ? void 0 : _this$ref$current$reR.call(_this$ref$current); }; _this.ref = /*#__PURE__*/_react["default"].createRef(); return _this; } var _proto = CnStatisticCard.prototype; _proto.render = function render() { return /*#__PURE__*/_react["default"].createElement(_statisticcardView["default"], (0, _extends2["default"])({ ref: this.ref }, this.props)); }; return CnStatisticCard; }(_react["default"].Component); exports.CnStatisticCard = CnStatisticCard; CnStatisticCard.displayName = 'CnStatisticCard'; var _default = CnStatisticCard; exports["default"] = _default;