UNPKG

enoad-component-web

Version:

针对web端的控件

27 lines (26 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = (0, tslib_1.__importStar)(require("react")); var styled_1 = require("./styled"); var util_1 = require("../../core/util"); var EnoadText = /** @class */ (function (_super) { (0, tslib_1.__extends)(EnoadText, _super); function EnoadText(props) { return _super.call(this, props) || this; } EnoadText.prototype.componentDidMount = function () { }; EnoadText.prototype.componentWillUnmount = function () { }; EnoadText.prototype.render = function () { if (util_1.isDebug) { console.log("[EnoadText]"); } var _a = this.props.value, label = _a.label, value = _a.value; return (React.createElement(styled_1.ViewContainer, null, React.createElement(styled_1.ViewLabel, null, label), React.createElement(styled_1.ViewValue, null, value))); }; return EnoadText; }(React.Component)); exports.default = EnoadText; //# sourceMappingURL=./components/EnoadText/view.js.map