@openmool/mool-shared-hooks
Advanced tools
+5
-5
@@ -8,8 +8,8 @@ declare const insertIndex: import("vue").Ref<number | null, number | null>; | ||
| export declare const useDrag: (sourceEl: string[], targetEl: string, option: { | ||
| enter?: ((el: DragEvent, sort: (el: DragEvent, targetNode: HTMLElement, parentNode: HTMLElement) => void, insertIndex: import("vue").Ref<number | null, number | null>, sourceIndex?: number | null | undefined) => void) | undefined; | ||
| start?: ((el: DragEvent, sourceIndex: number | null) => void) | undefined; | ||
| over?: ((el: DragEvent) => void) | undefined; | ||
| leave?: ((el: DragEvent) => void) | undefined; | ||
| end?: ((el: DragEvent, data: string, insertIndex: import("vue").Ref<number | null, number | null>) => void) | undefined; | ||
| enter?: (...arg: [el: DragEvent, sort: typeof startDrag, insertIndex: typeof insertIndex, sourceIndex?: typeof sourceIndex]) => void; | ||
| start?: (el: DragEvent, sourceIndex: number | null) => void; | ||
| over?: (el: DragEvent) => void; | ||
| leave?: (el: DragEvent) => void; | ||
| end?: (...arg: [el: DragEvent, data: string, insertIndex: typeof insertIndex]) => void; | ||
| }, doc?: Document) => () => void; | ||
| export {}; |
+1
-0
@@ -25,1 +25,2 @@ import { Ref } from 'vue'; | ||
| export * from './loading'; | ||
| export * from '@vueuse/core'; |
+1
-0
@@ -46,1 +46,2 @@ import { getCurrentInstance, reactive } from 'vue'; | ||
| export * from './loading'; | ||
| export * from '@vueuse/core'; |
@@ -1,2 +0,2 @@ | ||
| export default function useLoading(initValue?: boolean): { | ||
| export declare function useLoading(initValue?: boolean): { | ||
| loading: import("vue").Ref<boolean, boolean>; | ||
@@ -3,0 +3,0 @@ setLoading: (value: boolean) => void; |
+1
-1
| import { ref } from 'vue'; | ||
| export default function useLoading(initValue = false) { | ||
| export function useLoading(initValue = false) { | ||
| const loading = ref(initValue); | ||
@@ -4,0 +4,0 @@ const setLoading = (value) => { |
+1
-1
| { | ||
| "name": "@openmool/mool-shared-hooks", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "description": "@openmool开源产品的共享hooks函数库,可单独引入项目", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
251
0.8%0
-100%9397
-1.26%