Vanessa 2023-12-08 22:24:20 +08:00
parent 9b28daf89d
commit 2f98ea1aad
2 changed files with 2 additions and 1 deletions

View file

@ -130,7 +130,7 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
} else if (type === "av-load-more") {
blockElement.removeAttribute("data-render");
blockElement.dataset.pageSize = (parseInt(blockElement.dataset.pageSize) + parseInt(blockElement.querySelector('[data-type="set-page-size"]').getAttribute("data-size"))).toString();
avRender(blockElement, protyle, undefined, target.getAttribute("data-id"));
avRender(blockElement, protyle);
event.preventDefault();
event.stopPropagation();
return true;

View file

@ -66,6 +66,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
viewID: newViewID
}, (response) => {
const data = response.data.view as IAVTable;
e.dataset.pageSize = data.pageSize.toString();
// header
let tableHTML = '<div class="av__row av__row--header"><div class="av__firstcol av__colsticky"><svg><use xlink:href="#iconUncheck"></use></svg></div>';
let calcHTML = '<div style="width: 24px"></div>';