@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
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
delay?: string | undefined;
|
|
3
|
-
size?: ("mini" | "large") | undefined;
|
|
4
|
-
}>, {
|
|
5
|
-
delay: string;
|
|
6
|
-
size: string;
|
|
7
|
-
}>, {}, 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<{
|
|
8
|
-
delay?: string | undefined;
|
|
9
|
-
size?: ("mini" | "large") | undefined;
|
|
10
|
-
}>, {
|
|
11
|
-
delay: string;
|
|
12
|
-
size: string;
|
|
13
|
-
}>>>, {
|
|
14
|
-
delay: string;
|
|
15
|
-
size: "mini" | "large";
|
|
16
|
-
}>;
|
|
17
|
-
export default _default;
|
|
18
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
-
} : {
|
|
23
|
-
type: import('vue').PropType<T[K]>;
|
|
24
|
-
required: true;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
28
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
29
|
-
default: D[K];
|
|
30
|
-
} : P[K];
|
|
31
|
-
};
|
|
1
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
delay?: string | undefined;
|
|
3
|
+
size?: ("mini" | "large") | undefined;
|
|
4
|
+
}>, {
|
|
5
|
+
delay: string;
|
|
6
|
+
size: string;
|
|
7
|
+
}>, {}, 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<{
|
|
8
|
+
delay?: string | undefined;
|
|
9
|
+
size?: ("mini" | "large") | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
delay: string;
|
|
12
|
+
size: string;
|
|
13
|
+
}>>>, {
|
|
14
|
+
delay: string;
|
|
15
|
+
size: "mini" | "large";
|
|
16
|
+
}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
28
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
29
|
+
default: D[K];
|
|
30
|
+
} : P[K];
|
|
31
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as DefaultLoading } from "./DefaultLoading.vue";
|
|
2
|
-
export { default as PageLoading } from "./PageLoading.vue";
|
|
1
|
+
export { default as DefaultLoading } from "./DefaultLoading.vue";
|
|
2
|
+
export { default as PageLoading } from "./PageLoading.vue";
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { Component, Ref, CSSProperties } from "vue";
|
|
2
|
-
export interface LoadingToastOptions {
|
|
3
|
-
visible?: Ref<boolean>;
|
|
4
|
-
/** 文本内容,支持通过\n换行 */
|
|
5
|
-
message?: string;
|
|
6
|
-
/** 展示时长(ms),值为 0 时,toast 不会消失 */
|
|
7
|
-
duration?: number;
|
|
8
|
-
/** 展示宽度 */
|
|
9
|
-
width?: string;
|
|
10
|
-
/** 展示最大宽度 */
|
|
11
|
-
maxWidth?: string;
|
|
12
|
-
/** 是否显示icon */
|
|
13
|
-
showIcon?: boolean;
|
|
14
|
-
/** 自定义图标 */
|
|
15
|
-
icon?: string;
|
|
16
|
-
/** 是否显示关闭按钮 */
|
|
17
|
-
showClose?: boolean;
|
|
18
|
-
/** 是否在点击后关闭 */
|
|
19
|
-
closeOnClick?: boolean;
|
|
20
|
-
/** 是否在点击遮罩层后关闭 */
|
|
21
|
-
closeOnClickOverlay?: boolean;
|
|
22
|
-
/** 自定义类名 */
|
|
23
|
-
className?: string;
|
|
24
|
-
/** 自定义content样式 */
|
|
25
|
-
overlayContentStyle?: CSSProperties;
|
|
26
|
-
/** 是否允许事件捕获 */
|
|
27
|
-
captureEventP?: boolean;
|
|
28
|
-
/** 关闭后按钮触发的事件 */
|
|
29
|
-
onClose?: Function;
|
|
30
|
-
}
|
|
31
|
-
export declare class LoadingToast {
|
|
32
|
-
loadingToast: Component;
|
|
33
|
-
el: HTMLElement;
|
|
34
|
-
options: LoadingToastOptions;
|
|
35
|
-
visible: Ref<boolean>;
|
|
36
|
-
animateDuration: number;
|
|
37
|
-
constructor(options?: LoadingToastOptions);
|
|
38
|
-
show(): Promise<void>;
|
|
39
|
-
destory(): Promise<void>;
|
|
40
|
-
close(): void;
|
|
41
|
-
}
|
|
42
|
-
export default LoadingToast;
|
|
43
|
-
interface ToastOptions {
|
|
44
|
-
}
|
|
45
|
-
export declare const Toast: {
|
|
46
|
-
message(text: string, options?: ToastOptions): LoadingToast;
|
|
47
|
-
};
|
|
1
|
+
import { Component, Ref, CSSProperties } from "vue";
|
|
2
|
+
export interface LoadingToastOptions {
|
|
3
|
+
visible?: Ref<boolean>;
|
|
4
|
+
/** 文本内容,支持通过\n换行 */
|
|
5
|
+
message?: string;
|
|
6
|
+
/** 展示时长(ms),值为 0 时,toast 不会消失 */
|
|
7
|
+
duration?: number;
|
|
8
|
+
/** 展示宽度 */
|
|
9
|
+
width?: string;
|
|
10
|
+
/** 展示最大宽度 */
|
|
11
|
+
maxWidth?: string;
|
|
12
|
+
/** 是否显示icon */
|
|
13
|
+
showIcon?: boolean;
|
|
14
|
+
/** 自定义图标 */
|
|
15
|
+
icon?: string;
|
|
16
|
+
/** 是否显示关闭按钮 */
|
|
17
|
+
showClose?: boolean;
|
|
18
|
+
/** 是否在点击后关闭 */
|
|
19
|
+
closeOnClick?: boolean;
|
|
20
|
+
/** 是否在点击遮罩层后关闭 */
|
|
21
|
+
closeOnClickOverlay?: boolean;
|
|
22
|
+
/** 自定义类名 */
|
|
23
|
+
className?: string;
|
|
24
|
+
/** 自定义content样式 */
|
|
25
|
+
overlayContentStyle?: CSSProperties;
|
|
26
|
+
/** 是否允许事件捕获 */
|
|
27
|
+
captureEventP?: boolean;
|
|
28
|
+
/** 关闭后按钮触发的事件 */
|
|
29
|
+
onClose?: Function;
|
|
30
|
+
}
|
|
31
|
+
export declare class LoadingToast {
|
|
32
|
+
loadingToast: Component;
|
|
33
|
+
el: HTMLElement;
|
|
34
|
+
options: LoadingToastOptions;
|
|
35
|
+
visible: Ref<boolean>;
|
|
36
|
+
animateDuration: number;
|
|
37
|
+
constructor(options?: LoadingToastOptions);
|
|
38
|
+
show(): Promise<void>;
|
|
39
|
+
destory(): Promise<void>;
|
|
40
|
+
close(): void;
|
|
41
|
+
}
|
|
42
|
+
export default LoadingToast;
|
|
43
|
+
interface ToastOptions {
|
|
44
|
+
}
|
|
45
|
+
export declare const Toast: {
|
|
46
|
+
message(text: string, options?: ToastOptions): LoadingToast;
|
|
47
|
+
};
|
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { CSSProperties, Ref } from "vue";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
visible?: Ref<boolean> | undefined;
|
|
4
|
-
message?: string | undefined;
|
|
5
|
-
duration?: number | undefined;
|
|
6
|
-
width?: string | undefined;
|
|
7
|
-
maxWidth?: string | undefined;
|
|
8
|
-
showIcon?: boolean | undefined;
|
|
9
|
-
icon?: string | undefined;
|
|
10
|
-
showClose?: boolean | undefined;
|
|
11
|
-
closeOnClick?: boolean | undefined;
|
|
12
|
-
closeOnClickOverlay?: boolean | undefined;
|
|
13
|
-
className?: string | undefined;
|
|
14
|
-
overlayContentStyle?: CSSProperties | undefined;
|
|
15
|
-
captureEventP?: boolean | undefined;
|
|
16
|
-
}>, {
|
|
17
|
-
message: string;
|
|
18
|
-
duration: number;
|
|
19
|
-
width: undefined;
|
|
20
|
-
maxWidth: undefined;
|
|
21
|
-
showIcon: boolean;
|
|
22
|
-
icon: undefined;
|
|
23
|
-
showClose: boolean;
|
|
24
|
-
closeOnClick: boolean;
|
|
25
|
-
closeOnClickOverlay: boolean;
|
|
26
|
-
className: string;
|
|
27
|
-
overlayContentStyle: undefined;
|
|
28
|
-
captureEventP: boolean;
|
|
29
|
-
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
-
visible?: Ref<boolean> | undefined;
|
|
31
|
-
message?: string | undefined;
|
|
32
|
-
duration?: number | undefined;
|
|
33
|
-
width?: string | undefined;
|
|
34
|
-
maxWidth?: string | undefined;
|
|
35
|
-
showIcon?: boolean | undefined;
|
|
36
|
-
icon?: string | undefined;
|
|
37
|
-
showClose?: boolean | undefined;
|
|
38
|
-
closeOnClick?: boolean | undefined;
|
|
39
|
-
closeOnClickOverlay?: boolean | undefined;
|
|
40
|
-
className?: string | undefined;
|
|
41
|
-
overlayContentStyle?: CSSProperties | undefined;
|
|
42
|
-
captureEventP?: boolean | undefined;
|
|
43
|
-
}>, {
|
|
44
|
-
message: string;
|
|
45
|
-
duration: number;
|
|
46
|
-
width: undefined;
|
|
47
|
-
maxWidth: undefined;
|
|
48
|
-
showIcon: boolean;
|
|
49
|
-
icon: undefined;
|
|
50
|
-
showClose: boolean;
|
|
51
|
-
closeOnClick: boolean;
|
|
52
|
-
closeOnClickOverlay: boolean;
|
|
53
|
-
className: string;
|
|
54
|
-
overlayContentStyle: undefined;
|
|
55
|
-
captureEventP: boolean;
|
|
56
|
-
}>>> & {
|
|
57
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
58
|
-
}, {
|
|
59
|
-
width: string;
|
|
60
|
-
duration: number;
|
|
61
|
-
closeOnClickOverlay: boolean;
|
|
62
|
-
className: string;
|
|
63
|
-
icon: string;
|
|
64
|
-
maxWidth: string;
|
|
65
|
-
message: string;
|
|
66
|
-
showIcon: boolean;
|
|
67
|
-
showClose: boolean;
|
|
68
|
-
closeOnClick: boolean;
|
|
69
|
-
overlayContentStyle: CSSProperties;
|
|
70
|
-
captureEventP: boolean;
|
|
71
|
-
}>;
|
|
72
|
-
export default _default;
|
|
73
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
75
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
-
} : {
|
|
78
|
-
type: import('vue').PropType<T[K]>;
|
|
79
|
-
required: true;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
83
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
84
|
-
default: D[K];
|
|
85
|
-
} : P[K];
|
|
86
|
-
};
|
|
1
|
+
import { CSSProperties, Ref } from "vue";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
visible?: Ref<boolean> | undefined;
|
|
4
|
+
message?: string | undefined;
|
|
5
|
+
duration?: number | undefined;
|
|
6
|
+
width?: string | undefined;
|
|
7
|
+
maxWidth?: string | undefined;
|
|
8
|
+
showIcon?: boolean | undefined;
|
|
9
|
+
icon?: string | undefined;
|
|
10
|
+
showClose?: boolean | undefined;
|
|
11
|
+
closeOnClick?: boolean | undefined;
|
|
12
|
+
closeOnClickOverlay?: boolean | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
overlayContentStyle?: CSSProperties | undefined;
|
|
15
|
+
captureEventP?: boolean | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
message: string;
|
|
18
|
+
duration: number;
|
|
19
|
+
width: undefined;
|
|
20
|
+
maxWidth: undefined;
|
|
21
|
+
showIcon: boolean;
|
|
22
|
+
icon: undefined;
|
|
23
|
+
showClose: boolean;
|
|
24
|
+
closeOnClick: boolean;
|
|
25
|
+
closeOnClickOverlay: boolean;
|
|
26
|
+
className: string;
|
|
27
|
+
overlayContentStyle: undefined;
|
|
28
|
+
captureEventP: boolean;
|
|
29
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
30
|
+
visible?: Ref<boolean> | undefined;
|
|
31
|
+
message?: string | undefined;
|
|
32
|
+
duration?: number | undefined;
|
|
33
|
+
width?: string | undefined;
|
|
34
|
+
maxWidth?: string | undefined;
|
|
35
|
+
showIcon?: boolean | undefined;
|
|
36
|
+
icon?: string | undefined;
|
|
37
|
+
showClose?: boolean | undefined;
|
|
38
|
+
closeOnClick?: boolean | undefined;
|
|
39
|
+
closeOnClickOverlay?: boolean | undefined;
|
|
40
|
+
className?: string | undefined;
|
|
41
|
+
overlayContentStyle?: CSSProperties | undefined;
|
|
42
|
+
captureEventP?: boolean | undefined;
|
|
43
|
+
}>, {
|
|
44
|
+
message: string;
|
|
45
|
+
duration: number;
|
|
46
|
+
width: undefined;
|
|
47
|
+
maxWidth: undefined;
|
|
48
|
+
showIcon: boolean;
|
|
49
|
+
icon: undefined;
|
|
50
|
+
showClose: boolean;
|
|
51
|
+
closeOnClick: boolean;
|
|
52
|
+
closeOnClickOverlay: boolean;
|
|
53
|
+
className: string;
|
|
54
|
+
overlayContentStyle: undefined;
|
|
55
|
+
captureEventP: boolean;
|
|
56
|
+
}>>> & {
|
|
57
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
width: string;
|
|
60
|
+
duration: number;
|
|
61
|
+
closeOnClickOverlay: boolean;
|
|
62
|
+
className: string;
|
|
63
|
+
icon: string;
|
|
64
|
+
maxWidth: string;
|
|
65
|
+
message: string;
|
|
66
|
+
showIcon: boolean;
|
|
67
|
+
showClose: boolean;
|
|
68
|
+
closeOnClick: boolean;
|
|
69
|
+
overlayContentStyle: CSSProperties;
|
|
70
|
+
captureEventP: boolean;
|
|
71
|
+
}>;
|
|
72
|
+
export default _default;
|
|
73
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
75
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
+
} : {
|
|
78
|
+
type: import('vue').PropType<T[K]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
83
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
84
|
+
default: D[K];
|
|
85
|
+
} : P[K];
|
|
86
|
+
};
|
|
@@ -1,126 +1,126 @@
|
|
|
1
|
-
import { nextTick, type Ref } from "vue";
|
|
2
|
-
export interface Props {
|
|
3
|
-
containerEl: null | HTMLElement;
|
|
4
|
-
autoHide?: boolean;
|
|
5
|
-
autoHeight?: boolean;
|
|
6
|
-
observeMethod?: "classList" | "style";
|
|
7
|
-
performance?: {
|
|
8
|
-
scrollTop?: Ref<number>;
|
|
9
|
-
};
|
|
10
|
-
maxHeightRatio?: number;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: {
|
|
13
|
-
new (...args: any[]): {
|
|
14
|
-
$: import("vue").ComponentInternalInstance;
|
|
15
|
-
$data: {};
|
|
16
|
-
$props: Partial<{
|
|
17
|
-
maxHeightRatio: number;
|
|
18
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
|
-
maxHeightRatio: number;
|
|
20
|
-
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "maxHeightRatio">;
|
|
21
|
-
$attrs: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
$refs: {
|
|
25
|
-
[x: string]: unknown;
|
|
26
|
-
};
|
|
27
|
-
$slots: Readonly<{
|
|
28
|
-
[name: string]: import("vue").Slot | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
31
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
32
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
33
|
-
$el: any;
|
|
34
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
35
|
-
maxHeightRatio: number;
|
|
36
|
-
}>>>, {
|
|
37
|
-
uScrollBarReturn: {
|
|
38
|
-
isScrollEnd: Ref<boolean>;
|
|
39
|
-
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
40
|
-
offsetTop: Ref<number>;
|
|
41
|
-
scrollTop: Ref<number>;
|
|
42
|
-
scrollable: import("vue").ComputedRef<boolean>;
|
|
43
|
-
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
44
|
-
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
45
|
-
init: () => void;
|
|
46
|
-
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
47
|
-
heightRatio: import("vue").ComputedRef<number>;
|
|
48
|
-
};
|
|
49
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
50
|
-
maxHeightRatio: number;
|
|
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 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<Props>, {
|
|
72
|
-
maxHeightRatio: number;
|
|
73
|
-
}>>> & import("vue").ShallowUnwrapRef<{
|
|
74
|
-
uScrollBarReturn: {
|
|
75
|
-
isScrollEnd: Ref<boolean>;
|
|
76
|
-
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
77
|
-
offsetTop: Ref<number>;
|
|
78
|
-
scrollTop: Ref<number>;
|
|
79
|
-
scrollable: import("vue").ComputedRef<boolean>;
|
|
80
|
-
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
81
|
-
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
82
|
-
init: () => void;
|
|
83
|
-
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
84
|
-
heightRatio: import("vue").ComputedRef<number>;
|
|
85
|
-
};
|
|
86
|
-
}> & {} & import("vue").ComponentCustomProperties;
|
|
87
|
-
__isFragment?: undefined;
|
|
88
|
-
__isTeleport?: undefined;
|
|
89
|
-
__isSuspense?: undefined;
|
|
90
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
91
|
-
maxHeightRatio: number;
|
|
92
|
-
}>>>, {
|
|
93
|
-
uScrollBarReturn: {
|
|
94
|
-
isScrollEnd: Ref<boolean>;
|
|
95
|
-
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
96
|
-
offsetTop: Ref<number>;
|
|
97
|
-
scrollTop: Ref<number>;
|
|
98
|
-
scrollable: import("vue").ComputedRef<boolean>;
|
|
99
|
-
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
100
|
-
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
101
|
-
init: () => void;
|
|
102
|
-
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
103
|
-
heightRatio: import("vue").ComputedRef<number>;
|
|
104
|
-
};
|
|
105
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
106
|
-
maxHeightRatio: number;
|
|
107
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
108
|
-
$slots: {
|
|
109
|
-
default: (_: {}) => any;
|
|
110
|
-
};
|
|
111
|
-
});
|
|
112
|
-
export default _default;
|
|
113
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
114
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
115
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
116
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
117
|
-
} : {
|
|
118
|
-
type: import('vue').PropType<T[K]>;
|
|
119
|
-
required: true;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
123
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
124
|
-
default: D[K];
|
|
125
|
-
} : P[K];
|
|
126
|
-
};
|
|
1
|
+
import { nextTick, type Ref } from "vue";
|
|
2
|
+
export interface Props {
|
|
3
|
+
containerEl: null | HTMLElement;
|
|
4
|
+
autoHide?: boolean;
|
|
5
|
+
autoHeight?: boolean;
|
|
6
|
+
observeMethod?: "classList" | "style";
|
|
7
|
+
performance?: {
|
|
8
|
+
scrollTop?: Ref<number>;
|
|
9
|
+
};
|
|
10
|
+
maxHeightRatio?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: {
|
|
13
|
+
new (...args: any[]): {
|
|
14
|
+
$: import("vue").ComponentInternalInstance;
|
|
15
|
+
$data: {};
|
|
16
|
+
$props: Partial<{
|
|
17
|
+
maxHeightRatio: number;
|
|
18
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
|
+
maxHeightRatio: number;
|
|
20
|
+
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "maxHeightRatio">;
|
|
21
|
+
$attrs: {
|
|
22
|
+
[x: string]: unknown;
|
|
23
|
+
};
|
|
24
|
+
$refs: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
$slots: Readonly<{
|
|
28
|
+
[name: string]: import("vue").Slot | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
31
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
|
|
32
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
33
|
+
$el: any;
|
|
34
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
35
|
+
maxHeightRatio: number;
|
|
36
|
+
}>>>, {
|
|
37
|
+
uScrollBarReturn: {
|
|
38
|
+
isScrollEnd: Ref<boolean>;
|
|
39
|
+
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
40
|
+
offsetTop: Ref<number>;
|
|
41
|
+
scrollTop: Ref<number>;
|
|
42
|
+
scrollable: import("vue").ComputedRef<boolean>;
|
|
43
|
+
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
44
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
45
|
+
init: () => void;
|
|
46
|
+
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
47
|
+
heightRatio: import("vue").ComputedRef<number>;
|
|
48
|
+
};
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
50
|
+
maxHeightRatio: number;
|
|
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 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<Props>, {
|
|
72
|
+
maxHeightRatio: number;
|
|
73
|
+
}>>> & import("vue").ShallowUnwrapRef<{
|
|
74
|
+
uScrollBarReturn: {
|
|
75
|
+
isScrollEnd: Ref<boolean>;
|
|
76
|
+
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
77
|
+
offsetTop: Ref<number>;
|
|
78
|
+
scrollTop: Ref<number>;
|
|
79
|
+
scrollable: import("vue").ComputedRef<boolean>;
|
|
80
|
+
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
81
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
82
|
+
init: () => void;
|
|
83
|
+
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
84
|
+
heightRatio: import("vue").ComputedRef<number>;
|
|
85
|
+
};
|
|
86
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
87
|
+
__isFragment?: undefined;
|
|
88
|
+
__isTeleport?: undefined;
|
|
89
|
+
__isSuspense?: undefined;
|
|
90
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
91
|
+
maxHeightRatio: number;
|
|
92
|
+
}>>>, {
|
|
93
|
+
uScrollBarReturn: {
|
|
94
|
+
isScrollEnd: Ref<boolean>;
|
|
95
|
+
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
96
|
+
offsetTop: Ref<number>;
|
|
97
|
+
scrollTop: Ref<number>;
|
|
98
|
+
scrollable: import("vue").ComputedRef<boolean>;
|
|
99
|
+
sliderPos: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
100
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
101
|
+
init: () => void;
|
|
102
|
+
modifySliderEventListener: (action: "remove" | "add") => void;
|
|
103
|
+
heightRatio: import("vue").ComputedRef<number>;
|
|
104
|
+
};
|
|
105
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
106
|
+
maxHeightRatio: number;
|
|
107
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
108
|
+
$slots: {
|
|
109
|
+
default: (_: {}) => any;
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
export default _default;
|
|
113
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
114
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
115
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
116
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
117
|
+
} : {
|
|
118
|
+
type: import('vue').PropType<T[K]>;
|
|
119
|
+
required: true;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
123
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
124
|
+
default: D[K];
|
|
125
|
+
} : P[K];
|
|
126
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ScrollBar from "./ScrollBar.vue";
|
|
2
|
-
export default ScrollBar;
|
|
1
|
+
import ScrollBar from "./ScrollBar.vue";
|
|
2
|
+
export default ScrollBar;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { type CSSProperties } from "vue";
|
|
2
|
-
import type { ScrollBarOptions } from "./type";
|
|
3
|
-
export declare function useScrollBar(options: ScrollBarOptions): {
|
|
4
|
-
isScrollEnd: import("vue").Ref<boolean>;
|
|
5
|
-
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
6
|
-
offsetTop: import("vue").Ref<number>;
|
|
7
|
-
scrollTop: import("vue").Ref<number>;
|
|
8
|
-
scrollable: import("vue").ComputedRef<boolean>;
|
|
9
|
-
sliderPos: import("vue").ComputedRef<CSSProperties>;
|
|
10
|
-
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
11
|
-
init: () => void;
|
|
12
|
-
modifySliderEventListener: (action: "add" | "remove") => void;
|
|
13
|
-
heightRatio: import("vue").ComputedRef<number>;
|
|
14
|
-
};
|
|
1
|
+
import { type CSSProperties } from "vue";
|
|
2
|
+
import type { ScrollBarOptions } from "./type";
|
|
3
|
+
export declare function useScrollBar(options: ScrollBarOptions): {
|
|
4
|
+
isScrollEnd: import("vue").Ref<boolean>;
|
|
5
|
+
isDragSlider: import("vue").ComputedRef<boolean>;
|
|
6
|
+
offsetTop: import("vue").Ref<number>;
|
|
7
|
+
scrollTop: import("vue").Ref<number>;
|
|
8
|
+
scrollable: import("vue").ComputedRef<boolean>;
|
|
9
|
+
sliderPos: import("vue").ComputedRef<CSSProperties>;
|
|
10
|
+
sliderRollableHeight: import("vue").ComputedRef<number>;
|
|
11
|
+
init: () => void;
|
|
12
|
+
modifySliderEventListener: (action: "add" | "remove") => void;
|
|
13
|
+
heightRatio: import("vue").ComputedRef<number>;
|
|
14
|
+
};
|