UNPKG

hongluan-ui

Version:
8 lines (7 loc) 317 B
import type { Ref } from 'vue'; /** * Hook that monitoring the ref value to lock or unlock the screen. * When the trigger became true, it assumes modal is now opened and vice versa. * @param trigger {Ref<boolean>} */ export declare const useLockscreen: (trigger: Ref<boolean>, autoClean?: boolean) => () => void;