forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
459 B
12 lines
459 B
1 month ago
|
import type { Ref } from 'vue';
|
||
|
import type { UseNamespaceReturn } from '../use-namespace';
|
||
|
export declare type UseLockScreenOptions = {
|
||
|
ns?: UseNamespaceReturn;
|
||
|
};
|
||
|
/**
|
||
|
* 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>, options?: UseLockScreenOptions) => void;
|