mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
fb72af192e
commit
54ca2d6226
12 changed files with 112 additions and 65 deletions
|
|
@ -26,7 +26,7 @@ import {removeBlock} from "../../wysiwyg/remove";
|
|||
import {getEditorRange} from "../../util/selection";
|
||||
import {avRender} from "./render";
|
||||
import {setPageSize} from "./row";
|
||||
import {openSearchAV} from "./relation";
|
||||
import {openSearchAV, updateRelation} from "./relation";
|
||||
|
||||
export const openMenuPanel = (options: {
|
||||
protyle: IProtyle,
|
||||
|
|
@ -740,8 +740,16 @@ export const openMenuPanel = (options: {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "goSearchAV") {
|
||||
openSearchAV();
|
||||
setPosition(menuElement, tabRect.right - menuElement.clientWidth, tabRect.bottom, tabRect.height);
|
||||
openSearchAV(avID, target);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "updateRelation") {
|
||||
updateRelation({
|
||||
protyle: options.protyle,
|
||||
avElement: avPanelElement,
|
||||
avID
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue