仓库中添加内置的demo

This commit is contained in:
gongxh
2025-07-28 14:26:19 +08:00
parent 43446f031d
commit 65be0498cc
414 changed files with 14456 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/**
* @Author: Gongxh
* @Date: 2024-12-14
* @Description:
*/
import { fgui, kunpo } from "../../header";
const { uiclass, uiprop, uiclick } = kunpo._uidecorator;
@uiclass("Window", "Window", "PopWindowHeader1")
export class PopWindowHeader1 extends kunpo.Window {
@uiprop btn_close: fgui.GButton;
protected onInit(): void {
this.adapterType = kunpo.AdapterType.Bang;
this.type = kunpo.WindowType.Normal;
}
getHeaderInfo(): kunpo.WindowHeaderInfo {
return kunpo.WindowHeaderInfo.create("WindowHeader", "aaa");
}
@uiclick
private onCloseWindow(): void {
kunpo.WindowManager.closeWindow(this.name);
}
}