mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-15 00:21:00 +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.dataset.title = operation.data;
|
||||
item.querySelector(".layout-tab-bar .item__text").textContent = operation.data;
|
||||
});
|
||||
} else {
|
||||
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",
|
||||
"replaceAttrViewBlock", "updateAttrViewColTemplate", "setAttrViewColIcon"].includes(operation.action)) {
|
||||
refreshAV(protyle, operation);
|
||||
} else if (operation.action === "doUpdateUpdated") {
|
||||
updateElements.forEach(item => {
|
||||
item.setAttribute("updated", operation.data);
|
||||
})
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user