mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🐛 数据库分页
This commit is contained in:
parent
838f3977db
commit
79a7f4e8e9
2 changed files with 2 additions and 8 deletions
|
@ -177,10 +177,7 @@ const afterRenderGallery = (options: ITableOptions) => {
|
|||
}
|
||||
});
|
||||
Object.keys(options.resetData.pageSizes).forEach((groupId) => {
|
||||
if (groupId === "unGroup") {
|
||||
groupId = "";
|
||||
}
|
||||
const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${groupId}"]`) as HTMLElement;
|
||||
const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${groupId === "unGroup" ? "" : groupId}"]`) as HTMLElement;
|
||||
if (bodyElement) {
|
||||
bodyElement.dataset.pageSize = options.resetData.pageSizes[groupId];
|
||||
}
|
||||
|
|
|
@ -344,10 +344,7 @@ const afterRenderTable = (options: ITableOptions) => {
|
|||
}
|
||||
});
|
||||
Object.keys(options.resetData.pageSizes).forEach((groupId) => {
|
||||
if (groupId === "unGroup") {
|
||||
groupId = "";
|
||||
}
|
||||
const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${groupId}"]`) as HTMLElement;
|
||||
const bodyElement = options.blockElement.querySelector(`.av__body[data-group-id="${groupId === "unGroup" ? "" : groupId}"]`) as HTMLElement;
|
||||
if (bodyElement) {
|
||||
bodyElement.dataset.pageSize = options.resetData.pageSizes[groupId];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue