mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
65a6145545
commit
11d2741e68
1 changed files with 2 additions and 2 deletions
|
|
@ -12,13 +12,13 @@ export const getPageSize = (blockElement: Element) => {
|
|||
[key: string]: {
|
||||
pageSize: string
|
||||
}
|
||||
}[] = [];
|
||||
} = {};
|
||||
let unGroupPageSize: string;
|
||||
blockElement.querySelectorAll(".av__body").forEach((item:HTMLElement) => {
|
||||
const id = item.dataset.groupId;
|
||||
const pageSize = item.dataset.pageSize;
|
||||
if (id) {
|
||||
groupPageSize.push({[id]: {pageSize}});
|
||||
groupPageSize[id] = {pageSize};
|
||||
} else if (!unGroupPageSize) {
|
||||
unGroupPageSize = pageSize;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue