(#36) Add popuplayer.

This commit is contained in:
2022-01-23 20:34:52 +08:00
parent a5dc26cd17
commit 943798f53c
3 changed files with 133 additions and 2 deletions
+3 -2
View File
@@ -2,7 +2,7 @@ import { Manager } from "../../core/Module";
import { UserCard } from "./UserCard";
import { MainFunction } from "./MainFunction";
import { FunctionList } from "./FunctionList";
import { Mask } from "../../modular/Mask/Mask";
import { PopupLayer } from "../../modular/PopupLayer";
(async () => {
@@ -10,7 +10,8 @@ import { Mask } from "../../modular/Mask/Mask";
const { manager, query } = await Manager.PageAsync();
// 添加蒙版 Modular
// const mask = manager.addModule(Mask, "mask");
const popupLayer: PopupLayer<"a" | "b"> = manager.addModule(PopupLayer, "mask") as any;
popupLayer.emit("show", "a");
// 添加 UserCard Modular
manager.addModule(UserCard, "userCard");