This commit is contained in:
Vanessa 2023-05-09 11:36:11 +08:00
parent e03644895d
commit 636039ea52
3 changed files with 21 additions and 7 deletions

View file

@ -5,6 +5,7 @@ import {Dialog} from "../dialog";
import {MenuItem} from "../menus/Menu";
import {Menu as SiyuanMenu} from "../menus/Menu";
import {fetchGet, fetchPost, fetchSyncPost} from "../util/fetch";
import {isMobile} from "../util/functions";
export class Menu {
private menu: SiyuanMenu;
@ -58,6 +59,7 @@ export class Menu {
return;
}
this.menu.fullscreen(position);
this.menu.element.style.zIndex = "310";
}
close() {
@ -74,4 +76,5 @@ export const API = {
Plugin: Plugin,
Dialog,
Menu,
isMobile
};