Vanessa 2023-07-13 09:43:10 +08:00
parent 96530382f2
commit cc867ea27d
3 changed files with 5 additions and 4 deletions

View file

@ -16,6 +16,7 @@ export const popTextCell = (protyle: IProtyle, cellElement: HTMLElement) => {
openMenuPanel(protyle, blockElement, "select", {cellElement});
return;
}
window.siyuan.menus.menu.remove();
document.body.insertAdjacentHTML("beforeend", `<div class="av__mask">
${html}
</div>`);

View file

@ -101,12 +101,12 @@ export const openMenuPanel = (protyle: IProtyle,
transaction(protyle, [{
action: "updateAttrViewColOptions",
id: options.cellElement.dataset.colId,
parentID: data.id,
avID: data.id,
data: changeData,
}], [{
action: "updateAttrViewColOptions",
id: options.cellElement.dataset.colId,
parentID: data.id,
avID: data.id,
data: oldData,
}]);
menuElement.innerHTML = getSelectHTML(data.view, options);

View file

@ -192,7 +192,7 @@ export const setSelectCol = (protyle: IProtyle, data: IAVTable, options: {
}], [{
action: "updateAttrViewColOptions",
id: colId,
parentID: data.id,
avID: data.id,
data: colOptions
}]);
colOptions.find((item, index) => {
@ -411,7 +411,7 @@ export const addSelectColAndCell = (protyle: IProtyle, data: IAVTable, options:
transaction(protyle, [{
action: "updateAttrViewColOptions",
id: colId,
parentID: data.id,
avID: data.id,
data: colData.options
}, {
action: "updateAttrViewCell",