0327a2e4-cb9b-4b6d-a0e0-f34319e6a3be.js 1.61 KB
"use strict";
cc._RF.push(module, '0327aLky5tLbaDg80MZ5qO+', 'ImagePreviewPresenter');
// script/game/ui/presenter/message/ImagePreviewPresenter.ts

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ImagePreviewPresenter = void 0;
const PresenterBase_1 = require("../../../../common/classbase/PresenterBase");
const ImagePreviewView_1 = require("../../view/type/ImagePreviewView");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
let ImagePreviewPresenter = /** @class */ (() => {
    let ImagePreviewPresenter = class ImagePreviewPresenter extends PresenterBase_1.Presenter {
        onOpen(image) {
            super.onOpen(image);
            this.view.setProps({ image });
        }
    };
    ImagePreviewPresenter.uuid = "ImagePreviewPresenter";
    ImagePreviewPresenter = __decorate([
        PresenterCCViewFactory_1.RegPresenter(ImagePreviewView_1.ImagePreviewViewType)
    ], ImagePreviewPresenter);
    return ImagePreviewPresenter;
})();
exports.ImagePreviewPresenter = ImagePreviewPresenter;

cc._RF.pop();