mirror of
https://github.com/Gongxh0901/kunpolibrary
synced 2025-08-04 22:38:38 +00:00
27 lines
673 B
TypeScript
27 lines
673 B
TypeScript
/**
|
|
* @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);
|
|
}
|
|
}
|