@vtj/ui 0.10.4 → 0.10.6

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.
Files changed (43) hide show
  1. package/dist/index.mjs +180 -180
  2. package/dist/index.umd.js +3 -3
  3. package/package.json +3 -3
  4. package/types/components/action/Action.d.ts +3 -10
  5. package/types/components/attachment/Attachment.d.ts +274 -805
  6. package/types/components/container/Container.d.ts +178 -15
  7. package/types/components/data-item/DataItem.d.ts +517 -18
  8. package/types/components/dialog/Dialog.d.ts +372 -1143
  9. package/types/components/dialog-form/DialogForm.d.ts +104 -3049
  10. package/types/components/dialog-grid/DialogGrid.d.ts +69 -4907
  11. package/types/components/field/Field.d.ts +222 -353
  12. package/types/components/field/editors/SelectEditor.d.ts +21 -12
  13. package/types/components/form/Form.d.ts +116 -389
  14. package/types/components/grid/Grid.d.ts +787 -57
  15. package/types/components/grid/renderers/components/DateEdit.d.ts +2 -255
  16. package/types/components/grid/renderers/components/DateFilter.d.ts +1 -1
  17. package/types/components/grid/renderers/components/GridEdit.d.ts +2 -410
  18. package/types/components/grid/renderers/components/InputFilter.d.ts +1 -1
  19. package/types/components/grid/renderers/components/NumberFilter.d.ts +1 -1
  20. package/types/components/grid/renderers/components/PickerEdit.d.ts +2 -1926
  21. package/types/components/grid/renderers/components/SelectFilter.d.ts +1 -1
  22. package/types/components/grid-editor/GridEditor.d.ts +2 -375
  23. package/types/components/header/Header.d.ts +76 -14
  24. package/types/components/import-button/ImportButton.d.ts +47 -10
  25. package/types/components/list/List.d.ts +155 -30
  26. package/types/components/mask/Mask.d.ts +546 -562
  27. package/types/components/mask/components/Avatar.d.ts +16 -11
  28. package/types/components/mask/components/Brand.d.ts +17 -12
  29. package/types/components/mask/components/Content.d.ts +13 -12
  30. package/types/components/mask/components/Sidebar.d.ts +15 -12
  31. package/types/components/mask/components/Tabs.d.ts +2 -255
  32. package/types/components/mask/components/ThemeSwitch.d.ts +1 -1
  33. package/types/components/mask/components/Toolbar.d.ts +55 -13
  34. package/types/components/panel/Panel.d.ts +124 -521
  35. package/types/components/picker/Dialog.d.ts +2 -1291
  36. package/types/components/picker/Picker.d.ts +2 -1730
  37. package/types/components/qr-code/QrCode.d.ts +35 -13
  38. package/types/components/query-form/QueryForm.d.ts +418 -1105
  39. package/types/components/startup/Startup.d.ts +1 -1
  40. package/types/components/tabs/Tabs.d.ts +297 -53
  41. package/types/components/test/Test.d.ts +268 -41
  42. package/types/version.d.ts +2 -2
  43. package/types/components/icon/Icon.d.ts +0 -74
@@ -4,5 +4,5 @@ export interface Props {
4
4
  params: VxeGlobalRendererHandles.RenderFilterParams;
5
5
  renderOpts: VxeGlobalRendererHandles.RenderFilterOptions;
6
6
  }
7
- declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
7
+ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
8
8
  export default _default;
@@ -1,9 +1,5 @@
1
1
  import { GridEditorProps } from './types';
2
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, Component, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, CSSProperties, ShallowRef, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
3
- import { EpPropMergeType, EpPropFinalized } from 'element-plus/es/utils/index.mjs';
4
- import { InputAutoSize } from 'element-plus';
5
- import { Mutable } from 'element-plus/es/utils/typescript.mjs';
6
- import { OnCleanup } from '@vue/reactivity';
2
+ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
7
3
  declare const _default: DefineComponent<GridEditorProps, {
8
4
  open: () => void;
9
5
  dialogVisible: Ref<boolean, boolean>;
@@ -18,374 +14,5 @@ declare const _default: DefineComponent<GridEditorProps, {
18
14
  }>, {
19
15
  plus: boolean;
20
16
  minus: boolean;
21
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
22
- inputRef: ({
23
- $: ComponentInternalInstance;
24
- $data: {};
25
- $props: Partial<{
26
- readonly disabled: boolean;
27
- readonly id: string;
28
- readonly type: string;
29
- readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
30
- readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
31
- readonly readonly: boolean;
32
- readonly autosize: InputAutoSize;
33
- readonly autocomplete: string;
34
- readonly containerRole: string;
35
- readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
36
- readonly inputStyle: StyleValue;
37
- readonly rows: number;
38
- readonly clearable: boolean;
39
- readonly showPassword: boolean;
40
- readonly showWordLimit: boolean;
41
- readonly autofocus: boolean;
42
- }> & Omit<{
43
- readonly type: string;
44
- readonly disabled: boolean;
45
- readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
46
- readonly autofocus: boolean;
47
- readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
48
- readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
49
- readonly autosize: InputAutoSize;
50
- readonly autocomplete: string;
51
- readonly readonly: boolean;
52
- readonly clearable: boolean;
53
- readonly showPassword: boolean;
54
- readonly showWordLimit: boolean;
55
- readonly inputStyle: StyleValue;
56
- readonly rows: number;
57
- readonly size?: EpPropMergeType<StringConstructor, "" | "large" | "default" | "small", never> | undefined;
58
- readonly form?: string | undefined;
59
- readonly id?: string | undefined;
60
- readonly ariaLabel?: string | undefined;
61
- readonly resize?: EpPropMergeType<StringConstructor, "none" | "horizontal" | "vertical" | "both", unknown> | undefined;
62
- readonly maxlength?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
63
- readonly minlength?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
64
- readonly formatter?: Function | undefined;
65
- readonly parser?: Function | undefined;
66
- readonly placeholder?: string | undefined;
67
- readonly suffixIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown> | undefined;
68
- readonly prefixIcon?: EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown> | undefined;
69
- readonly containerRole?: string | undefined;
70
- "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
71
- onChange?: ((value: string) => any) | undefined | undefined;
72
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
73
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
74
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
75
- onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
76
- onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
77
- onInput?: ((value: string) => any) | undefined | undefined;
78
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
79
- onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
80
- onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
81
- onClear?: (() => any) | undefined | undefined;
82
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "type" | "disabled" | "id" | "tabindex" | "autofocus" | "modelValue" | "validateEvent" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows">;
83
- $attrs: {
84
- [x: string]: unknown;
85
- };
86
- $refs: {
87
- [x: string]: unknown;
88
- };
89
- $slots: Readonly<{
90
- [name: string]: Slot<any> | undefined;
91
- }>;
92
- $root: ComponentPublicInstance | null;
93
- $parent: ComponentPublicInstance | null;
94
- $host: Element | null;
95
- $emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void) & ((event: "keydown", evt: Event | KeyboardEvent) => void) & ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "update:modelValue", value: string) => void);
96
- $el: any;
97
- $options: ComponentOptionsBase<Readonly< ExtractPropTypes<{
98
- readonly ariaLabel: StringConstructor;
99
- readonly id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
100
- readonly size: {
101
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
102
- readonly required: false;
103
- readonly validator: ((val: unknown) => boolean) | undefined;
104
- __epPropKey: true;
105
- };
106
- readonly disabled: BooleanConstructor;
107
- readonly modelValue: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
108
- readonly maxlength: {
109
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
110
- readonly required: false;
111
- readonly validator: ((val: unknown) => boolean) | undefined;
112
- __epPropKey: true;
113
- };
114
- readonly minlength: {
115
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
116
- readonly required: false;
117
- readonly validator: ((val: unknown) => boolean) | undefined;
118
- __epPropKey: true;
119
- };
120
- readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
121
- readonly resize: {
122
- readonly type: PropType<EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
123
- readonly required: false;
124
- readonly validator: ((val: unknown) => boolean) | undefined;
125
- __epPropKey: true;
126
- };
127
- readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
128
- minRows?: number;
129
- maxRows?: number;
130
- }) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
131
- minRows?: number;
132
- maxRows?: number;
133
- }) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
134
- readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
135
- readonly formatter: {
136
- readonly type: PropType<Function>;
137
- readonly required: false;
138
- readonly validator: ((val: unknown) => boolean) | undefined;
139
- __epPropKey: true;
140
- };
141
- readonly parser: {
142
- readonly type: PropType<Function>;
143
- readonly required: false;
144
- readonly validator: ((val: unknown) => boolean) | undefined;
145
- __epPropKey: true;
146
- };
147
- readonly placeholder: {
148
- readonly type: PropType<string>;
149
- readonly required: false;
150
- readonly validator: ((val: unknown) => boolean) | undefined;
151
- __epPropKey: true;
152
- };
153
- readonly form: {
154
- readonly type: PropType<string>;
155
- readonly required: false;
156
- readonly validator: ((val: unknown) => boolean) | undefined;
157
- __epPropKey: true;
158
- };
159
- readonly readonly: BooleanConstructor;
160
- readonly clearable: BooleanConstructor;
161
- readonly showPassword: BooleanConstructor;
162
- readonly showWordLimit: BooleanConstructor;
163
- readonly suffixIcon: {
164
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
165
- readonly required: false;
166
- readonly validator: ((val: unknown) => boolean) | undefined;
167
- __epPropKey: true;
168
- };
169
- readonly prefixIcon: {
170
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
171
- readonly required: false;
172
- readonly validator: ((val: unknown) => boolean) | undefined;
173
- __epPropKey: true;
174
- };
175
- readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
176
- readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
177
- readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
178
- readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
179
- readonly autofocus: BooleanConstructor;
180
- readonly rows: EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
181
- }>> & {
182
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
183
- onChange?: ((value: string) => any) | undefined;
184
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
185
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
186
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
187
- onFocus?: ((evt: FocusEvent) => any) | undefined;
188
- onBlur?: ((evt: FocusEvent) => any) | undefined;
189
- onInput?: ((value: string) => any) | undefined;
190
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
191
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
192
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
193
- onClear?: (() => any) | undefined;
194
- }, {
195
- input: ShallowRef<HTMLInputElement | undefined>;
196
- textarea: ShallowRef<HTMLTextAreaElement | undefined>;
197
- ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
198
- textareaStyle: ComputedRef<StyleValue>;
199
- autosize: Ref<InputAutoSize>;
200
- isComposing: Ref<boolean>;
201
- focus: () => void | undefined;
202
- blur: () => void | undefined;
203
- select: () => void;
204
- clear: () => void;
205
- resizeTextarea: () => void;
206
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
207
- input: (value: string) => void;
208
- clear: () => void;
209
- "update:modelValue": (value: string) => void;
210
- change: (value: string) => void;
211
- blur: (evt: FocusEvent) => void;
212
- compositionend: (evt: CompositionEvent) => void;
213
- compositionstart: (evt: CompositionEvent) => void;
214
- compositionupdate: (evt: CompositionEvent) => void;
215
- focus: (evt: FocusEvent) => void;
216
- keydown: (evt: Event | KeyboardEvent) => void;
217
- mouseenter: (evt: MouseEvent) => void;
218
- mouseleave: (evt: MouseEvent) => void;
219
- }, string, {
220
- readonly disabled: boolean;
221
- readonly id: string;
222
- readonly type: string;
223
- readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
224
- readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
225
- readonly readonly: boolean;
226
- readonly autosize: InputAutoSize;
227
- readonly autocomplete: string;
228
- readonly containerRole: string;
229
- readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
230
- readonly inputStyle: StyleValue;
231
- readonly rows: number;
232
- readonly clearable: boolean;
233
- readonly showPassword: boolean;
234
- readonly showWordLimit: boolean;
235
- readonly autofocus: boolean;
236
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
237
- beforeCreate?: (() => void) | (() => void)[];
238
- created?: (() => void) | (() => void)[];
239
- beforeMount?: (() => void) | (() => void)[];
240
- mounted?: (() => void) | (() => void)[];
241
- beforeUpdate?: (() => void) | (() => void)[];
242
- updated?: (() => void) | (() => void)[];
243
- activated?: (() => void) | (() => void)[];
244
- deactivated?: (() => void) | (() => void)[];
245
- beforeDestroy?: (() => void) | (() => void)[];
246
- beforeUnmount?: (() => void) | (() => void)[];
247
- destroyed?: (() => void) | (() => void)[];
248
- unmounted?: (() => void) | (() => void)[];
249
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
250
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
251
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
252
- };
253
- $forceUpdate: () => void;
254
- $nextTick: nextTick;
255
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
256
- } & Readonly<{
257
- readonly disabled: boolean;
258
- readonly id: string;
259
- readonly type: string;
260
- readonly modelValue: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown>;
261
- readonly tabindex: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
262
- readonly readonly: boolean;
263
- readonly autosize: InputAutoSize;
264
- readonly autocomplete: string;
265
- readonly containerRole: string;
266
- readonly validateEvent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
267
- readonly inputStyle: StyleValue;
268
- readonly rows: number;
269
- readonly clearable: boolean;
270
- readonly showPassword: boolean;
271
- readonly showWordLimit: boolean;
272
- readonly autofocus: boolean;
273
- }> & Omit<Readonly< ExtractPropTypes<{
274
- readonly ariaLabel: StringConstructor;
275
- readonly id: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
276
- readonly size: {
277
- readonly type: PropType<EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
278
- readonly required: false;
279
- readonly validator: ((val: unknown) => boolean) | undefined;
280
- __epPropKey: true;
281
- };
282
- readonly disabled: BooleanConstructor;
283
- readonly modelValue: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number | null | undefined) | ((new (...args: any[]) => string | number) | (() => string | number | null | undefined))[], unknown, unknown, "", boolean>;
284
- readonly maxlength: {
285
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
286
- readonly required: false;
287
- readonly validator: ((val: unknown) => boolean) | undefined;
288
- __epPropKey: true;
289
- };
290
- readonly minlength: {
291
- readonly type: PropType<EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
292
- readonly required: false;
293
- readonly validator: ((val: unknown) => boolean) | undefined;
294
- __epPropKey: true;
295
- };
296
- readonly type: EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
297
- readonly resize: {
298
- readonly type: PropType<EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
299
- readonly required: false;
300
- readonly validator: ((val: unknown) => boolean) | undefined;
301
- __epPropKey: true;
302
- };
303
- readonly autosize: EpPropFinalized<(new (...args: any[]) => boolean | {
304
- minRows?: number;
305
- maxRows?: number;
306
- }) | (() => InputAutoSize) | ((new (...args: any[]) => boolean | {
307
- minRows?: number;
308
- maxRows?: number;
309
- }) | (() => InputAutoSize))[], unknown, unknown, false, boolean>;
310
- readonly autocomplete: EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
311
- readonly formatter: {
312
- readonly type: PropType<Function>;
313
- readonly required: false;
314
- readonly validator: ((val: unknown) => boolean) | undefined;
315
- __epPropKey: true;
316
- };
317
- readonly parser: {
318
- readonly type: PropType<Function>;
319
- readonly required: false;
320
- readonly validator: ((val: unknown) => boolean) | undefined;
321
- __epPropKey: true;
322
- };
323
- readonly placeholder: {
324
- readonly type: PropType<string>;
325
- readonly required: false;
326
- readonly validator: ((val: unknown) => boolean) | undefined;
327
- __epPropKey: true;
328
- };
329
- readonly form: {
330
- readonly type: PropType<string>;
331
- readonly required: false;
332
- readonly validator: ((val: unknown) => boolean) | undefined;
333
- __epPropKey: true;
334
- };
335
- readonly readonly: BooleanConstructor;
336
- readonly clearable: BooleanConstructor;
337
- readonly showPassword: BooleanConstructor;
338
- readonly showWordLimit: BooleanConstructor;
339
- readonly suffixIcon: {
340
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
341
- readonly required: false;
342
- readonly validator: ((val: unknown) => boolean) | undefined;
343
- __epPropKey: true;
344
- };
345
- readonly prefixIcon: {
346
- readonly type: PropType<EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
347
- readonly required: false;
348
- readonly validator: ((val: unknown) => boolean) | undefined;
349
- __epPropKey: true;
350
- };
351
- readonly containerRole: EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
352
- readonly tabindex: EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
353
- readonly validateEvent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
354
- readonly inputStyle: EpPropFinalized<(new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue) | ((new (...args: any[]) => string | CSSProperties | StyleValue[]) | (() => StyleValue))[], unknown, unknown, () => Mutable<{}>, boolean>;
355
- readonly autofocus: BooleanConstructor;
356
- readonly rows: EpPropFinalized<NumberConstructor, unknown, unknown, 2, boolean>;
357
- }>> & {
358
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
359
- onChange?: ((value: string) => any) | undefined;
360
- onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
361
- onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
362
- onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
363
- onFocus?: ((evt: FocusEvent) => any) | undefined;
364
- onBlur?: ((evt: FocusEvent) => any) | undefined;
365
- onInput?: ((value: string) => any) | undefined;
366
- onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
367
- onMouseenter?: ((evt: MouseEvent) => any) | undefined;
368
- onMouseleave?: ((evt: MouseEvent) => any) | undefined;
369
- onClear?: (() => any) | undefined;
370
- }, "clear" | "type" | "disabled" | "ref" | "input" | "select" | "textarea" | "id" | "tabindex" | "focus" | "autofocus" | "blur" | "modelValue" | "validateEvent" | "autosize" | "autocomplete" | "readonly" | "clearable" | "showPassword" | "showWordLimit" | "containerRole" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "resizeTextarea"> & ShallowUnwrapRef<{
371
- input: ShallowRef<HTMLInputElement | undefined>;
372
- textarea: ShallowRef<HTMLTextAreaElement | undefined>;
373
- ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
374
- textareaStyle: ComputedRef<StyleValue>;
375
- autosize: Ref<InputAutoSize>;
376
- isComposing: Ref<boolean>;
377
- focus: () => void | undefined;
378
- blur: () => void | undefined;
379
- select: () => void;
380
- clear: () => void;
381
- resizeTextarea: () => void;
382
- }> & {} & ComponentCustomProperties & {} & {
383
- $slots: {
384
- prepend?(_: {}): any;
385
- prefix?(_: {}): any;
386
- suffix?(_: {}): any;
387
- append?(_: {}): any;
388
- };
389
- }) | null;
390
- }, any>;
17
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
391
18
  export default _default;
@@ -1,17 +1,79 @@
1
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
1
+ import { ArrowRight } from '@vtj/icons';
2
+ import { XContainer, XIcon } from '../';
3
+ import { ComputedRef, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
4
  import { BaseSize } from '../shared';
3
5
  import { IconParam } from '../icon';
4
- declare function __VLS_template(): {
5
- attrs: Partial<{}>;
6
- slots: {
7
- default?(_: {}): any;
8
- subtitle?(_: {}): any;
9
- actions?(_: {}): any;
10
- };
11
- refs: {};
12
- rootEl: any;
13
- };
14
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
6
+ declare const icon: Record<string, any> | undefined;
7
+ declare const attrs: Record<string, any>;
8
+ declare const classes: ComputedRef<{
9
+ [x: string]: boolean;
10
+ 'is-border': boolean;
11
+ 'is-pointer': boolean;
12
+ }>;
13
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
14
+ declare var __VLS_18: {}, __VLS_24: {}, __VLS_26: {};
15
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
16
+ default?: (props: typeof __VLS_18) => any;
17
+ } & {
18
+ subtitle?: (props: typeof __VLS_24) => any;
19
+ } & {
20
+ actions?: (props: typeof __VLS_26) => any;
21
+ }>;
22
+ declare const __VLS_self: DefineComponent<ExtractPropTypes<{
23
+ size: {
24
+ type: PropType<BaseSize>;
25
+ default: string;
26
+ };
27
+ content: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ subtitle: {
32
+ type: StringConstructor;
33
+ };
34
+ icon: {
35
+ type: PropType<IconParam>;
36
+ };
37
+ border: {
38
+ type: BooleanConstructor;
39
+ };
40
+ more: {
41
+ type: BooleanConstructor;
42
+ };
43
+ }>, {
44
+ ArrowRight: typeof ArrowRight;
45
+ XContainer: typeof XContainer;
46
+ XIcon: typeof XIcon;
47
+ icon: typeof icon;
48
+ attrs: typeof attrs;
49
+ classes: typeof classes;
50
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
51
+ size: {
52
+ type: PropType<BaseSize>;
53
+ default: string;
54
+ };
55
+ content: {
56
+ type: StringConstructor;
57
+ default: string;
58
+ };
59
+ subtitle: {
60
+ type: StringConstructor;
61
+ };
62
+ icon: {
63
+ type: PropType<IconParam>;
64
+ };
65
+ border: {
66
+ type: BooleanConstructor;
67
+ };
68
+ more: {
69
+ type: BooleanConstructor;
70
+ };
71
+ }>> & Readonly<{}>, {
72
+ size: BaseSize;
73
+ content: string;
74
+ border: boolean;
75
+ more: boolean;
76
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
15
77
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
16
78
  size: {
17
79
  type: PropType<BaseSize>;
@@ -60,9 +122,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
60
122
  border: boolean;
61
123
  more: boolean;
62
124
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
63
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
125
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
64
126
  export default _default;
65
- type __VLS_WithTemplateSlots<T, S> = T & {
127
+ type __VLS_WithSlots<T, S> = T & {
66
128
  new (): {
67
129
  $slots: S;
68
130
  };
@@ -1,14 +1,51 @@
1
+ import { ElUpload, ElButton, UploadRawFile } from 'element-plus';
1
2
  import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
3
  import { ImportButtonParserType, ImportButtonParser } from './types';
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {}): any;
4
+ declare const onBeforeUpload: (rawFile: UploadRawFile) => Promise<boolean>;
5
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
6
+ declare var __VLS_10: {};
7
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
8
+ default?: (props: typeof __VLS_10) => any;
9
+ }>;
10
+ declare const __VLS_self: DefineComponent<ExtractPropTypes<{
11
+ uploader: {
12
+ type: FunctionConstructor;
7
13
  };
8
- refs: {};
9
- rootEl: any;
10
- };
11
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ multiple: {
15
+ type: BooleanConstructor;
16
+ };
17
+ accept: {
18
+ type: StringConstructor;
19
+ };
20
+ parser: {
21
+ type: PropType< ImportButtonParserType | ImportButtonParser>;
22
+ };
23
+ }>, {
24
+ ElUpload: typeof ElUpload;
25
+ ElButton: typeof ElButton;
26
+ onBeforeUpload: typeof onBeforeUpload;
27
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
28
+ success: (content: any) => any;
29
+ fail: (e: any) => any;
30
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
31
+ uploader: {
32
+ type: FunctionConstructor;
33
+ };
34
+ multiple: {
35
+ type: BooleanConstructor;
36
+ };
37
+ accept: {
38
+ type: StringConstructor;
39
+ };
40
+ parser: {
41
+ type: PropType< ImportButtonParserType | ImportButtonParser>;
42
+ };
43
+ }>> & Readonly<{
44
+ onSuccess?: ((content: any) => any) | undefined;
45
+ onFail?: ((e: any) => any) | undefined;
46
+ }>, {
47
+ multiple: boolean;
48
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
12
49
  declare const __VLS_component: DefineComponent<ExtractPropTypes<{
13
50
  uploader: {
14
51
  type: FunctionConstructor;
@@ -44,9 +81,9 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
44
81
  }>, {
45
82
  multiple: boolean;
46
83
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
47
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
84
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
48
85
  export default _default;
49
- type __VLS_WithTemplateSlots<T, S> = T & {
86
+ type __VLS_WithSlots<T, S> = T & {
50
87
  new (): {
51
88
  $slots: S;
52
89
  };