mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-12-28 09:37:15 +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");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "a8d4cfe1-8b55-4d01-8a17-fddb82a3c035",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Reference in New Issue
Block a user