@lazycatcloud/lzc-toolkit 0.0.219 → 0.0.222
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.
- package/dist/index.es.js +851 -835
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/Loading.vue.d.ts +36 -36
- package/dist/types/dialog/Dialog.vue.d.ts +113 -113
- package/dist/types/dialog/index.d.ts +17 -17
- package/dist/types/dialog/keys.d.ts +2 -2
- package/dist/types/directive/index.d.ts +7 -7
- package/dist/types/image/Image.vue.d.ts +148 -148
- package/dist/types/image/Thumbnail.vue.d.ts +82 -82
- package/dist/types/image/useImage.d.ts +14 -14
- package/dist/types/index.d.ts +21 -21
- package/dist/types/loading/DefaultLoading.vue.d.ts +31 -31
- package/dist/types/loading/PageLoading.vue.d.ts +31 -31
- package/dist/types/loading/index.d.ts +2 -2
- package/dist/types/loading-toast/index.d.ts +47 -47
- package/dist/types/loading-toast/index.vue.d.ts +86 -86
- package/dist/types/scroll-bar/ScrollBar.vue.d.ts +126 -126
- package/dist/types/scroll-bar/index.d.ts +2 -2
- package/dist/types/scroll-bar/use/scrollBar.d.ts +14 -14
- package/dist/types/scroll-bar/use/type.d.ts +11 -11
- package/dist/types/svgIcon/SvgIcon.vue.d.ts +37 -37
- package/dist/types/toast/Toast.vue.d.ts +19 -19
- package/dist/types/toast/ToastCreator.d.ts +14 -14
- package/dist/types/useBackPress/index.d.ts +15 -15
- package/dist/types/useDelayAsync/index.d.ts +31 -31
- package/dist/types/useDelayLoad/index.d.ts +28 -28
- package/dist/types/useDowndrag/index.d.ts +14 -14
- package/dist/types/useDragSelect/index.d.ts +55 -55
- package/dist/types/useRouterActivated/index.d.ts +4 -4
- package/dist/types/useScaleImage/index.d.ts +3165 -3165
- package/dist/types/useScaleImage/useGesture.d.ts +13 -13
- package/dist/types/useScaleImage/useTouch.d.ts +15 -15
- package/dist/types/useScaleImage/useTransition.d.ts +9 -9
- package/dist/types/useSelectable/index.d.ts +43 -43
- package/dist/types/useSelectable/keys.d.ts +12 -12
- package/dist/types/useVirtualList/PullRefresh.vue.d.ts +98 -32
- package/dist/types/useVirtualList/VirtualList.vue.d.ts +213 -213
- package/dist/types/useVirtualList/index.d.ts +49 -49
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/touch.d.ts +16 -16
- package/dist/vite.config.d.ts +2 -2
- package/package.json +47 -47
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.no-overlay-modal[data-v-
|
|
1
|
+
.no-overlay-modal[data-v-3d61e60a]{position:absolute;inset:0;display:flex;z-index:999}.lzc-modal[data-v-3d61e60a]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-3d61e60a]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-7fd39e51]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-7fd39e51]{opacity:0}.slider-wrapper[data-v-7fd39e51]{position:absolute;right:0;touch-action:none}.default-slider[data-v-7fd39e51]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-759822db]{position:relative}.pull-refresh-box[data-v-759822db]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-759822db]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-759822db]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-759822db 3s infinite linear forwards}@keyframes boxs-759822db{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-759822db]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-759822db]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-759822db 3s infinite linear forwards}@keyframes pr1A-759822db{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-759822db]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-759822db]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-759822db 3s infinite linear forwards}@keyframes pr2A-759822db{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-759822db]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-759822db]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-759822db]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-759822db]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-759822db]{opacity:1}.left-item[data-v-759822db]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-759822db]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-bfec1a6b],.v-leave-active[data-v-bfec1a6b]{transition:opacity .6s ease}.v-enter-from[data-v-bfec1a6b],.v-leave-to[data-v-bfec1a6b]{opacity:0}.tip[data-v-bfec1a6b]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-bfec1a6b]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.no-support-icon[data-v-bfec1a6b]{width:162px;height:134px;cursor:default}.bad-image[data-v-bfec1a6b]{width:92px;height:92px;cursor:default}.src-class[data-v-bfec1a6b]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-bfec1a6b{0%{opacity:0}to{opacity:1}}.showing[data-v-bfec1a6b]{animation:fadeIn-bfec1a6b .35s linear}img[data-v-bfec1a6b]{user-select:none;pointer-events:none}img[data-v-ab86da1e]{pointer-events:none}.icon-wrap[data-v-ab86da1e]{display:flex;align-items:center;justify-content:center}.icon[data-v-ab86da1e]{width:100%;height:100%}
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
width?: string | number | undefined;
|
|
3
|
-
height?: string | number | undefined;
|
|
4
|
-
duration?: number | undefined;
|
|
5
|
-
}>, {
|
|
6
|
-
width: string;
|
|
7
|
-
height: string;
|
|
8
|
-
duration: number;
|
|
9
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
-
width?: string | number | undefined;
|
|
11
|
-
height?: string | number | undefined;
|
|
12
|
-
duration?: number | undefined;
|
|
13
|
-
}>, {
|
|
14
|
-
width: string;
|
|
15
|
-
height: string;
|
|
16
|
-
duration: number;
|
|
17
|
-
}>>>, {
|
|
18
|
-
width: number | string;
|
|
19
|
-
height: number | string;
|
|
20
|
-
duration: number;
|
|
21
|
-
}>;
|
|
22
|
-
export default _default;
|
|
23
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: import('vue').PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
33
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
34
|
-
default: D[K];
|
|
35
|
-
} : P[K];
|
|
36
|
-
};
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
width?: string | number | undefined;
|
|
3
|
+
height?: string | number | undefined;
|
|
4
|
+
duration?: number | undefined;
|
|
5
|
+
}>, {
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
duration: number;
|
|
9
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
|
+
width?: string | number | undefined;
|
|
11
|
+
height?: string | number | undefined;
|
|
12
|
+
duration?: number | undefined;
|
|
13
|
+
}>, {
|
|
14
|
+
width: string;
|
|
15
|
+
height: string;
|
|
16
|
+
duration: number;
|
|
17
|
+
}>>>, {
|
|
18
|
+
width: number | string;
|
|
19
|
+
height: number | string;
|
|
20
|
+
duration: number;
|
|
21
|
+
}>;
|
|
22
|
+
export default _default;
|
|
23
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
24
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
25
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
+
} : {
|
|
28
|
+
type: import('vue').PropType<T[K]>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
33
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
34
|
+
default: D[K];
|
|
35
|
+
} : P[K];
|
|
36
|
+
};
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
export interface DialogProps {
|
|
2
|
-
visiable?: boolean;
|
|
3
|
-
closeOnClickOverlay?: boolean;
|
|
4
|
-
hiddenOverlay?: boolean;
|
|
5
|
-
dialogClass?: string | string[] | object;
|
|
6
|
-
modalClass?: string | string[] | object;
|
|
7
|
-
onClickOverlay?: Function;
|
|
8
|
-
}
|
|
9
|
-
declare const _default: {
|
|
10
|
-
new (...args: any[]): {
|
|
11
|
-
$: import("vue").ComponentInternalInstance;
|
|
12
|
-
$data: {};
|
|
13
|
-
$props: Partial<{
|
|
14
|
-
visiable: boolean;
|
|
15
|
-
closeOnClickOverlay: boolean;
|
|
16
|
-
dialogClass: string | object | string[];
|
|
17
|
-
modalClass: string | object | string[];
|
|
18
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
19
|
-
visiable: boolean;
|
|
20
|
-
closeOnClickOverlay: boolean;
|
|
21
|
-
dialogClass: string;
|
|
22
|
-
modalClass: string;
|
|
23
|
-
}>>> & {
|
|
24
|
-
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visiable" | "closeOnClickOverlay" | "dialogClass" | "modalClass">;
|
|
26
|
-
$attrs: {
|
|
27
|
-
[x: string]: unknown;
|
|
28
|
-
};
|
|
29
|
-
$refs: {
|
|
30
|
-
[x: string]: unknown;
|
|
31
|
-
};
|
|
32
|
-
$slots: Readonly<{
|
|
33
|
-
[name: string]: import("vue").Slot | undefined;
|
|
34
|
-
}>;
|
|
35
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
36
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
37
|
-
$emit: (event: "update:visiable", ...args: any[]) => void;
|
|
38
|
-
$el: any;
|
|
39
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
40
|
-
visiable: boolean;
|
|
41
|
-
closeOnClickOverlay: boolean;
|
|
42
|
-
dialogClass: string;
|
|
43
|
-
modalClass: string;
|
|
44
|
-
}>>> & {
|
|
45
|
-
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visiable"[], string, {
|
|
47
|
-
visiable: boolean;
|
|
48
|
-
closeOnClickOverlay: boolean;
|
|
49
|
-
dialogClass: string | object | string[];
|
|
50
|
-
modalClass: string | object | string[];
|
|
51
|
-
}> & {
|
|
52
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
65
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
66
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
67
|
-
};
|
|
68
|
-
$forceUpdate: () => void;
|
|
69
|
-
$nextTick: typeof import("vue").nextTick;
|
|
70
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
71
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
72
|
-
visiable: boolean;
|
|
73
|
-
closeOnClickOverlay: boolean;
|
|
74
|
-
dialogClass: string;
|
|
75
|
-
modalClass: string;
|
|
76
|
-
}>>> & {
|
|
77
|
-
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
78
|
-
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
79
|
-
__isFragment?: undefined;
|
|
80
|
-
__isTeleport?: undefined;
|
|
81
|
-
__isSuspense?: undefined;
|
|
82
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
83
|
-
visiable: boolean;
|
|
84
|
-
closeOnClickOverlay: boolean;
|
|
85
|
-
dialogClass: string;
|
|
86
|
-
modalClass: string;
|
|
87
|
-
}>>> & {
|
|
88
|
-
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
89
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visiable"[], "update:visiable", {
|
|
90
|
-
visiable: boolean;
|
|
91
|
-
closeOnClickOverlay: boolean;
|
|
92
|
-
dialogClass: string | object | string[];
|
|
93
|
-
modalClass: string | object | string[];
|
|
94
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
95
|
-
$slots: {
|
|
96
|
-
default: (_: {}) => any;
|
|
97
|
-
};
|
|
98
|
-
});
|
|
99
|
-
export default _default;
|
|
100
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
101
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
102
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
103
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
104
|
-
} : {
|
|
105
|
-
type: import('vue').PropType<T[K]>;
|
|
106
|
-
required: true;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
110
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
111
|
-
default: D[K];
|
|
112
|
-
} : P[K];
|
|
113
|
-
};
|
|
1
|
+
export interface DialogProps {
|
|
2
|
+
visiable?: boolean;
|
|
3
|
+
closeOnClickOverlay?: boolean;
|
|
4
|
+
hiddenOverlay?: boolean;
|
|
5
|
+
dialogClass?: string | string[] | object;
|
|
6
|
+
modalClass?: string | string[] | object;
|
|
7
|
+
onClickOverlay?: Function;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: {
|
|
10
|
+
new (...args: any[]): {
|
|
11
|
+
$: import("vue").ComponentInternalInstance;
|
|
12
|
+
$data: {};
|
|
13
|
+
$props: Partial<{
|
|
14
|
+
visiable: boolean;
|
|
15
|
+
closeOnClickOverlay: boolean;
|
|
16
|
+
dialogClass: string | object | string[];
|
|
17
|
+
modalClass: string | object | string[];
|
|
18
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
19
|
+
visiable: boolean;
|
|
20
|
+
closeOnClickOverlay: boolean;
|
|
21
|
+
dialogClass: string;
|
|
22
|
+
modalClass: string;
|
|
23
|
+
}>>> & {
|
|
24
|
+
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "visiable" | "closeOnClickOverlay" | "dialogClass" | "modalClass">;
|
|
26
|
+
$attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
$refs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
$slots: Readonly<{
|
|
33
|
+
[name: string]: import("vue").Slot | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
36
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
37
|
+
$emit: (event: "update:visiable", ...args: any[]) => void;
|
|
38
|
+
$el: any;
|
|
39
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
40
|
+
visiable: boolean;
|
|
41
|
+
closeOnClickOverlay: boolean;
|
|
42
|
+
dialogClass: string;
|
|
43
|
+
modalClass: string;
|
|
44
|
+
}>>> & {
|
|
45
|
+
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visiable"[], string, {
|
|
47
|
+
visiable: boolean;
|
|
48
|
+
closeOnClickOverlay: boolean;
|
|
49
|
+
dialogClass: string | object | string[];
|
|
50
|
+
modalClass: string | object | string[];
|
|
51
|
+
}> & {
|
|
52
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
53
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
54
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
55
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
56
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
57
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
58
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
59
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
60
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
61
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
62
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
63
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
64
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
65
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
66
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
|
|
67
|
+
};
|
|
68
|
+
$forceUpdate: () => void;
|
|
69
|
+
$nextTick: typeof import("vue").nextTick;
|
|
70
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
71
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
72
|
+
visiable: boolean;
|
|
73
|
+
closeOnClickOverlay: boolean;
|
|
74
|
+
dialogClass: string;
|
|
75
|
+
modalClass: string;
|
|
76
|
+
}>>> & {
|
|
77
|
+
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
|
|
79
|
+
__isFragment?: undefined;
|
|
80
|
+
__isTeleport?: undefined;
|
|
81
|
+
__isSuspense?: undefined;
|
|
82
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<DialogProps>, {
|
|
83
|
+
visiable: boolean;
|
|
84
|
+
closeOnClickOverlay: boolean;
|
|
85
|
+
dialogClass: string;
|
|
86
|
+
modalClass: string;
|
|
87
|
+
}>>> & {
|
|
88
|
+
"onUpdate:visiable"?: ((...args: any[]) => any) | undefined;
|
|
89
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visiable"[], "update:visiable", {
|
|
90
|
+
visiable: boolean;
|
|
91
|
+
closeOnClickOverlay: boolean;
|
|
92
|
+
dialogClass: string | object | string[];
|
|
93
|
+
modalClass: string | object | string[];
|
|
94
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
95
|
+
$slots: {
|
|
96
|
+
default: (_: {}) => any;
|
|
97
|
+
};
|
|
98
|
+
});
|
|
99
|
+
export default _default;
|
|
100
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
101
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
102
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
103
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
104
|
+
} : {
|
|
105
|
+
type: import('vue').PropType<T[K]>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
110
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
111
|
+
default: D[K];
|
|
112
|
+
} : P[K];
|
|
113
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { type VNodeProps } from "vue";
|
|
2
|
-
import { type DialogProps } from "./Dialog.vue";
|
|
3
|
-
export * from "./keys";
|
|
4
|
-
interface Constructor<P = any> {
|
|
5
|
-
__isFragment?: never;
|
|
6
|
-
__isTeleport?: never;
|
|
7
|
-
__isSuspense?: never;
|
|
8
|
-
new (...args: any[]): {
|
|
9
|
-
$props: P;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
declare type DialogControllerOptions = Omit<DialogProps, "visiable">;
|
|
13
|
-
export declare function dialogController(dialogProps?: DialogControllerOptions): {
|
|
14
|
-
create: <P>(component: Constructor<P>, componentProps?: (VNodeProps & P) | undefined) => {
|
|
15
|
-
close: () => void;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
1
|
+
import { type VNodeProps } from "vue";
|
|
2
|
+
import { type DialogProps } from "./Dialog.vue";
|
|
3
|
+
export * from "./keys";
|
|
4
|
+
interface Constructor<P = any> {
|
|
5
|
+
__isFragment?: never;
|
|
6
|
+
__isTeleport?: never;
|
|
7
|
+
__isSuspense?: never;
|
|
8
|
+
new (...args: any[]): {
|
|
9
|
+
$props: P;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
declare type DialogControllerOptions = Omit<DialogProps, "visiable">;
|
|
13
|
+
export declare function dialogController(dialogProps?: DialogControllerOptions): {
|
|
14
|
+
create: <P>(component: Constructor<P>, componentProps?: (VNodeProps & P) | undefined) => {
|
|
15
|
+
close: () => void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { InjectionKey } from "vue";
|
|
2
|
-
export declare const closeDialogKey: InjectionKey<() => void>;
|
|
1
|
+
import type { InjectionKey } from "vue";
|
|
2
|
+
export declare const closeDialogKey: InjectionKey<() => void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Directive } from "vue";
|
|
2
|
-
export declare const vSingleClick: Directive<HTMLElement, (event: MouseEvent) => any>;
|
|
3
|
-
export declare const vDebounceClick: Directive<HTMLElement, {
|
|
4
|
-
fn: Function;
|
|
5
|
-
ms?: number;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const vEnter: Directive<HTMLElement, () => void>;
|
|
1
|
+
import type { Directive } from "vue";
|
|
2
|
+
export declare const vSingleClick: Directive<HTMLElement, (event: MouseEvent) => any>;
|
|
3
|
+
export declare const vDebounceClick: Directive<HTMLElement, {
|
|
4
|
+
fn: Function;
|
|
5
|
+
ms?: number;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const vEnter: Directive<HTMLElement, () => void>;
|