mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +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;
|
break;
|
||||||
case "min":
|
case "min":
|
||||||
getDockByType("backlink").toggleModel("backlink");
|
getDockByType("backlink").toggleModel("backlink", false, true);
|
||||||
break;
|
break;
|
||||||
case "search":
|
case "search":
|
||||||
target.previousElementSibling.classList.remove("fn__none");
|
target.previousElementSibling.classList.remove("fn__none");
|
||||||
|
|
|
||||||
|
|
@ -151,7 +151,7 @@ export class Bookmark extends Model {
|
||||||
const type = target.getAttribute("data-type");
|
const type = target.getAttribute("data-type");
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "min":
|
case "min":
|
||||||
getDockByType("bookmark").toggleModel("bookmark");
|
getDockByType("bookmark").toggleModel("bookmark", false, true);
|
||||||
break;
|
break;
|
||||||
case "refresh":
|
case "refresh":
|
||||||
this.update();
|
this.update();
|
||||||
|
|
|
||||||
|
|
@ -305,7 +305,7 @@ export class Graph extends Model {
|
||||||
} else if (target.classList.contains("block__icon")) {
|
} else if (target.classList.contains("block__icon")) {
|
||||||
const dataType = target.getAttribute("data-type");
|
const dataType = target.getAttribute("data-type");
|
||||||
if (dataType === "min") {
|
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") {
|
} else if (dataType === "menu") {
|
||||||
if (target.classList.contains("ft__primary")) {
|
if (target.classList.contains("ft__primary")) {
|
||||||
target.classList.remove("ft__primary");
|
target.classList.remove("ft__primary");
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ export class Inbox extends Model {
|
||||||
}
|
}
|
||||||
const type = target.getAttribute("data-type");
|
const type = target.getAttribute("data-type");
|
||||||
if (type === "min") {
|
if (type === "min") {
|
||||||
getDockByType("inbox").toggleModel("inbox");
|
getDockByType("inbox").toggleModel("inbox", false, true);
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
break;
|
break;
|
||||||
} else if (type === "selectall") {
|
} else if (type === "selectall") {
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ export class Outline extends Model {
|
||||||
const type = target.getAttribute("data-type");
|
const type = target.getAttribute("data-type");
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "min":
|
case "min":
|
||||||
getDockByType("outline").toggleModel("outline");
|
getDockByType("outline").toggleModel("outline", false, true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ export class Tag extends Model {
|
||||||
const type = target.getAttribute("data-type");
|
const type = target.getAttribute("data-type");
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case "min":
|
case "min":
|
||||||
getDockByType("tag").toggleModel("tag");
|
getDockByType("tag").toggleModel("tag", false, true);
|
||||||
break;
|
break;
|
||||||
case "sort":
|
case "sort":
|
||||||
window.siyuan.menus.menu.remove();
|
window.siyuan.menus.menu.remove();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue