This commit is contained in:
parent
45a8c97e9f
commit
ae135681c4
3 changed files with 1 additions and 3 deletions
|
@ -50,6 +50,7 @@
|
|||
|
||||
&__title {
|
||||
outline: none;
|
||||
font-weight: bold;
|
||||
|
||||
&:empty::after {
|
||||
color: var(--b3-theme-on-surface);
|
||||
|
|
|
@ -399,7 +399,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
|
|||
}]);
|
||||
blockElement.setAttribute("updated", newUpdated);
|
||||
nameElement.dataset.title = newData;
|
||||
blockElement.querySelector(".layout-tab-bar .item__text").textContent = newData;
|
||||
|
||||
// 当前页面不能进行推送,否则光标会乱跳
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`[data-av-id="${avId}"]`)).forEach((item: HTMLElement) => {
|
||||
|
@ -412,7 +411,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
|
|||
}
|
||||
titleElement.textContent = newData;
|
||||
titleElement.dataset.title = newData;
|
||||
item.querySelector(".layout-tab-bar .item__text").textContent = newData;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
@ -301,7 +301,6 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation, isUndo: bool
|
|||
}
|
||||
titleElement.textContent = operation.data;
|
||||
titleElement.dataset.title = operation.data;
|
||||
item.querySelector(".layout-tab-bar .item__text").textContent = operation.data;
|
||||
});
|
||||
}
|
||||
if (lastParentID === operation.parentID && protyle.contentElement.isSameNode(lastElement)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue