@opensig/opendesign
Version:
<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>
15 lines (14 loc) • 513 B
TypeScript
import { PointT } from '../_utils/types';
export type PointerTypeT = 'mouse' | 'touch';
export type PositionTypeT = 'page' | 'client' | 'screen' | 'offset';
export interface UseMousePropsT {
defaultValue?: PointT;
target?: Window | EventTarget | null;
type?: PositionTypeT;
}
export declare function useMouse(props?: UseMousePropsT): {
x: import('vue').Ref<number, number>;
y: import('vue').Ref<number, number>;
destroy: () => void;
};
export type UseMouseT = ReturnType<typeof useMouse>;