Files
SuperScrollView_2.X/assets/scripts/simple.ts

14 lines
312 B
TypeScript
Raw Normal View History

2022-01-13 09:27:08 +08:00
import BaseMain from './baseMain';
const { ccclass, property } = cc._decorator;
@ccclass
export default class Simple extends BaseMain {
async onLoad() {
for (let i = 0; i < 200; i++) {
this.datas.push({ message: i })
}
await this.layout.total(this.datas.length)
}
}