@lazycatcloud/lzc-toolkit 0.0.144 → 0.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ export declare const TAP_OFFSET = 5;
2
+ export declare const LONG_PRESS_START_TIME = 500;
3
+ declare type Options = {
4
+ isDouble?: boolean;
5
+ onTap?: () => any;
6
+ onDoubleTap?: () => any;
7
+ onLongPress?: () => any;
8
+ };
9
+ export declare function useGesture(opt: Options): {
10
+ startTap: () => void;
11
+ checkTap: (offsetX: number, offsetY: number) => Promise<void>;
12
+ };
13
+ export {};
@@ -1,7 +1,7 @@
1
1
  export declare type Direction = "" | "vertical" | "horizontal";
2
2
  export declare function useTouch(): {
3
- move: EventListener;
4
- start: EventListener;
3
+ move: (x: number, y: number) => void;
4
+ start: (x: number, y: number) => void;
5
5
  reset: () => void;
6
6
  startX: import("vue").Ref<number>;
7
7
  startY: import("vue").Ref<number>;
@@ -0,0 +1,9 @@
1
+ import type { MaybeRef } from "@vueuse/core";
2
+ declare type Options = {
3
+ onComplate?: () => any;
4
+ };
5
+ export declare function useTransition(el: MaybeRef<HTMLElement | null | undefined>, opt: Options): {
6
+ transitioning: import("vue").Ref<boolean>;
7
+ startTransition: () => void;
8
+ };
9
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.144",
3
+ "version": "0.0.146",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",
@@ -1,2 +0,0 @@
1
- import type { Ref } from "vue";
2
- export declare const useRect: (elementOrRef: Element | Window | Ref<Element | Window | undefined>) => DOMRect;