Vanessa 2024-01-24 13:13:32 +08:00
parent bb49855133
commit 6930d48446
4 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,5 @@
import {MenuItem} from "./Menu";
import {saveLayout} from "../layout/util";
const moveMenuItem = (label: string, target: Element) => {
return new MenuItem({
@ -12,6 +13,7 @@ const moveMenuItem = (label: string, target: Element) => {
} else if (label.indexOf("moveToBottom") > -1) {
window.siyuan.layout.bottomDock.add(label.endsWith("Left") ? 0 : 1, target);
}
saveLayout();
}
});
};