mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
bdacf3915f
commit
6abfbd52e6
2 changed files with 19 additions and 1 deletions
|
|
@ -1075,6 +1075,14 @@ export const openMenuPanel = (options: {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "av-view-switch") {
|
||||
if (!target.querySelector(".b3-chip--primary")) {
|
||||
options.blockElement.removeAttribute("data-render");
|
||||
avRender(options.blockElement, options.protyle, undefined, target.parentElement.dataset.id);
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "av-view-edit") {
|
||||
if (target.parentElement.querySelector(".b3-chip--primary")) {
|
||||
openViewMenu({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue