mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 关闭面板
This commit is contained in:
parent
58c257960b
commit
20c225b7a3
6 changed files with 6 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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") {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue