mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
f5a36b9459
commit
dae0cd0608
2 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ export const insertGalleryItemAnimation = (options: {
|
|||
sideItemElement = options.blockElement.querySelector(groupQuery + ".av__gallery-add").previousElementSibling;
|
||||
}
|
||||
let cellsHTML = "";
|
||||
sideItemElement.querySelectorAll(".av__cell").forEach((item: HTMLElement) => {
|
||||
sideItemElement?.querySelectorAll(".av__cell").forEach((item: HTMLElement) => {
|
||||
let lineNumber = 1;
|
||||
const fieldType = getTypeByCellElement(item);
|
||||
if (fieldType === "lineNumber") {
|
||||
|
|
|
@ -108,7 +108,7 @@ const renderGroupGallery = (options: ITableOptions) => {
|
|||
options.data.view.groups.forEach((group: IAVGallery) => {
|
||||
if (group.groupHidden === 0) {
|
||||
group.fields = (options.data.view as IAVGallery).fields;
|
||||
avBodyHTML += `${getGroupTitleHTML(group, group.fields.length)}
|
||||
avBodyHTML += `${getGroupTitleHTML(group, group.cards.length)}
|
||||
<div data-group-id="${group.id}" data-page-size="${group.pageSize}" class="av__body${group.groupFolded ? " fn__none" : ""}">${getGalleryHTML(group, options.resetData.selectItemIds, options.resetData.editIds)}</div>`;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue