This commit is contained in:
Vanessa 2024-03-08 12:37:54 +08:00
parent 1c4718fcb9
commit 67f095c522
7 changed files with 26 additions and 26 deletions

View file

@ -366,10 +366,10 @@ export const openMenuPanel = (options: {
}
targetElement.classList.remove("dragover__bottom", "dragover__top");
const blockIDs: string[] = [];
const contents: IAVCellValue[] = []
const contents: IAVCellValue[] = [];
targetElement.parentElement.querySelectorAll(".fn__grab").forEach(item => {
const dateElement = item.nextElementSibling as HTMLElement
blockIDs.push(dateElement.dataset.id)
const dateElement = item.nextElementSibling as HTMLElement;
blockIDs.push(dateElement.dataset.id);
contents.push({
isDetached: !dateElement.style.color,
type: "block",
@ -377,8 +377,8 @@ export const openMenuPanel = (options: {
content: dateElement.textContent,
id: dateElement.dataset.id
}
})
})
});
});
updateCellsValue(options.protyle, options.blockElement as HTMLElement, {
blockIDs,
contents,