[add] all

This commit is contained in:
2022-01-13 09:27:08 +08:00
commit 8247d8a88e
79 changed files with 41174 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
const { ccclass, property } = cc._decorator;
@ccclass
export default class BaseItem extends cc.Component {
@property(cc.Label) label: cc.Label = null
@property(cc.EditBox) input: cc.EditBox = null
private index: number
private clickFunc: Function
get transform() {
return this.node
}
show(data: any, index: number, callback: Function) {
this.index = index
this.label.string = data.message
this.clickFunc = callback
}
onClick() {
this.clickFunc.call(this, this.index)
}
onInput() {
}
}