mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
This commit is contained in:
parent
d519732c79
commit
f2c2a7592c
14 changed files with 203 additions and 94 deletions
|
|
@ -169,14 +169,17 @@ const updatePageSize = (options: {
|
|||
return;
|
||||
}
|
||||
options.nodeElement.setAttribute("data-page-size", options.newPageSize);
|
||||
const blockID = options.nodeElement.getAttribute("data-node-id")
|
||||
transaction(options.protyle, [{
|
||||
action: "setAttrViewPageSize",
|
||||
avID: options.avID,
|
||||
data: parseInt(options.newPageSize),
|
||||
blockID
|
||||
}], [{
|
||||
action: "setAttrViewPageSize",
|
||||
data: parseInt(options.currentPageSize),
|
||||
avID: options.avID,
|
||||
blockID
|
||||
}]);
|
||||
document.querySelector(".av__panel")?.remove();
|
||||
};
|
||||
|
|
@ -270,6 +273,7 @@ export const deleteRow = (blockElement: HTMLElement, protyle: IProtyle) => {
|
|||
previousID: item.previousElementSibling?.getAttribute("data-id") || "",
|
||||
srcIDs: [item.getAttribute("data-id")],
|
||||
isDetached: item.querySelector('.av__cell[data-detached="true"]') ? true : false,
|
||||
blockID: blockElement.dataset.nodeId
|
||||
});
|
||||
});
|
||||
transaction(protyle, [{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue