Vanessa 2023-12-29 10:30:21 +08:00
parent dbd7351708
commit 4eba1176be
3 changed files with 132 additions and 0 deletions

View file

@ -27,6 +27,7 @@ import {focusBlock, getEditorRange} from "../../util/selection";
import {avRender} from "./render";
import {setPageSize} from "./row";
import {bindRelationEvent, getRelationHTML, openSearchAV, setRelationCell, updateRelation} from "./relation";
import {goSearchRollupCalc, goSearchRollupCol, goSearchRollupTarget} from "./rollup";
export const openMenuPanel = (options: {
protyle: IProtyle,
@ -763,6 +764,21 @@ export const openMenuPanel = (options: {
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "goSearchRollupCol") {
goSearchRollupCol(avID, target);
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "goSearchRollupTarget") {
goSearchRollupTarget(avID, target);
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "goSearchRollupCalc") {
goSearchRollupCalc(avID, target);
event.preventDefault();
event.stopPropagation();
break;
} else if (type === "updateRelation") {
updateRelation({
protyle: options.protyle,