mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
This commit is contained in:
parent
31c552abc2
commit
23e0c99dd7
1 changed files with 4 additions and 0 deletions
|
|
@ -277,6 +277,10 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
|
|||
} else if (target.classList.contains("item") && target.parentElement.classList.contains("layout-tab-bar")) {
|
||||
if (target.classList.contains("item--focus")) {
|
||||
openViewMenu({protyle, blockElement, element: target});
|
||||
} else if (protyle.options.action.includes(Constants.CB_GET_HISTORY)){
|
||||
blockElement.setAttribute(Constants.CUSTOM_SY_AV_VIEW, target.dataset.id);
|
||||
blockElement.removeAttribute("data-render");
|
||||
avRender(blockElement, protyle);
|
||||
} else {
|
||||
transaction(protyle, [{
|
||||
action: "setAttrViewBlockView",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue