mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
96530382f2
commit
cc867ea27d
3 changed files with 5 additions and 4 deletions
|
|
@ -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>`);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue