mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
This commit is contained in:
parent
899883f21b
commit
875f00398e
2 changed files with 3 additions and 3 deletions
|
|
@ -53,11 +53,11 @@ export class Menu {
|
||||||
this.menu.popup(options, options.isLeft);
|
this.menu.popup(options, options.isLeft);
|
||||||
}
|
}
|
||||||
|
|
||||||
fullscreen(position: { x: number; y: number }) {
|
fullscreen(position: "bottom" | "all" = "all") {
|
||||||
if (this.isOpen) {
|
if (this.isOpen) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.menu.popup({x: position.x, y: position.y});
|
this.menu.fullscreen(position);
|
||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export class Plugin {
|
||||||
public addTopBar(options: {
|
public addTopBar(options: {
|
||||||
icon: string,
|
icon: string,
|
||||||
title: string,
|
title: string,
|
||||||
position: "right",
|
position?: "right",
|
||||||
callback: (evt: MouseEvent) => void
|
callback: (evt: MouseEvent) => void
|
||||||
}) {
|
}) {
|
||||||
const iconElement = document.createElement("div");
|
const iconElement = document.createElement("div");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue