mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-11 23:22:33 +01:00
This commit is contained in:
parent
f1feaf603e
commit
3b41b73367
2 changed files with 4 additions and 4 deletions
|
|
@ -10,13 +10,13 @@ import {objEquals} from "../../../util/functions";
|
|||
export const getPageSize = (blockElement: Element) => {
|
||||
const groupPageSize: {
|
||||
[key: string]: {
|
||||
pageSize: string
|
||||
pageSize: number
|
||||
}
|
||||
} = {};
|
||||
let unGroupPageSize: string;
|
||||
let unGroupPageSize: number;
|
||||
blockElement.querySelectorAll(".av__body").forEach((item:HTMLElement) => {
|
||||
const id = item.dataset.groupId;
|
||||
const pageSize = item.dataset.pageSize;
|
||||
const pageSize = parseInt(item.dataset.pageSize);
|
||||
if (id) {
|
||||
groupPageSize[id] = {pageSize};
|
||||
} else if (!unGroupPageSize) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue