mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 08:30:42 +08:00
This commit is contained in:
parent
22efb3d523
commit
2f0f563e12
@ -261,6 +261,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
|||||||
}
|
}
|
||||||
titleElement.textContent = operation.data;
|
titleElement.textContent = operation.data;
|
||||||
titleElement.dataset.title = operation.data;
|
titleElement.dataset.title = operation.data;
|
||||||
|
item.querySelector(".layout-tab-bar .item__text").textContent = operation.data;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {
|
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {
|
||||||
|
@ -713,6 +713,10 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
|
|||||||
"setAttrViewSorts", "setAttrViewColCalc", "removeAttrViewCol", "updateAttrViewColNumberFormat", "removeAttrViewBlock",
|
"setAttrViewSorts", "setAttrViewColCalc", "removeAttrViewCol", "updateAttrViewColNumberFormat", "removeAttrViewBlock",
|
||||||
"replaceAttrViewBlock", "updateAttrViewColTemplate", "setAttrViewColIcon"].includes(operation.action)) {
|
"replaceAttrViewBlock", "updateAttrViewColTemplate", "setAttrViewColIcon"].includes(operation.action)) {
|
||||||
refreshAV(protyle, operation);
|
refreshAV(protyle, operation);
|
||||||
|
} else if (operation.action === "doUpdateUpdated") {
|
||||||
|
updateElements.forEach(item => {
|
||||||
|
item.setAttribute("updated", operation.data);
|
||||||
|
})
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user