0e01b7de-7dae-440c-a2f0-d4eb0fcc111c.js
1.77 KB
"use strict";
cc._RF.push(module, '0e01bfefa5EDKLw1OsPzBEc', 'MessageViewImpl');
// script/game/ui/view/impl/MessageViewImpl.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.MessageViewImpl = void 0;
const MessageView_1 = require("../type/MessageView");
const ResUtils_1 = require("../../../../common/utils/ResUtils");
const MessageEntryItem_1 = require("./MessageEntryItem");
const ListViewImpl_1 = require("../../baseview/impl/ListViewImpl");
const PresenterCCViewFactory_1 = require("../../PresenterCCViewFactory");
const { ccclass, property } = cc._decorator;
let MessageViewImpl = /** @class */ (() => {
let MessageViewImpl = class MessageViewImpl extends ListViewImpl_1.ListViewImpl {
async createListItemView() {
let node = await ResUtils_1.ResUtils.createWithPrefab("prefab/ui/message/MessageEntryItem");
return node.getComponent(MessageEntryItem_1.MessageEntryItemImpl);
}
};
MessageViewImpl = __decorate([
ccclass,
PresenterCCViewFactory_1.RegView(MessageView_1.MessageViewType, "prefab/ui/MessageView")
], MessageViewImpl);
return MessageViewImpl;
})();
exports.MessageViewImpl = MessageViewImpl;
cc._RF.pop();