🐛 数据库分页

This commit is contained in:
Vanessa 2025-08-25 17:35:36 +08:00
parent 838f3977db
commit 79a7f4e8e9
2 changed files with 2 additions and 8 deletions

View file

@ -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];
}

View file

@ -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];
}