12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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]);
- }
- }
|