@pungfe/element 0.0.1-alpha.4

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.
@@ -0,0 +1,415 @@
1
+ import { ScrollbarProps } from 'element-plus';
2
+ export interface XScrollbarProps extends Partial<ScrollbarProps> {
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {
10
+ scrollbar: ({
11
+ $: import('vue').ComponentInternalInstance;
12
+ $data: {};
13
+ $props: Partial<{
14
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
15
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
16
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
17
+ readonly always: boolean;
18
+ readonly tag: string;
19
+ readonly minSize: number;
20
+ readonly distance: number;
21
+ readonly wrapStyle: import('vue').StyleValue;
22
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
23
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
24
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
25
+ readonly native: boolean;
26
+ readonly noresize: boolean;
27
+ }> & Omit<{
28
+ readonly tag: string;
29
+ readonly distance: number;
30
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
31
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
32
+ readonly native: boolean;
33
+ readonly wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
34
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
35
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
36
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
37
+ readonly noresize: boolean;
38
+ readonly always: boolean;
39
+ readonly minSize: number;
40
+ readonly id?: string | undefined;
41
+ readonly tabindex?: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
42
+ readonly ariaLabel?: string | undefined;
43
+ readonly ariaOrientation?: string | undefined;
44
+ readonly role?: string | undefined;
45
+ onScroll?: ((args_0: {
46
+ scrollTop: number;
47
+ scrollLeft: number;
48
+ }) => any) | undefined | undefined;
49
+ "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
50
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "tag" | "tabindex" | "distance" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "always" | "minSize">;
51
+ $attrs: {
52
+ [x: string]: unknown;
53
+ };
54
+ $refs: {
55
+ [x: string]: unknown;
56
+ };
57
+ $slots: Readonly<{
58
+ [name: string]: import('vue').Slot<any> | undefined;
59
+ }>;
60
+ $root: import('vue').ComponentPublicInstance | null;
61
+ $parent: import('vue').ComponentPublicInstance | null;
62
+ $host: Element | null;
63
+ $emit: ((event: "scroll", args_0: {
64
+ scrollTop: number;
65
+ scrollLeft: number;
66
+ }) => void) & ((event: "end-reached", direction: import('element-plus').ScrollbarDirection) => void);
67
+ $el: any;
68
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
69
+ readonly ariaLabel: StringConstructor;
70
+ readonly ariaOrientation: {
71
+ readonly type: import('vue').PropType<string>;
72
+ readonly required: false;
73
+ readonly validator: ((val: unknown) => boolean) | undefined;
74
+ __epPropKey: true;
75
+ };
76
+ readonly distance: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
77
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
78
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
79
+ readonly native: BooleanConstructor;
80
+ readonly wrapStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | ((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue))[], unknown, unknown, "", boolean>;
81
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
82
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
83
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
84
+ readonly noresize: BooleanConstructor;
85
+ readonly tag: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
86
+ readonly always: BooleanConstructor;
87
+ readonly minSize: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
88
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
89
+ readonly id: StringConstructor;
90
+ readonly role: StringConstructor;
91
+ }>> & {
92
+ onScroll?: ((args_0: {
93
+ scrollTop: number;
94
+ scrollLeft: number;
95
+ }) => any) | undefined;
96
+ "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
97
+ }, {
98
+ wrapRef: import('vue').Ref<HTMLDivElement | undefined>;
99
+ update: () => void;
100
+ scrollTo: {
101
+ (xCord: number, yCord?: number): void;
102
+ (options: ScrollToOptions): void;
103
+ };
104
+ setScrollTop: (value: number) => void;
105
+ setScrollLeft: (value: number) => void;
106
+ handleScroll: () => void;
107
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
108
+ scroll: (args_0: {
109
+ scrollTop: number;
110
+ scrollLeft: number;
111
+ }) => void;
112
+ "end-reached": (direction: import('element-plus').ScrollbarDirection) => void;
113
+ }, string, {
114
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
115
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
116
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
117
+ readonly always: boolean;
118
+ readonly tag: string;
119
+ readonly minSize: number;
120
+ readonly distance: number;
121
+ readonly wrapStyle: import('vue').StyleValue;
122
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
123
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
124
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
125
+ readonly native: boolean;
126
+ readonly noresize: boolean;
127
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
128
+ beforeCreate?: (() => void) | (() => void)[];
129
+ created?: (() => void) | (() => void)[];
130
+ beforeMount?: (() => void) | (() => void)[];
131
+ mounted?: (() => void) | (() => void)[];
132
+ beforeUpdate?: (() => void) | (() => void)[];
133
+ updated?: (() => void) | (() => void)[];
134
+ activated?: (() => void) | (() => void)[];
135
+ deactivated?: (() => void) | (() => void)[];
136
+ beforeDestroy?: (() => void) | (() => void)[];
137
+ beforeUnmount?: (() => void) | (() => void)[];
138
+ destroyed?: (() => void) | (() => void)[];
139
+ unmounted?: (() => void) | (() => void)[];
140
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
141
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
142
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
143
+ };
144
+ $forceUpdate: () => void;
145
+ $nextTick: typeof import('vue').nextTick;
146
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
147
+ } & Readonly<{
148
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
149
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
150
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
151
+ readonly always: boolean;
152
+ readonly tag: string;
153
+ readonly minSize: number;
154
+ readonly distance: number;
155
+ readonly wrapStyle: import('vue').StyleValue;
156
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
157
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
158
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
159
+ readonly native: boolean;
160
+ readonly noresize: boolean;
161
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
162
+ readonly ariaLabel: StringConstructor;
163
+ readonly ariaOrientation: {
164
+ readonly type: import('vue').PropType<string>;
165
+ readonly required: false;
166
+ readonly validator: ((val: unknown) => boolean) | undefined;
167
+ __epPropKey: true;
168
+ };
169
+ readonly distance: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
170
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
171
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
172
+ readonly native: BooleanConstructor;
173
+ readonly wrapStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | ((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue))[], unknown, unknown, "", boolean>;
174
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
175
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
176
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
177
+ readonly noresize: BooleanConstructor;
178
+ readonly tag: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
179
+ readonly always: BooleanConstructor;
180
+ readonly minSize: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
181
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
182
+ readonly id: StringConstructor;
183
+ readonly role: StringConstructor;
184
+ }>> & {
185
+ onScroll?: ((args_0: {
186
+ scrollTop: number;
187
+ scrollLeft: number;
188
+ }) => any) | undefined;
189
+ "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
190
+ }, "tag" | "tabindex" | "distance" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "always" | "minSize" | "wrapRef" | "update" | "scrollTo" | "setScrollTop" | "setScrollLeft" | "handleScroll"> & import('vue').ShallowUnwrapRef<{
191
+ wrapRef: import('vue').Ref<HTMLDivElement | undefined>;
192
+ update: () => void;
193
+ scrollTo: {
194
+ (xCord: number, yCord?: number): void;
195
+ (options: ScrollToOptions): void;
196
+ };
197
+ setScrollTop: (value: number) => void;
198
+ setScrollLeft: (value: number) => void;
199
+ handleScroll: () => void;
200
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
201
+ $slots: {
202
+ default?: (props: {}) => any;
203
+ };
204
+ }) | null;
205
+ };
206
+ rootEl: any;
207
+ };
208
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
209
+ declare const __VLS_component: import('vue').DefineComponent<XScrollbarProps, {
210
+ wrapRef: import('vue').ComputedRef<HTMLDivElement | undefined>;
211
+ viewRef: import('vue').ComputedRef<Element | null | undefined>;
212
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XScrollbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
213
+ scrollbar: ({
214
+ $: import('vue').ComponentInternalInstance;
215
+ $data: {};
216
+ $props: Partial<{
217
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
218
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
219
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
220
+ readonly always: boolean;
221
+ readonly tag: string;
222
+ readonly minSize: number;
223
+ readonly distance: number;
224
+ readonly wrapStyle: import('vue').StyleValue;
225
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
226
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
227
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
228
+ readonly native: boolean;
229
+ readonly noresize: boolean;
230
+ }> & Omit<{
231
+ readonly tag: string;
232
+ readonly distance: number;
233
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
234
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
235
+ readonly native: boolean;
236
+ readonly wrapStyle: string | false | import('vue').CSSProperties | import('vue').StyleValue[] | null;
237
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
238
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
239
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
240
+ readonly noresize: boolean;
241
+ readonly always: boolean;
242
+ readonly minSize: number;
243
+ readonly id?: string | undefined;
244
+ readonly tabindex?: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
245
+ readonly ariaLabel?: string | undefined;
246
+ readonly ariaOrientation?: string | undefined;
247
+ readonly role?: string | undefined;
248
+ onScroll?: ((args_0: {
249
+ scrollTop: number;
250
+ scrollLeft: number;
251
+ }) => any) | undefined | undefined;
252
+ "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined | undefined;
253
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "tag" | "tabindex" | "distance" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "always" | "minSize">;
254
+ $attrs: {
255
+ [x: string]: unknown;
256
+ };
257
+ $refs: {
258
+ [x: string]: unknown;
259
+ };
260
+ $slots: Readonly<{
261
+ [name: string]: import('vue').Slot<any> | undefined;
262
+ }>;
263
+ $root: import('vue').ComponentPublicInstance | null;
264
+ $parent: import('vue').ComponentPublicInstance | null;
265
+ $host: Element | null;
266
+ $emit: ((event: "scroll", args_0: {
267
+ scrollTop: number;
268
+ scrollLeft: number;
269
+ }) => void) & ((event: "end-reached", direction: import('element-plus').ScrollbarDirection) => void);
270
+ $el: any;
271
+ $options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
272
+ readonly ariaLabel: StringConstructor;
273
+ readonly ariaOrientation: {
274
+ readonly type: import('vue').PropType<string>;
275
+ readonly required: false;
276
+ readonly validator: ((val: unknown) => boolean) | undefined;
277
+ __epPropKey: true;
278
+ };
279
+ readonly distance: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
280
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
281
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
282
+ readonly native: BooleanConstructor;
283
+ readonly wrapStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | ((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue))[], unknown, unknown, "", boolean>;
284
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
285
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
286
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
287
+ readonly noresize: BooleanConstructor;
288
+ readonly tag: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
289
+ readonly always: BooleanConstructor;
290
+ readonly minSize: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
291
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
292
+ readonly id: StringConstructor;
293
+ readonly role: StringConstructor;
294
+ }>> & {
295
+ onScroll?: ((args_0: {
296
+ scrollTop: number;
297
+ scrollLeft: number;
298
+ }) => any) | undefined;
299
+ "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
300
+ }, {
301
+ wrapRef: import('vue').Ref<HTMLDivElement | undefined>;
302
+ update: () => void;
303
+ scrollTo: {
304
+ (xCord: number, yCord?: number): void;
305
+ (options: ScrollToOptions): void;
306
+ };
307
+ setScrollTop: (value: number) => void;
308
+ setScrollLeft: (value: number) => void;
309
+ handleScroll: () => void;
310
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
311
+ scroll: (args_0: {
312
+ scrollTop: number;
313
+ scrollLeft: number;
314
+ }) => void;
315
+ "end-reached": (direction: import('element-plus').ScrollbarDirection) => void;
316
+ }, string, {
317
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
318
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
319
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
320
+ readonly always: boolean;
321
+ readonly tag: string;
322
+ readonly minSize: number;
323
+ readonly distance: number;
324
+ readonly wrapStyle: import('vue').StyleValue;
325
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
326
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
327
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
328
+ readonly native: boolean;
329
+ readonly noresize: boolean;
330
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
331
+ beforeCreate?: (() => void) | (() => void)[];
332
+ created?: (() => void) | (() => void)[];
333
+ beforeMount?: (() => void) | (() => void)[];
334
+ mounted?: (() => void) | (() => void)[];
335
+ beforeUpdate?: (() => void) | (() => void)[];
336
+ updated?: (() => void) | (() => void)[];
337
+ activated?: (() => void) | (() => void)[];
338
+ deactivated?: (() => void) | (() => void)[];
339
+ beforeDestroy?: (() => void) | (() => void)[];
340
+ beforeUnmount?: (() => void) | (() => void)[];
341
+ destroyed?: (() => void) | (() => void)[];
342
+ unmounted?: (() => void) | (() => void)[];
343
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
344
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
345
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
346
+ };
347
+ $forceUpdate: () => void;
348
+ $nextTick: typeof import('vue').nextTick;
349
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
350
+ } & Readonly<{
351
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
352
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
353
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
354
+ readonly always: boolean;
355
+ readonly tag: string;
356
+ readonly minSize: number;
357
+ readonly distance: number;
358
+ readonly wrapStyle: import('vue').StyleValue;
359
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
360
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
361
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
362
+ readonly native: boolean;
363
+ readonly noresize: boolean;
364
+ }> & Omit<Readonly<import('vue').ExtractPropTypes<{
365
+ readonly ariaLabel: StringConstructor;
366
+ readonly ariaOrientation: {
367
+ readonly type: import('vue').PropType<string>;
368
+ readonly required: false;
369
+ readonly validator: ((val: unknown) => boolean) | undefined;
370
+ __epPropKey: true;
371
+ };
372
+ readonly distance: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
373
+ readonly height: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
374
+ readonly maxHeight: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
375
+ readonly native: BooleanConstructor;
376
+ readonly wrapStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue) | ((new (...args: any[]) => string | false | import('vue').CSSProperties | import('vue').StyleValue[]) | (() => import('vue').StyleValue))[], unknown, unknown, "", boolean>;
377
+ readonly wrapClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
378
+ readonly viewClass: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
379
+ readonly viewStyle: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
380
+ readonly noresize: BooleanConstructor;
381
+ readonly tag: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
382
+ readonly always: BooleanConstructor;
383
+ readonly minSize: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
384
+ readonly tabindex: import('element-plus/es/utils/index.mjs').EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, undefined, boolean>;
385
+ readonly id: StringConstructor;
386
+ readonly role: StringConstructor;
387
+ }>> & {
388
+ onScroll?: ((args_0: {
389
+ scrollTop: number;
390
+ scrollLeft: number;
391
+ }) => any) | undefined;
392
+ "onEnd-reached"?: ((direction: import('element-plus').ScrollbarDirection) => any) | undefined;
393
+ }, "tag" | "tabindex" | "distance" | "height" | "maxHeight" | "native" | "wrapStyle" | "wrapClass" | "viewClass" | "viewStyle" | "noresize" | "always" | "minSize" | "wrapRef" | "update" | "scrollTo" | "setScrollTop" | "setScrollLeft" | "handleScroll"> & import('vue').ShallowUnwrapRef<{
394
+ wrapRef: import('vue').Ref<HTMLDivElement | undefined>;
395
+ update: () => void;
396
+ scrollTo: {
397
+ (xCord: number, yCord?: number): void;
398
+ (options: ScrollToOptions): void;
399
+ };
400
+ setScrollTop: (value: number) => void;
401
+ setScrollLeft: (value: number) => void;
402
+ handleScroll: () => void;
403
+ }> & {} & import('vue').ComponentCustomProperties & {} & {
404
+ $slots: {
405
+ default?: (props: {}) => any;
406
+ };
407
+ }) | null;
408
+ }, any>;
409
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
410
+ export default _default;
411
+ type __VLS_WithTemplateSlots<T, S> = T & {
412
+ new (): {
413
+ $slots: S;
414
+ };
415
+ };
@@ -0,0 +1,31 @@
1
+ import { SelectProps } from 'element-plus';
2
+ export interface XSelectOptionProps<V> {
3
+ disabled?: boolean;
4
+ label?: number | string;
5
+ value: V;
6
+ }
7
+ export interface XSelectProps<D, V> extends Partial<Omit<SelectProps, 'modelValue'>> {
8
+ data: D[];
9
+ factory: (option: D) => XSelectOptionProps<V>;
10
+ identify?: (value: V) => number | string;
11
+ supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>;
12
+ }
13
+ declare const _default: <D, V, MV extends V | V[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
14
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
15
+ readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
16
+ readonly onBlur?: (() => any) | undefined;
17
+ readonly onChange?: ((value: MV) => any) | undefined;
18
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onBlur" | "onChange"> & ({
19
+ modelValue?: MV;
20
+ } & XSelectProps<D, V>) & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: {};
24
+ emit: (((evt: "blur") => void) & ((evt: "change", value: MV) => void)) & ((evt: "update:modelValue", value: MV) => void);
25
+ }>) => import('vue').VNode & {
26
+ __ctx?: Awaited<typeof __VLS_setup>;
27
+ };
28
+ export default _default;
29
+ type __VLS_PrettifyLocal<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
@@ -0,0 +1,20 @@
1
+ import { SpaceProps } from 'element-plus';
2
+ export interface XSpaceProps extends Partial<SpaceProps> {
3
+ }
4
+ declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
6
+ slots: {
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: import('vue').DefineComponent<XSpaceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XSpaceProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,55 @@
1
+ import { TableColumnCtx } from 'element-plus';
2
+ import { VNodeChild } from 'vue';
3
+ export interface XTableColumnProps<D> {
4
+ label?: string;
5
+ prop?: string;
6
+ width?: number;
7
+ fixed?: 'left' | 'right';
8
+ showOverflowTooltip?: boolean;
9
+ content?: (scope: {
10
+ index: number;
11
+ row: D;
12
+ }) => VNodeChild;
13
+ header?: (scope: {
14
+ column: XTableColumnProps<D>;
15
+ }) => VNodeChild;
16
+ type?: 'default' | 'selection';
17
+ columnKey?: string;
18
+ }
19
+ export interface XTableProps<D> {
20
+ data?: D[];
21
+ height?: number | string;
22
+ columns: XTableColumnProps<D>[];
23
+ /**
24
+ * It will affect all the table columns.
25
+ */
26
+ showOverflowTooltip?: boolean;
27
+ border?: boolean;
28
+ highlightCurrentRow?: boolean;
29
+ spanMethod?: (data: {
30
+ row: D;
31
+ rowIndex: number;
32
+ column: TableColumnCtx;
33
+ columnIndex: number;
34
+ }) => number[] | {
35
+ rowspan: number;
36
+ colspan: number;
37
+ } | undefined;
38
+ }
39
+ declare const _default: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
40
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
41
+ readonly onRowClick?: ((row: D) => any) | undefined;
42
+ readonly onSelectionChange?: ((rows: D[]) => any) | undefined;
43
+ readonly onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
44
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onRowClick" | "onSelectionChange" | "onHeaderDragend"> & XTableProps<D> & Partial<{}>> & import('vue').PublicProps;
45
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
46
+ attrs: any;
47
+ slots: {};
48
+ emit: ((evt: "rowClick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void) & ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void);
49
+ }>) => import('vue').VNode & {
50
+ __ctx?: Awaited<typeof __VLS_setup>;
51
+ };
52
+ export default _default;
53
+ type __VLS_PrettifyLocal<T> = {
54
+ [K in keyof T]: T[K];
55
+ } & {};
@@ -0,0 +1,34 @@
1
+ import { TabPaneProps, TabsProps } from 'element-plus';
2
+ export interface XTabsProps {
3
+ type?: TabsProps['type'];
4
+ defaultValue?: TabsProps['defaultValue'];
5
+ addable?: TabsProps['addable'];
6
+ editable?: TabsProps['editable'];
7
+ tabPosition?: TabsProps['tabPosition'];
8
+ }
9
+ export interface XTabPaneProps extends Partial<TabPaneProps> {
10
+ }
11
+ export interface XTabPaneInstance extends Pick<XTabPaneProps, 'label' | 'name'> {
12
+ }
13
+ export declare const XTabPane: import('vue').DefineSetupFnComponent<XTabPaneProps, {}, {}, XTabPaneProps & {}, import('vue').PublicProps>;
14
+ declare const _default: <V extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
15
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
16
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
17
+ readonly onTabChange?: ((name: V) => any) | undefined;
18
+ readonly onTabRemove?: ((name: V) => any) | undefined;
19
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onTabChange" | "onTabRemove"> & ({
20
+ modelValue?: V;
21
+ } & XTabsProps) & Partial<{}>> & import('vue').PublicProps;
22
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
23
+ attrs: any;
24
+ slots: {
25
+ default?(_: {}): any;
26
+ };
27
+ emit: (((evt: "tabChange", name: V) => void) & ((evt: "tabRemove", name: V) => void)) & ((evt: "update:modelValue", value: V) => void);
28
+ }>) => import('vue').VNode & {
29
+ __ctx?: Awaited<typeof __VLS_setup>;
30
+ };
31
+ export default _default;
32
+ type __VLS_PrettifyLocal<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -0,0 +1,23 @@
1
+ import { TextProps } from 'element-plus';
2
+ export interface XTextProps {
3
+ type?: TextProps['type'];
4
+ size?: TextProps['size'];
5
+ truncated?: boolean;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<XTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,41 @@
1
+ import { UploadFile } from 'element-plus';
2
+ import { Component } from 'vue';
3
+ export interface XUploadProps {
4
+ action?: string;
5
+ data?: () => Record<string, unknown>;
6
+ disabled?: boolean;
7
+ limit?: number;
8
+ multiple?: boolean;
9
+ showFileList?: boolean;
10
+ drag?: boolean;
11
+ accept?: string;
12
+ listType?: 'picture' | 'picture-card' | 'text';
13
+ maxSize?: number;
14
+ }
15
+ declare const _default: <V extends string | string[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
16
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
17
+ readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
18
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
19
+ modelValue?: V;
20
+ } & XUploadProps) & Partial<{}>> & import('vue').PublicProps;
21
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
22
+ attrs: any;
23
+ slots: Readonly<{
24
+ default: () => Component;
25
+ file: (scope: {
26
+ file: UploadFile;
27
+ }) => Component;
28
+ }> & {
29
+ default: () => Component;
30
+ file: (scope: {
31
+ file: UploadFile;
32
+ }) => Component;
33
+ };
34
+ emit: (evt: "update:modelValue", value: V) => void;
35
+ }>) => import('vue').VNode & {
36
+ __ctx?: Awaited<typeof __VLS_setup>;
37
+ };
38
+ export default _default;
39
+ type __VLS_PrettifyLocal<T> = {
40
+ [K in keyof T]: T[K];
41
+ } & {};