"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, "\"c:/Users/duiba/Documents/zhonghe_answer/egret/libs/tc/component/ABModule\".ABModule", ["\"c:/Users/duiba/Documents/zhonghe_answer/egret/libs/tc/interface/IDestroy\".IDestroy"]);
//# sourceMappingURL=ABModule.js.map