Vanessa 2023-12-23 20:25:58 +08:00
parent 2c73687083
commit 418fc1df89
5 changed files with 103 additions and 2 deletions

View file

@ -26,6 +26,7 @@ import {removeBlock} from "../../wysiwyg/remove";
import {getEditorRange} from "../../util/selection";
import {avRender} from "./render";
import {setPageSize} from "./row";
import {openSearchAV} from "./relation";
export const openMenuPanel = (options: {
protyle: IProtyle,
@ -738,6 +739,12 @@ export const openMenuPanel = (options: {
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "goSearchAV") {
openSearchAV();
setPosition(menuElement, tabRect.right - menuElement.clientWidth, tabRect.bottom, tabRect.height);
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "goEditCol") {
const editMenuElement = hasClosestByClassName(target, "b3-menu");
if (editMenuElement) {