mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
b53a5f80e6
commit
71cd4f22fe
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ export const avRender = (element: Element, cb?: () => void) => {
|
|||
if (e.getAttribute("data-render") === "true") {
|
||||
return;
|
||||
}
|
||||
const left = e.querySelector(".av__scroll")?.scrollLeft || 0;
|
||||
fetchPost("/api/av/renderAttributeView", {
|
||||
id: e.getAttribute("data-av-id"),
|
||||
nodeID: e.getAttribute("data-node-id")
|
||||
|
|
@ -151,6 +152,7 @@ ${cell.color ? `color:${cell.color};` : ""}">${text}</div>`;
|
|||
</div>
|
||||
</div>`;
|
||||
e.setAttribute("data-render", "true");
|
||||
e.querySelector(".av__scroll").scrollLeft = left;
|
||||
if (cb) {
|
||||
cb();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue