This commit is contained in:
zyronon
2023-09-25 18:43:22 +08:00
parent 3d72b9de08
commit 5c1994f0db
12 changed files with 719 additions and 439 deletions

View File

@@ -3,7 +3,7 @@ import {emitter, EventKey} from "@/utils/eventBus.ts";
import {useRuntimeStore} from "@/stores/runtime.ts";
import {$ref} from "vue/macros";
export function useWindowClick(cb: () => void) {
export function useWindowClick(cb: (e: PointerEvent) => void) {
onMounted(() => {
emitter.on(EventKey.closeOther, cb)
window.addEventListener('click', cb)