mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +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});
|
openMenuPanel(protyle, blockElement, "select", {cellElement});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
window.siyuan.menus.menu.remove();
|
||||||
document.body.insertAdjacentHTML("beforeend", `<div class="av__mask">
|
document.body.insertAdjacentHTML("beforeend", `<div class="av__mask">
|
||||||
${html}
|
${html}
|
||||||
</div>`);
|
</div>`);
|
||||||
|
|
|
||||||
|
|
@ -101,12 +101,12 @@ export const openMenuPanel = (protyle: IProtyle,
|
||||||
transaction(protyle, [{
|
transaction(protyle, [{
|
||||||
action: "updateAttrViewColOptions",
|
action: "updateAttrViewColOptions",
|
||||||
id: options.cellElement.dataset.colId,
|
id: options.cellElement.dataset.colId,
|
||||||
parentID: data.id,
|
avID: data.id,
|
||||||
data: changeData,
|
data: changeData,
|
||||||
}], [{
|
}], [{
|
||||||
action: "updateAttrViewColOptions",
|
action: "updateAttrViewColOptions",
|
||||||
id: options.cellElement.dataset.colId,
|
id: options.cellElement.dataset.colId,
|
||||||
parentID: data.id,
|
avID: data.id,
|
||||||
data: oldData,
|
data: oldData,
|
||||||
}]);
|
}]);
|
||||||
menuElement.innerHTML = getSelectHTML(data.view, options);
|
menuElement.innerHTML = getSelectHTML(data.view, options);
|
||||||
|
|
|
||||||
|
|
@ -192,7 +192,7 @@ export const setSelectCol = (protyle: IProtyle, data: IAVTable, options: {
|
||||||
}], [{
|
}], [{
|
||||||
action: "updateAttrViewColOptions",
|
action: "updateAttrViewColOptions",
|
||||||
id: colId,
|
id: colId,
|
||||||
parentID: data.id,
|
avID: data.id,
|
||||||
data: colOptions
|
data: colOptions
|
||||||
}]);
|
}]);
|
||||||
colOptions.find((item, index) => {
|
colOptions.find((item, index) => {
|
||||||
|
|
@ -411,7 +411,7 @@ export const addSelectColAndCell = (protyle: IProtyle, data: IAVTable, options:
|
||||||
transaction(protyle, [{
|
transaction(protyle, [{
|
||||||
action: "updateAttrViewColOptions",
|
action: "updateAttrViewColOptions",
|
||||||
id: colId,
|
id: colId,
|
||||||
parentID: data.id,
|
avID: data.id,
|
||||||
data: colData.options
|
data: colData.options
|
||||||
}, {
|
}, {
|
||||||
action: "updateAttrViewCell",
|
action: "updateAttrViewCell",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue