[add] all
This commit is contained in:
13
assets/scripts/simple.ts
Normal file
13
assets/scripts/simple.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user