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