Vanessa 2023-12-01 15:58:25 +08:00
parent 45a8c97e9f
commit ae135681c4
3 changed files with 1 additions and 3 deletions

View file

@ -50,6 +50,7 @@
&__title { &__title {
outline: none; outline: none;
font-weight: bold;
&:empty::after { &:empty::after {
color: var(--b3-theme-on-surface); color: var(--b3-theme-on-surface);

View file

@ -399,7 +399,6 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
}]); }]);
blockElement.setAttribute("updated", newUpdated); blockElement.setAttribute("updated", newUpdated);
nameElement.dataset.title = newData; 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) => { 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.textContent = newData;
titleElement.dataset.title = newData; titleElement.dataset.title = newData;
item.querySelector(".layout-tab-bar .item__text").textContent = newData;
}); });
}; };

View file

@ -301,7 +301,6 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation, isUndo: bool
} }
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;
}); });
} }
if (lastParentID === operation.parentID && protyle.contentElement.isSameNode(lastElement)) { if (lastParentID === operation.parentID && protyle.contentElement.isSameNode(lastElement)) {