mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-12-05 20:29:10 +00:00
demo中添加不同fgui包中的同名组件测试
This commit is contained in:
19
demo/assets/script/UI/Window/Item1.ts
Normal file
19
demo/assets/script/UI/Window/Item1.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @Author: Gongxh
|
||||
* @Date: 2025-09-04
|
||||
* @Description:
|
||||
*/
|
||||
import { fgui, kunpo } from "../../header";
|
||||
|
||||
const { uiheader, uiprop, uicom, uiclick } = kunpo._uidecorator;
|
||||
const { bindMethod, bindProp } = kunpo.data;
|
||||
|
||||
@uicom("Window", "Item1")
|
||||
export class Item1 extends fgui.GComponent {
|
||||
@uiprop
|
||||
private lab_desc: fgui.GTextField;
|
||||
|
||||
public onInit(): void {
|
||||
console.log("Window Item1 onInit", this.lab_desc);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user