🎨 关闭面板

This commit is contained in:
Vanessa 2025-01-11 12:30:21 +08:00
parent 58c257960b
commit 20c225b7a3
6 changed files with 6 additions and 6 deletions

View file

@ -300,7 +300,7 @@ export class Backlink extends Model {
});
break;
case "min":
getDockByType("backlink").toggleModel("backlink");
getDockByType("backlink").toggleModel("backlink", false, true);
break;
case "search":
target.previousElementSibling.classList.remove("fn__none");

View file

@ -151,7 +151,7 @@ export class Bookmark extends Model {
const type = target.getAttribute("data-type");
switch (type) {
case "min":
getDockByType("bookmark").toggleModel("bookmark");
getDockByType("bookmark").toggleModel("bookmark", false, true);
break;
case "refresh":
this.update();

View file

@ -305,7 +305,7 @@ export class Graph extends Model {
} else if (target.classList.contains("block__icon")) {
const dataType = target.getAttribute("data-type");
if (dataType === "min") {
getDockByType(this.type === "global" ? "globalGraph" : "graph").toggleModel(this.type === "global" ? "globalGraph" : "graph");
getDockByType(this.type === "global" ? "globalGraph" : "graph").toggleModel(this.type === "global" ? "globalGraph" : "graph", false, true);
} else if (dataType === "menu") {
if (target.classList.contains("ft__primary")) {
target.classList.remove("ft__primary");

View file

@ -97,7 +97,7 @@ export class Inbox extends Model {
}
const type = target.getAttribute("data-type");
if (type === "min") {
getDockByType("inbox").toggleModel("inbox");
getDockByType("inbox").toggleModel("inbox", false, true);
event.preventDefault();
break;
} else if (type === "selectall") {

View file

@ -174,7 +174,7 @@ export class Outline extends Model {
const type = target.getAttribute("data-type");
switch (type) {
case "min":
getDockByType("outline").toggleModel("outline");
getDockByType("outline").toggleModel("outline", false, true);
break;
}
break;

View file

@ -110,7 +110,7 @@ export class Tag extends Model {
const type = target.getAttribute("data-type");
switch (type) {
case "min":
getDockByType("tag").toggleModel("tag");
getDockByType("tag").toggleModel("tag", false, true);
break;
case "sort":
window.siyuan.menus.menu.remove();