UNPKG

@cainiaofe/cn-ui-charts

Version:
27 lines 1.28 kB
import _extends from "@babel/runtime/helpers/extends"; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import React from 'react'; import CnStatisticCardView from "./statisticcard-view"; var CnStatisticCard = /*#__PURE__*/function (_React$Component) { _inheritsLoose(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.createRef(); return _this; } var _proto = CnStatisticCard.prototype; _proto.render = function render() { return /*#__PURE__*/React.createElement(CnStatisticCardView, _extends({ ref: this.ref }, this.props)); }; return CnStatisticCard; }(React.Component); CnStatisticCard.displayName = 'CnStatisticCard'; export default CnStatisticCard; export { CnStatisticCard };