mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-12-06 04:39:10 +00:00
仓库中添加内置的demo
This commit is contained in:
17
demo/assets/script/UI/Window/Components/CustomComponents.ts
Normal file
17
demo/assets/script/UI/Window/Components/CustomComponents.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @Author: Gongxh
|
||||
* @Date: 2024-12-26
|
||||
* @Description:
|
||||
*/
|
||||
|
||||
import { fgui, kunpo } from "../../../header";
|
||||
const { uiheader, uiprop, uicom, uiclick } = kunpo._uidecorator;
|
||||
|
||||
@uicom("Window", "CustomComponents")
|
||||
export class CustomComponents extends fgui.GComponent {
|
||||
@uiprop n1: fgui.GTextField;
|
||||
|
||||
public onInit(): void {
|
||||
kunpo.log("CustomComponents onInit");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user