[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,19 @@
import BaseItem from './baseItem';
const { ccclass, property } = cc._decorator;
@ccclass
export default class Vertical extends BaseItem {
onLoad() {
this.input.placeholder = this.transform.height.toString()
}
onInput() {
let height = Number(this.input.string)
if (isNaN(height)) return
if (height < 100) {
return
}
this.transform.setContentSize(new cc.Size(this.transform.width, height))
}
}