mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
cd80bb8aac
commit
964cabe3f0
1 changed files with 13 additions and 7 deletions
|
|
@ -479,13 +479,19 @@ export class Wnd {
|
||||||
} else {
|
} else {
|
||||||
this.remove();
|
this.remove();
|
||||||
}
|
}
|
||||||
getAllModels().editor.forEach(item => {
|
// 关闭分屏页签后光标消失
|
||||||
|
const editors = getAllModels().editor;
|
||||||
|
if (editors.length === 0) {
|
||||||
|
updatePanelByEditor();
|
||||||
|
} else {
|
||||||
|
editors.forEach(item => {
|
||||||
if (!item.element.classList.contains("fn__none")) {
|
if (!item.element.classList.contains("fn__none")) {
|
||||||
setPanelFocus(item.parent.parent.headersElement.parentElement);
|
setPanelFocus(item.parent.parent.headersElement.parentElement);
|
||||||
updatePanelByEditor(item.editor.protyle, true, true);
|
updatePanelByEditor(item.editor.protyle, true, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (item.headElement) {
|
if (item.headElement) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue