Vanessa 2023-12-25 00:20:51 +08:00
parent 5c53e3c9b2
commit ac3145976f
5 changed files with 58 additions and 43 deletions

View file

@ -313,7 +313,7 @@ export const openMenuPanel = (options: {
targetElement.after(sourceElement);
}
targetElement.classList.remove("dragover__bottom", "dragover__top");
setRelationCell(options.protyle, options.blockElement as HTMLElement, sourceElement.parentElement);
setRelationCell(options.protyle, options.blockElement as HTMLElement, sourceElement.parentElement, options.cellElements);
return;
}
@ -879,7 +879,7 @@ export const openMenuPanel = (options: {
event.stopPropagation();
break;
} else if (type === "setRelationCell") {
setRelationCell(options.protyle, options.blockElement as HTMLElement, target);
setRelationCell(options.protyle, options.blockElement as HTMLElement, target, options.cellElements);
event.preventDefault();
event.stopPropagation();
break;