mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-05 04:10:16 +01:00
🎨 PNPM Lint
This commit is contained in:
parent
b5a60fc1fa
commit
6f98849e9c
7 changed files with 8 additions and 12 deletions
|
|
@ -1,9 +1,5 @@
|
|||
import {getAllModels} from "../../layout/getAll";
|
||||
import {
|
||||
hasClosestByAttribute,
|
||||
hasClosestByClassName,
|
||||
hasTopClosestByClassName
|
||||
} from "../../protyle/util/hasClosest";
|
||||
import {hasClosestByAttribute, hasClosestByClassName, hasTopClosestByClassName} from "../../protyle/util/hasClosest";
|
||||
import {hideAllElements} from "../../protyle/ui/hideElements";
|
||||
import {isWindow} from "../../util/functions";
|
||||
import {writeText} from "../../protyle/util/compatibility";
|
||||
|
|
@ -19,7 +15,7 @@ export const globalClickHideMenu = (element: HTMLElement) => {
|
|||
window.siyuan.menus.menu.remove();
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
|
||||
cancelDrag();
|
||||
|
|
|
|||
|
|
@ -19,4 +19,4 @@ export const cancelDrag = () => {
|
|||
ghostElement.remove();
|
||||
document.onmousemove = null;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue