mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -101,7 +101,12 @@ export const avRender = (element: Element, cb?: () => void) => {
|
||||
}
|
||||
};
|
||||
|
||||
let lastparentID:string
|
||||
export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
||||
if (lastparentID === operation.parentID) {
|
||||
return
|
||||
}
|
||||
lastparentID = operation.parentID;
|
||||
if (operation.action === "addAttrViewCol") {
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${operation.parentID}"]`)).forEach((item: HTMLElement) => {
|
||||
item.removeAttribute("data-render");
|
||||
|
||||
Reference in New Issue
Block a user