mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 17:56:09 +01:00
🎨 数据库行数限制后添加行
This commit is contained in:
parent
290f39aed4
commit
5df68c9cea
1 changed files with 7 additions and 0 deletions
|
|
@ -90,6 +90,13 @@ export const insertAttrViewBlockAnimation = (blockElement: Element, srcIDs: stri
|
|||
</div>`;
|
||||
});
|
||||
previousElement.insertAdjacentHTML("afterend", html);
|
||||
const pageSize = parseInt(blockElement.getAttribute("data-page-size"))
|
||||
if (pageSize) {
|
||||
const currentCount = blockElement.querySelectorAll(".av__row:not(.av__row--header)").length
|
||||
if (pageSize < currentCount) {
|
||||
blockElement.setAttribute("data-page-size", currentCount.toString());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const stickyRow = (blockElement: HTMLElement, elementRect: DOMRect, status: "top" | "bottom" | "all") => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue