mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 00:06:09 +01:00
🎨 没有找到使用的场景,当通过文档树修改图标后会隐藏面板,先移除 https://ld246.com/article/1701343432999
This commit is contained in:
parent
d9ae179218
commit
4928e8e2fb
1 changed files with 0 additions and 17 deletions
|
|
@ -21,23 +21,6 @@ export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
|
|||
if (!hasClosestByClassName(event.target, "pdf__outer")) {
|
||||
hideAllElements(["pdfutil"]);
|
||||
}
|
||||
// dock float 时,点击空白处,隐藏 dock
|
||||
const floatDockLayoutElement = hasClosestByClassName(event.target, "layout--float", true);
|
||||
if (floatDockLayoutElement && window.siyuan.layout.leftDock) {
|
||||
if (!floatDockLayoutElement.isSameNode(window.siyuan.layout.bottomDock.layout.element)) {
|
||||
window.siyuan.layout.bottomDock.hideDock();
|
||||
}
|
||||
if (!floatDockLayoutElement.isSameNode(window.siyuan.layout.leftDock.layout.element)) {
|
||||
window.siyuan.layout.leftDock.hideDock();
|
||||
}
|
||||
if (!floatDockLayoutElement.isSameNode(window.siyuan.layout.rightDock.layout.element)) {
|
||||
window.siyuan.layout.rightDock.hideDock();
|
||||
}
|
||||
} else if (!hasClosestByClassName(event.target, "dock") && !isWindow() && window.siyuan.layout.leftDock) {
|
||||
window.siyuan.layout.bottomDock.hideDock();
|
||||
window.siyuan.layout.leftDock.hideDock();
|
||||
window.siyuan.layout.rightDock.hideDock();
|
||||
}
|
||||
|
||||
const copyElement = hasTopClosestByClassName(event.target, "protyle-action__copy");
|
||||
if (copyElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue