import { _decorator, Component, Node } from 'cc'; import { BaseView } from '../../../framework/layer/BaseView'; import { MailItem } from './MailItem'; const { ccclass, property } = _decorator; @ccclass('MailMain') export class MailMain extends BaseView { private _mailData = []; onLoad() { super.onLoad(); } onDestroy() { super.onDestroy(); } onOpen() { } onClose() { } onShow() { } onHide() { } private onTouchButton(event: Event, customStr) { } onEventList(item, idx) { item.getComponent(MailItem).init(this._mailData[idx]); } }