"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
    p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
 *Created by cuiliqiang on 2018/3/1
 * 组件基类
 */
var ABModule = (function () {
    function ABModule(data) {
        this._data = data;
        var viewClass;
        if (typeof this.data.viewClass === 'string') {
            viewClass = eval(this.data.viewClass);
        }
        else {
            viewClass = this.data.viewClass;
        }
        this._view = new viewClass();
    }
    Object.defineProperty(ABModule.prototype, "data", {
        /**
         * 模块数据
         * @returns {IModuleData}
         */
        get: function () {
            return this._data;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(ABModule.prototype, "view", {
        /**
         * 视图
         * @returns {any}
         */
        get: function () {
            return this._view;
        },
        enumerable: true,
        configurable: true
    });
    return ABModule;
}());
exports.ABModule = ABModule;
__reflect(ABModule.prototype, "\"/Users/haiyoucuv/Documents/Web/\u5DE5\u884C\u5361\u4E2D\u5FC3--\u6B22\u8DA3\u5E84\u56ED\u6D3B\u52A8/JoyousManor/egret/libs/tc/component/ABModule\".ABModule", ["\"/Users/haiyoucuv/Documents/Web/\u5DE5\u884C\u5361\u4E2D\u5FC3--\u6B22\u8DA3\u5E84\u56ED\u6D3B\u52A8/JoyousManor/egret/libs/tc/interface/IDestroy\".IDestroy"]);
//# sourceMappingURL=ABModule.js.map