Vanessa 2025-08-02 11:29:02 +08:00
parent 141c139782
commit deb781023a
6 changed files with 61 additions and 27 deletions

View file

@ -51,7 +51,7 @@ import {setGalleryCover, setGalleryRatio, setGallerySize} from "./gallery/util";
import {
bindGroupsEvent, bindGroupsNumber,
getGroupsHTML,
getGroupsMethodHTML, getGroupsNumberHTML, getLanguageByIndex,
getGroupsMethodHTML, getGroupsNumberHTML, getLanguageByIndex, getPageSize,
goGroupsDate,
goGroupsSort,
setGroupMethod
@ -76,10 +76,12 @@ export const openMenuPanel = (options: {
return;
}
const avID = options.blockElement.getAttribute("data-av-id");
const avPageSize = getPageSize(options.blockElement);
fetchPost("/api/av/renderAttributeView", {
id: avID,
query: (options.blockElement.querySelector('[data-type="av-search"]') as HTMLInputElement)?.value.trim() || "",
pageSize: parseInt(options.blockElement.getAttribute("data-page-size")) || undefined,
pageSize: avPageSize.unGroupPageSize,
groupPaging: avPageSize.groupPageSize,
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW)
}, (response) => {
avPanelElement = document.querySelector(".av__panel");