@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,213 +1,213 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): {
|
|
3
|
-
$: import("vue").ComponentInternalInstance;
|
|
4
|
-
$data: {};
|
|
5
|
-
$props: Partial<{
|
|
6
|
-
refreshOff: boolean;
|
|
7
|
-
overscan: number;
|
|
8
|
-
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
data: any[];
|
|
10
|
-
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
11
|
-
itemHeight: (d: any) => number;
|
|
12
|
-
overscan?: number | undefined;
|
|
13
|
-
refresh?: Function | undefined;
|
|
14
|
-
refreshOff?: boolean | undefined;
|
|
15
|
-
}>, {
|
|
16
|
-
refreshOff: boolean;
|
|
17
|
-
overscan: number;
|
|
18
|
-
}>>> & {
|
|
19
|
-
onScrollEnd?: (() => any) | undefined;
|
|
20
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "refreshOff" | "overscan">;
|
|
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: "scrollEnd") => void;
|
|
33
|
-
$el: any;
|
|
34
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
-
data: any[];
|
|
36
|
-
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
37
|
-
itemHeight: (d: any) => number;
|
|
38
|
-
overscan?: number | undefined;
|
|
39
|
-
refresh?: Function | undefined;
|
|
40
|
-
refreshOff?: boolean | undefined;
|
|
41
|
-
}>, {
|
|
42
|
-
refreshOff: boolean;
|
|
43
|
-
overscan: number;
|
|
44
|
-
}>>> & {
|
|
45
|
-
onScrollEnd?: (() => any) | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
vListReturn: {
|
|
48
|
-
list: import("vue").Ref<import("./index").UseVirtualListItem<any>[]>;
|
|
49
|
-
visiableList: import("vue").ComputedRef<import("./index").UseVirtualListItem<any>[]>;
|
|
50
|
-
getItemHeightData: (index: number) => {
|
|
51
|
-
height: number;
|
|
52
|
-
sum: number;
|
|
53
|
-
};
|
|
54
|
-
getoffsetTopIndex: (scrollTop: number) => number;
|
|
55
|
-
totalHeight: import("vue").ComputedRef<number>;
|
|
56
|
-
clientHeight: import("vue").Ref<number>;
|
|
57
|
-
scrollTo: (index: number, behavior?: "unset" | "smooth") => void;
|
|
58
|
-
scrollTop: import("vue").Ref<number>;
|
|
59
|
-
isScrollEnd: import("vue").Ref<boolean>;
|
|
60
|
-
containerProps: {
|
|
61
|
-
ref: import("vue").Ref<HTMLElement | null>;
|
|
62
|
-
onScroll: () => void;
|
|
63
|
-
style: import("vue").CSSProperties;
|
|
64
|
-
};
|
|
65
|
-
wrapperProps: import("vue").ComputedRef<{
|
|
66
|
-
style: import("vue").CSSProperties;
|
|
67
|
-
}>;
|
|
68
|
-
innerProps: import("vue").ComputedRef<{
|
|
69
|
-
style: {
|
|
70
|
-
transform: string;
|
|
71
|
-
"will-change": string;
|
|
72
|
-
};
|
|
73
|
-
}>;
|
|
74
|
-
};
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
76
|
-
scrollEnd: () => void;
|
|
77
|
-
}, string, {
|
|
78
|
-
refreshOff: boolean;
|
|
79
|
-
overscan: number;
|
|
80
|
-
}> & {
|
|
81
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
94
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
95
|
-
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;
|
|
96
|
-
};
|
|
97
|
-
$forceUpdate: () => void;
|
|
98
|
-
$nextTick: typeof import("vue").nextTick;
|
|
99
|
-
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
100
|
-
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
101
|
-
data: any[];
|
|
102
|
-
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
103
|
-
itemHeight: (d: any) => number;
|
|
104
|
-
overscan?: number | undefined;
|
|
105
|
-
refresh?: Function | undefined;
|
|
106
|
-
refreshOff?: boolean | undefined;
|
|
107
|
-
}>, {
|
|
108
|
-
refreshOff: boolean;
|
|
109
|
-
overscan: number;
|
|
110
|
-
}>>> & {
|
|
111
|
-
onScrollEnd?: (() => any) | undefined;
|
|
112
|
-
} & import("vue").ShallowUnwrapRef<{
|
|
113
|
-
vListReturn: {
|
|
114
|
-
list: import("vue").Ref<import("./index").UseVirtualListItem<any>[]>;
|
|
115
|
-
visiableList: import("vue").ComputedRef<import("./index").UseVirtualListItem<any>[]>;
|
|
116
|
-
getItemHeightData: (index: number) => {
|
|
117
|
-
height: number;
|
|
118
|
-
sum: number;
|
|
119
|
-
};
|
|
120
|
-
getoffsetTopIndex: (scrollTop: number) => number;
|
|
121
|
-
totalHeight: import("vue").ComputedRef<number>;
|
|
122
|
-
clientHeight: import("vue").Ref<number>;
|
|
123
|
-
scrollTo: (index: number, behavior?: "unset" | "smooth") => void;
|
|
124
|
-
scrollTop: import("vue").Ref<number>;
|
|
125
|
-
isScrollEnd: import("vue").Ref<boolean>;
|
|
126
|
-
containerProps: {
|
|
127
|
-
ref: import("vue").Ref<HTMLElement | null>;
|
|
128
|
-
onScroll: () => void;
|
|
129
|
-
style: import("vue").CSSProperties;
|
|
130
|
-
};
|
|
131
|
-
wrapperProps: import("vue").ComputedRef<{
|
|
132
|
-
style: import("vue").CSSProperties;
|
|
133
|
-
}>;
|
|
134
|
-
innerProps: import("vue").ComputedRef<{
|
|
135
|
-
style: {
|
|
136
|
-
transform: string;
|
|
137
|
-
"will-change": string;
|
|
138
|
-
};
|
|
139
|
-
}>;
|
|
140
|
-
};
|
|
141
|
-
}> & {} & import("vue").ComponentCustomProperties;
|
|
142
|
-
__isFragment?: undefined;
|
|
143
|
-
__isTeleport?: undefined;
|
|
144
|
-
__isSuspense?: undefined;
|
|
145
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
146
|
-
data: any[];
|
|
147
|
-
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
148
|
-
itemHeight: (d: any) => number;
|
|
149
|
-
overscan?: number | undefined;
|
|
150
|
-
refresh?: Function | undefined;
|
|
151
|
-
refreshOff?: boolean | undefined;
|
|
152
|
-
}>, {
|
|
153
|
-
refreshOff: boolean;
|
|
154
|
-
overscan: number;
|
|
155
|
-
}>>> & {
|
|
156
|
-
onScrollEnd?: (() => any) | undefined;
|
|
157
|
-
}, {
|
|
158
|
-
vListReturn: {
|
|
159
|
-
list: import("vue").Ref<import("./index").UseVirtualListItem<any>[]>;
|
|
160
|
-
visiableList: import("vue").ComputedRef<import("./index").UseVirtualListItem<any>[]>;
|
|
161
|
-
getItemHeightData: (index: number) => {
|
|
162
|
-
height: number;
|
|
163
|
-
sum: number;
|
|
164
|
-
};
|
|
165
|
-
getoffsetTopIndex: (scrollTop: number) => number;
|
|
166
|
-
totalHeight: import("vue").ComputedRef<number>;
|
|
167
|
-
clientHeight: import("vue").Ref<number>;
|
|
168
|
-
scrollTo: (index: number, behavior?: "unset" | "smooth") => void;
|
|
169
|
-
scrollTop: import("vue").Ref<number>;
|
|
170
|
-
isScrollEnd: import("vue").Ref<boolean>;
|
|
171
|
-
containerProps: {
|
|
172
|
-
ref: import("vue").Ref<HTMLElement | null>;
|
|
173
|
-
onScroll: () => void;
|
|
174
|
-
style: import("vue").CSSProperties;
|
|
175
|
-
};
|
|
176
|
-
wrapperProps: import("vue").ComputedRef<{
|
|
177
|
-
style: import("vue").CSSProperties;
|
|
178
|
-
}>;
|
|
179
|
-
innerProps: import("vue").ComputedRef<{
|
|
180
|
-
style: {
|
|
181
|
-
transform: string;
|
|
182
|
-
"will-change": string;
|
|
183
|
-
};
|
|
184
|
-
}>;
|
|
185
|
-
};
|
|
186
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
187
|
-
scrollEnd: () => void;
|
|
188
|
-
}, string, {
|
|
189
|
-
refreshOff: boolean;
|
|
190
|
-
overscan: number;
|
|
191
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
192
|
-
$slots: {
|
|
193
|
-
default: (_: {
|
|
194
|
-
data: any;
|
|
195
|
-
index: number;
|
|
196
|
-
}) => any;
|
|
197
|
-
};
|
|
198
|
-
});
|
|
199
|
-
export default _default;
|
|
200
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
201
|
-
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
202
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
203
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
204
|
-
} : {
|
|
205
|
-
type: import('vue').PropType<T[K]>;
|
|
206
|
-
required: true;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
210
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
211
|
-
default: D[K];
|
|
212
|
-
} : P[K];
|
|
213
|
-
};
|
|
1
|
+
declare const _default: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
refreshOff: boolean;
|
|
7
|
+
overscan: number;
|
|
8
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
data: any[];
|
|
10
|
+
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
11
|
+
itemHeight: (d: any) => number;
|
|
12
|
+
overscan?: number | undefined;
|
|
13
|
+
refresh?: Function | undefined;
|
|
14
|
+
refreshOff?: boolean | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
refreshOff: boolean;
|
|
17
|
+
overscan: number;
|
|
18
|
+
}>>> & {
|
|
19
|
+
onScrollEnd?: (() => any) | undefined;
|
|
20
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "refreshOff" | "overscan">;
|
|
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: "scrollEnd") => void;
|
|
33
|
+
$el: any;
|
|
34
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
35
|
+
data: any[];
|
|
36
|
+
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
37
|
+
itemHeight: (d: any) => number;
|
|
38
|
+
overscan?: number | undefined;
|
|
39
|
+
refresh?: Function | undefined;
|
|
40
|
+
refreshOff?: boolean | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
refreshOff: boolean;
|
|
43
|
+
overscan: number;
|
|
44
|
+
}>>> & {
|
|
45
|
+
onScrollEnd?: (() => any) | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
vListReturn: {
|
|
48
|
+
list: import("vue").Ref<import("./index").UseVirtualListItem<any>[]>;
|
|
49
|
+
visiableList: import("vue").ComputedRef<import("./index").UseVirtualListItem<any>[]>;
|
|
50
|
+
getItemHeightData: (index: number) => {
|
|
51
|
+
height: number;
|
|
52
|
+
sum: number;
|
|
53
|
+
};
|
|
54
|
+
getoffsetTopIndex: (scrollTop: number) => number;
|
|
55
|
+
totalHeight: import("vue").ComputedRef<number>;
|
|
56
|
+
clientHeight: import("vue").Ref<number>;
|
|
57
|
+
scrollTo: (index: number, behavior?: "unset" | "smooth") => void;
|
|
58
|
+
scrollTop: import("vue").Ref<number>;
|
|
59
|
+
isScrollEnd: import("vue").Ref<boolean>;
|
|
60
|
+
containerProps: {
|
|
61
|
+
ref: import("vue").Ref<HTMLElement | null>;
|
|
62
|
+
onScroll: () => void;
|
|
63
|
+
style: import("vue").CSSProperties;
|
|
64
|
+
};
|
|
65
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
66
|
+
style: import("vue").CSSProperties;
|
|
67
|
+
}>;
|
|
68
|
+
innerProps: import("vue").ComputedRef<{
|
|
69
|
+
style: {
|
|
70
|
+
transform: string;
|
|
71
|
+
"will-change": string;
|
|
72
|
+
};
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
76
|
+
scrollEnd: () => void;
|
|
77
|
+
}, string, {
|
|
78
|
+
refreshOff: boolean;
|
|
79
|
+
overscan: number;
|
|
80
|
+
}> & {
|
|
81
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
83
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
84
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
85
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
86
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
87
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
88
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
89
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
90
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
91
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
92
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
93
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
94
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
95
|
+
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;
|
|
96
|
+
};
|
|
97
|
+
$forceUpdate: () => void;
|
|
98
|
+
$nextTick: typeof import("vue").nextTick;
|
|
99
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
100
|
+
} & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
101
|
+
data: any[];
|
|
102
|
+
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
103
|
+
itemHeight: (d: any) => number;
|
|
104
|
+
overscan?: number | undefined;
|
|
105
|
+
refresh?: Function | undefined;
|
|
106
|
+
refreshOff?: boolean | undefined;
|
|
107
|
+
}>, {
|
|
108
|
+
refreshOff: boolean;
|
|
109
|
+
overscan: number;
|
|
110
|
+
}>>> & {
|
|
111
|
+
onScrollEnd?: (() => any) | undefined;
|
|
112
|
+
} & import("vue").ShallowUnwrapRef<{
|
|
113
|
+
vListReturn: {
|
|
114
|
+
list: import("vue").Ref<import("./index").UseVirtualListItem<any>[]>;
|
|
115
|
+
visiableList: import("vue").ComputedRef<import("./index").UseVirtualListItem<any>[]>;
|
|
116
|
+
getItemHeightData: (index: number) => {
|
|
117
|
+
height: number;
|
|
118
|
+
sum: number;
|
|
119
|
+
};
|
|
120
|
+
getoffsetTopIndex: (scrollTop: number) => number;
|
|
121
|
+
totalHeight: import("vue").ComputedRef<number>;
|
|
122
|
+
clientHeight: import("vue").Ref<number>;
|
|
123
|
+
scrollTo: (index: number, behavior?: "unset" | "smooth") => void;
|
|
124
|
+
scrollTop: import("vue").Ref<number>;
|
|
125
|
+
isScrollEnd: import("vue").Ref<boolean>;
|
|
126
|
+
containerProps: {
|
|
127
|
+
ref: import("vue").Ref<HTMLElement | null>;
|
|
128
|
+
onScroll: () => void;
|
|
129
|
+
style: import("vue").CSSProperties;
|
|
130
|
+
};
|
|
131
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
132
|
+
style: import("vue").CSSProperties;
|
|
133
|
+
}>;
|
|
134
|
+
innerProps: import("vue").ComputedRef<{
|
|
135
|
+
style: {
|
|
136
|
+
transform: string;
|
|
137
|
+
"will-change": string;
|
|
138
|
+
};
|
|
139
|
+
}>;
|
|
140
|
+
};
|
|
141
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
142
|
+
__isFragment?: undefined;
|
|
143
|
+
__isTeleport?: undefined;
|
|
144
|
+
__isSuspense?: undefined;
|
|
145
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
146
|
+
data: any[];
|
|
147
|
+
getItemKey?: ((d: any, index: number) => string) | undefined;
|
|
148
|
+
itemHeight: (d: any) => number;
|
|
149
|
+
overscan?: number | undefined;
|
|
150
|
+
refresh?: Function | undefined;
|
|
151
|
+
refreshOff?: boolean | undefined;
|
|
152
|
+
}>, {
|
|
153
|
+
refreshOff: boolean;
|
|
154
|
+
overscan: number;
|
|
155
|
+
}>>> & {
|
|
156
|
+
onScrollEnd?: (() => any) | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
vListReturn: {
|
|
159
|
+
list: import("vue").Ref<import("./index").UseVirtualListItem<any>[]>;
|
|
160
|
+
visiableList: import("vue").ComputedRef<import("./index").UseVirtualListItem<any>[]>;
|
|
161
|
+
getItemHeightData: (index: number) => {
|
|
162
|
+
height: number;
|
|
163
|
+
sum: number;
|
|
164
|
+
};
|
|
165
|
+
getoffsetTopIndex: (scrollTop: number) => number;
|
|
166
|
+
totalHeight: import("vue").ComputedRef<number>;
|
|
167
|
+
clientHeight: import("vue").Ref<number>;
|
|
168
|
+
scrollTo: (index: number, behavior?: "unset" | "smooth") => void;
|
|
169
|
+
scrollTop: import("vue").Ref<number>;
|
|
170
|
+
isScrollEnd: import("vue").Ref<boolean>;
|
|
171
|
+
containerProps: {
|
|
172
|
+
ref: import("vue").Ref<HTMLElement | null>;
|
|
173
|
+
onScroll: () => void;
|
|
174
|
+
style: import("vue").CSSProperties;
|
|
175
|
+
};
|
|
176
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
177
|
+
style: import("vue").CSSProperties;
|
|
178
|
+
}>;
|
|
179
|
+
innerProps: import("vue").ComputedRef<{
|
|
180
|
+
style: {
|
|
181
|
+
transform: string;
|
|
182
|
+
"will-change": string;
|
|
183
|
+
};
|
|
184
|
+
}>;
|
|
185
|
+
};
|
|
186
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
187
|
+
scrollEnd: () => void;
|
|
188
|
+
}, string, {
|
|
189
|
+
refreshOff: boolean;
|
|
190
|
+
overscan: number;
|
|
191
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
192
|
+
$slots: {
|
|
193
|
+
default: (_: {
|
|
194
|
+
data: any;
|
|
195
|
+
index: number;
|
|
196
|
+
}) => any;
|
|
197
|
+
};
|
|
198
|
+
});
|
|
199
|
+
export default _default;
|
|
200
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
201
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
202
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
203
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
204
|
+
} : {
|
|
205
|
+
type: import('vue').PropType<T[K]>;
|
|
206
|
+
required: true;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
210
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
211
|
+
default: D[K];
|
|
212
|
+
} : P[K];
|
|
213
|
+
};
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import type { CSSProperties, Ref } from "vue";
|
|
2
|
-
export interface UseVirtualListOptions {
|
|
3
|
-
/**
|
|
4
|
-
* item height, accept a pixel value or a function that returns the height
|
|
5
|
-
*
|
|
6
|
-
* @default 0
|
|
7
|
-
*/
|
|
8
|
-
itemHeight: number | ((index: number) => number);
|
|
9
|
-
/**
|
|
10
|
-
* the extra buffer items outside of the view area
|
|
11
|
-
*
|
|
12
|
-
* @default 5
|
|
13
|
-
*/
|
|
14
|
-
overscan?: number;
|
|
15
|
-
scrollEndHook?: Function;
|
|
16
|
-
}
|
|
17
|
-
export interface UseVirtualListItem<T> {
|
|
18
|
-
data: T;
|
|
19
|
-
index: number;
|
|
20
|
-
}
|
|
21
|
-
export declare function useVirtualList<T = any>(list: Ref<T[]>, options: UseVirtualListOptions): {
|
|
22
|
-
list: Ref<UseVirtualListItem<T>[]>;
|
|
23
|
-
visiableList: import("vue").ComputedRef<UseVirtualListItem<T>[]>;
|
|
24
|
-
getItemHeightData: (index: number) => {
|
|
25
|
-
height: number;
|
|
26
|
-
sum: number;
|
|
27
|
-
};
|
|
28
|
-
getoffsetTopIndex: (scrollTop: number) => number;
|
|
29
|
-
totalHeight: import("vue").ComputedRef<number>;
|
|
30
|
-
clientHeight: Ref<number>;
|
|
31
|
-
scrollTo: (index: number, behavior?: "smooth" | "unset") => void;
|
|
32
|
-
scrollTop: Ref<number>;
|
|
33
|
-
isScrollEnd: Ref<boolean>;
|
|
34
|
-
containerProps: {
|
|
35
|
-
ref: Ref<HTMLElement | null>;
|
|
36
|
-
onScroll: () => void;
|
|
37
|
-
style: CSSProperties;
|
|
38
|
-
};
|
|
39
|
-
wrapperProps: import("vue").ComputedRef<{
|
|
40
|
-
style: CSSProperties;
|
|
41
|
-
}>;
|
|
42
|
-
innerProps: import("vue").ComputedRef<{
|
|
43
|
-
style: {
|
|
44
|
-
transform: string;
|
|
45
|
-
"will-change": string;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
48
|
-
};
|
|
49
|
-
export declare type UseVirtualListReturn = ReturnType<typeof useVirtualList>;
|
|
1
|
+
import type { CSSProperties, Ref } from "vue";
|
|
2
|
+
export interface UseVirtualListOptions {
|
|
3
|
+
/**
|
|
4
|
+
* item height, accept a pixel value or a function that returns the height
|
|
5
|
+
*
|
|
6
|
+
* @default 0
|
|
7
|
+
*/
|
|
8
|
+
itemHeight: number | ((index: number) => number);
|
|
9
|
+
/**
|
|
10
|
+
* the extra buffer items outside of the view area
|
|
11
|
+
*
|
|
12
|
+
* @default 5
|
|
13
|
+
*/
|
|
14
|
+
overscan?: number;
|
|
15
|
+
scrollEndHook?: Function;
|
|
16
|
+
}
|
|
17
|
+
export interface UseVirtualListItem<T> {
|
|
18
|
+
data: T;
|
|
19
|
+
index: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function useVirtualList<T = any>(list: Ref<T[]>, options: UseVirtualListOptions): {
|
|
22
|
+
list: Ref<UseVirtualListItem<T>[]>;
|
|
23
|
+
visiableList: import("vue").ComputedRef<UseVirtualListItem<T>[]>;
|
|
24
|
+
getItemHeightData: (index: number) => {
|
|
25
|
+
height: number;
|
|
26
|
+
sum: number;
|
|
27
|
+
};
|
|
28
|
+
getoffsetTopIndex: (scrollTop: number) => number;
|
|
29
|
+
totalHeight: import("vue").ComputedRef<number>;
|
|
30
|
+
clientHeight: Ref<number>;
|
|
31
|
+
scrollTo: (index: number, behavior?: "smooth" | "unset") => void;
|
|
32
|
+
scrollTop: Ref<number>;
|
|
33
|
+
isScrollEnd: Ref<boolean>;
|
|
34
|
+
containerProps: {
|
|
35
|
+
ref: Ref<HTMLElement | null>;
|
|
36
|
+
onScroll: () => void;
|
|
37
|
+
style: CSSProperties;
|
|
38
|
+
};
|
|
39
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
40
|
+
style: CSSProperties;
|
|
41
|
+
}>;
|
|
42
|
+
innerProps: import("vue").ComputedRef<{
|
|
43
|
+
style: {
|
|
44
|
+
transform: string;
|
|
45
|
+
"will-change": string;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
};
|
|
49
|
+
export declare type UseVirtualListReturn = ReturnType<typeof useVirtualList>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function sleep(duration: number): Promise<unknown>;
|
|
1
|
+
export declare function sleep(duration: number): Promise<unknown>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
declare type Direction = "" | "vertical" | "horizontal";
|
|
2
|
-
export declare function useTouch(): {
|
|
3
|
-
move: (clientX: number, clientY: number) => void;
|
|
4
|
-
start: (clientX: number, clientY: number) => void;
|
|
5
|
-
reset: () => void;
|
|
6
|
-
startX: import("vue").Ref<number>;
|
|
7
|
-
startY: import("vue").Ref<number>;
|
|
8
|
-
deltaX: import("vue").Ref<number>;
|
|
9
|
-
deltaY: import("vue").Ref<number>;
|
|
10
|
-
offsetX: import("vue").Ref<number>;
|
|
11
|
-
offsetY: import("vue").Ref<number>;
|
|
12
|
-
direction: import("vue").Ref<Direction>;
|
|
13
|
-
isVertical: () => boolean;
|
|
14
|
-
isHorizontal: () => boolean;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
1
|
+
declare type Direction = "" | "vertical" | "horizontal";
|
|
2
|
+
export declare function useTouch(): {
|
|
3
|
+
move: (clientX: number, clientY: number) => void;
|
|
4
|
+
start: (clientX: number, clientY: number) => void;
|
|
5
|
+
reset: () => void;
|
|
6
|
+
startX: import("vue").Ref<number>;
|
|
7
|
+
startY: import("vue").Ref<number>;
|
|
8
|
+
deltaX: import("vue").Ref<number>;
|
|
9
|
+
deltaY: import("vue").Ref<number>;
|
|
10
|
+
offsetX: import("vue").Ref<number>;
|
|
11
|
+
offsetY: import("vue").Ref<number>;
|
|
12
|
+
direction: import("vue").Ref<Direction>;
|
|
13
|
+
isVertical: () => boolean;
|
|
14
|
+
isHorizontal: () => boolean;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
package/dist/vite.config.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vite").UserConfigExport;
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: import("vite").UserConfigExport;
|
|
2
|
+
export default _default;
|