"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;
};
var __extends = this && this.__extends || function __extends(t, e) { 
 function r() { 
 this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var ComponentBase_1 = require("../components/ComponentBase");
/**
 * 单个相片
 */
var AlbumItem = (function (_super) {
    __extends(AlbumItem, _super);
    function AlbumItem() {
        var _this = _super.call(this) || this;
        _this.init();
        return _this;
    }
    Object.defineProperty(AlbumItem.prototype, "skinKey", {
        get: function () { return 'AlbumItem'; },
        enumerable: true,
        configurable: true
    });
    AlbumItem.prototype.init = function () {
    };
    AlbumItem.prototype.updateData = function (d, index) {
        this.data = d;
        if (d) {
            this.x = (index % 3) * 225;
            this.y = Math.floor(index / 3) * 240;
            this.nameTxt.text = d.name;
            this.countTxt.text = '游玩' + d.count + '次';
            this.img.source = d.img;
        }
    };
    return AlbumItem;
}(ComponentBase_1.default));
exports.default = AlbumItem;
__reflect(AlbumItem.prototype, "\"/Users/chiwang/Desktop/\u5151\u5427\u5DE5\u4F5C/gameegret20181011/db-game-template/egret/src/albumPanel/AlbumItem\".AlbumItem");
//# sourceMappingURL=AlbumItem.js.map