@lazycatcloud/lzc-toolkit 0.0.146 → 0.0.147

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.
@@ -8,6 +8,8 @@ export * from "./loading/index";
8
8
  export * from "./useDelayAsync";
9
9
  export * from "./useScaleImage";
10
10
  export * from "./useDowndrag";
11
+ export * from "./useRouterActivated";
12
+ export * from "./useBackPress";
11
13
  export { ToastCreator } from "./toast/ToastCreator";
12
14
  export { LoadingToast } from "./loading-toast/index";
13
15
  export { default as SvgIcon } from "./svgIcon/SvgIcon.vue";
@@ -0,0 +1,10 @@
1
+ declare global {
2
+ interface Window {
3
+ onBackPress: any;
4
+ }
5
+ }
6
+ export declare type UseBackPressCallback = () => boolean | undefined | null | void;
7
+ /**
8
+ * callback 返回值为true(boolean)时拦截手势返回
9
+ * */
10
+ export default function useBackPress(callback: UseBackPressCallback): void;
@@ -0,0 +1,3 @@
1
+ export default function useRouterActivated(): {
2
+ isActivated: import("vue").Ref<boolean>;
3
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.146",
3
+ "version": "0.0.147",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",