Add popup header
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ReactNode } from "react";
|
||||
import { ReactNode, createElement } from "react";
|
||||
import { Emitter } from "@Model/Emitter";
|
||||
import { Localization } from "@Component/Localization/Localization";
|
||||
|
||||
type IPopupConstructor = new (controller: PopupController, id: string) => Popup;
|
||||
|
||||
@@ -55,6 +56,13 @@ class Popup {
|
||||
*/
|
||||
public reactNode: ReactNode;
|
||||
|
||||
/**
|
||||
* 渲染标题
|
||||
*/
|
||||
public onRenderHeader(): ReactNode {
|
||||
return createElement(Localization, {i18nKey: "Popup.Title.Unnamed"});
|
||||
}
|
||||
|
||||
/**
|
||||
* 渲染函数
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user