MessageViewImpl.ts
724 Bytes
import { MessageEntryItemProps, MessageViewProps, MessageViewType } from "../type/MessageView";
import { ResUtils } from "../../../../common/utils/ResUtils";
import { MessageEntryItemImpl } from "./MessageEntryItem";
import { ListViewImpl } from "../../baseview/impl/ListViewImpl";
import { RegView } from "../../PresenterCCViewFactory";
const { ccclass, property } = cc._decorator;
@ccclass
@RegView(MessageViewType, "prefab/ui/MessageView")
export class MessageViewImpl extends ListViewImpl<MessageEntryItemProps, MessageViewProps> {
async createListItemView() {
let node = await ResUtils.createWithPrefab("prefab/ui/message/MessageEntryItem");
return node.getComponent(MessageEntryItemImpl);
}
}