This commit is contained in:
Vanessa 2023-07-01 12:05:57 +08:00
parent 399ba36d04
commit 58335f6bb7

View File

@ -100,13 +100,13 @@ export const showHeaderCellMenu = (protyle: IProtyle, blockElement: HTMLElement,
id: cellElement.getAttribute("data-id"), id: cellElement.getAttribute("data-id"),
parentID: blockElement.getAttribute("data-av-id"), parentID: blockElement.getAttribute("data-av-id"),
name: newValue, name: newValue,
type: cellElement.getAttribute("data-dtype") as TAVCol, type,
}], [{ }], [{
action: "updateAttrViewCol", action: "updateAttrViewCol",
id: cellElement.getAttribute("data-id"), id: cellElement.getAttribute("data-id"),
parentID: blockElement.getAttribute("data-av-id"), parentID: blockElement.getAttribute("data-av-id"),
name: cellElement.textContent.trim(), name: cellElement.textContent.trim(),
type: cellElement.getAttribute("data-dtype") as TAVCol, type,
}]); }]);
}); });
menu.addItem({ menu.addItem({