mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
23fd11ae12
commit
b8aa401996
6 changed files with 279 additions and 95 deletions
|
|
@ -27,8 +27,9 @@ 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";
|
||||
import {goSearchRollupCol} from "./rollup";
|
||||
import {updateCellsValue} from "./cell";
|
||||
import {openCalcMenu} from "./calc";
|
||||
|
||||
export const openMenuPanel = (options: {
|
||||
protyle: IProtyle,
|
||||
|
|
@ -782,6 +783,7 @@ export const openMenuPanel = (options: {
|
|||
goSearchRollupCol({
|
||||
target,
|
||||
data,
|
||||
isRelation: true,
|
||||
protyle: options.protyle,
|
||||
colId: menuElement.querySelector(".b3-menu__item").getAttribute("data-col-id")
|
||||
});
|
||||
|
|
@ -789,12 +791,18 @@ export const openMenuPanel = (options: {
|
|||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "goSearchRollupTarget") {
|
||||
goSearchRollupTarget(avID, target);
|
||||
goSearchRollupCol({
|
||||
target,
|
||||
data,
|
||||
isRelation: false,
|
||||
protyle: options.protyle,
|
||||
colId: menuElement.querySelector(".b3-menu__item").getAttribute("data-col-id")
|
||||
});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (type === "goSearchRollupCalc") {
|
||||
goSearchRollupCalc(avID, target);
|
||||
openCalcMenu(options.protyle, target, data, options.colId);
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue