mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
This commit is contained in:
parent
dcae07d2e4
commit
08de630e6f
2 changed files with 11 additions and 1 deletions
|
|
@ -95,6 +95,11 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: (data: IAV) =
|
|||
query: query.trim()
|
||||
}, (response) => {
|
||||
const data = response.data.view as IAVTable;
|
||||
if (response.data.viewType === "gallery") {
|
||||
e.setAttribute("data-av-type", "table");
|
||||
renderGallery({blockElement: e, protyle, cb, renderAll});
|
||||
return;
|
||||
}
|
||||
if (!e.dataset.pageSize) {
|
||||
e.dataset.pageSize = data.pageSize.toString();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue