Add tab tooltips cancle outer tab

This commit is contained in:
2022-03-02 18:51:07 +08:00
parent 51931f11fe
commit 19d77dceb0
10 changed files with 112 additions and 22 deletions
+30
View File
@@ -0,0 +1,30 @@
import { ReactNode } from "react";
import { Theme } from "@Component/Theme/Theme";
import { Localization } from "@Component/Localization/Localization";
interface IPanelInfo {
nameKey: string;
introKay: string;
option?: Record<string, string>;
}
type PanelId = ""
| "RenderView" // 主渲染器
;
const PanelInfoMap = new Map<PanelId, IPanelInfo>();
PanelInfoMap.set("RenderView", { nameKey: "", introKay: "" });
function getPanelById(panelId: PanelId): ReactNode {
return <Theme>
<Localization i18nKey={"Panel.Info.Notfound"} options={{
id: panelId
}}/>
</Theme>
}
function getPanelInfoById(panelId: PanelId): IPanelInfo | undefined {
return PanelInfoMap.get(panelId);
}
export { PanelId, getPanelById, getPanelInfoById}