@vunk/form 0.0.1-alpha.47 → 0.0.1-alpha.49
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/component.d.ts +1 -1
- package/components/button/src/ctx.d.ts +4 -3
- package/components/button/src/index.vue.d.ts +27 -23
- package/components/cascader/src/ctx.d.ts +10 -11
- package/components/cascader/src/index.vue.d.ts +46 -48
- package/components/checkbox/src/ctx.d.ts +2 -2
- package/components/checkbox/src/index.vue.d.ts +12 -12
- package/components/color-picker/src/ctx.d.ts +1 -1
- package/components/color-picker/src/index.vue.d.ts +11 -11
- package/components/date-picker/src/ctx.d.ts +1 -1
- package/components/date-picker/src/index.vue.d.ts +22 -22
- package/components/form/src/ctx.d.ts +58 -22
- package/components/form/src/index.vue.d.ts +166 -63
- package/components/form-item/src/ctx.d.ts +1 -1
- package/components/form-item/src/index.vue.d.ts +3 -3
- package/components/input/src/ctx.d.ts +3 -3
- package/components/input/src/index.vue.d.ts +26 -26
- package/components/input-number/src/ctx.d.ts +2 -2
- package/components/input-number/src/index.vue.d.ts +17 -17
- package/components/radio/src/ctx.d.ts +1 -1
- package/components/radio/src/index.vue.d.ts +11 -11
- package/components/select/src/ctx.d.ts +5 -5
- package/components/select/src/index.vue.d.ts +59 -59
- package/components/switch/src/ctx.d.ts +1 -1
- package/components/switch/src/index.vue.d.ts +12 -12
- package/components/upload/index.css +10 -10
- package/components/upload/index.js +129 -51
- package/components/upload/src/ctx.d.ts +3 -3
- package/components/upload/src/file.vue.d.ts +5 -5
- package/components/upload/src/index.vue.d.ts +78 -72
- package/index.css +10 -10
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +2 -2
- package/shared/element-plus/index.js +34 -16
- package/shared/element-plus/instances.d.ts +7 -8
- package/shared/progress-it/index.d.ts +16 -0
- package/shared/progress-it/index.js +57 -0
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { UploadFile } from 'element-plus';
|
|
1
|
+
import { UploadFile, UploadFiles, UploadProgressEvent, UploadRawFile as _UploadRawFile } from 'element-plus';
|
|
2
2
|
import type { AnyFunc } from '@vunk/core';
|
|
3
|
+
import { Setter } from '@vunk/form/shared/progress-it';
|
|
4
|
+
interface UploadRawFile extends _UploadRawFile {
|
|
5
|
+
progress: Setter;
|
|
6
|
+
}
|
|
3
7
|
declare const _default: import("vue").DefineComponent<{
|
|
4
8
|
tip: {
|
|
5
9
|
type: StringConstructor;
|
|
@@ -9,36 +13,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
13
|
type: StringConstructor;
|
|
10
14
|
default: string;
|
|
11
15
|
};
|
|
12
|
-
beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile:
|
|
13
|
-
(): (rawFile:
|
|
16
|
+
beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
17
|
+
(): (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
14
18
|
new (): any;
|
|
15
19
|
readonly prototype: any;
|
|
16
|
-
} | ((new (...args: any[]) => (rawFile:
|
|
17
|
-
(): (rawFile:
|
|
20
|
+
} | ((new (...args: any[]) => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
21
|
+
(): (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
18
22
|
new (): any;
|
|
19
23
|
readonly prototype: any;
|
|
20
24
|
})[], unknown, unknown, () => void, boolean>;
|
|
21
25
|
beforeRemove: {
|
|
22
|
-
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles:
|
|
26
|
+
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
23
27
|
readonly required: false;
|
|
24
28
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
29
|
__epPropKey: true;
|
|
26
30
|
};
|
|
27
|
-
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
28
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
31
|
+
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
32
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
29
33
|
new (): any;
|
|
30
34
|
readonly prototype: any;
|
|
31
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
32
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
35
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
36
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
33
37
|
new (): any;
|
|
34
38
|
readonly prototype: any;
|
|
35
39
|
})[], unknown, unknown, () => void, boolean>;
|
|
36
|
-
onChange: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
37
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
40
|
+
onChange: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
41
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
38
42
|
new (): any;
|
|
39
43
|
readonly prototype: any;
|
|
40
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
41
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
44
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
45
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
42
46
|
new (): any;
|
|
43
47
|
readonly prototype: any;
|
|
44
48
|
})[], unknown, unknown, () => void, boolean>;
|
|
@@ -51,30 +55,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
55
|
new (): any;
|
|
52
56
|
readonly prototype: any;
|
|
53
57
|
})[], unknown, unknown, () => void, boolean>;
|
|
54
|
-
onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles:
|
|
55
|
-
(): (response: any, uploadFile: UploadFile, uploadFiles:
|
|
58
|
+
onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
59
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
56
60
|
new (): any;
|
|
57
61
|
readonly prototype: any;
|
|
58
|
-
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles:
|
|
59
|
-
(): (response: any, uploadFile: UploadFile, uploadFiles:
|
|
62
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
63
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
60
64
|
new (): any;
|
|
61
65
|
readonly prototype: any;
|
|
62
66
|
})[], unknown, unknown, () => void, boolean>;
|
|
63
|
-
onProgress: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (evt:
|
|
64
|
-
(): (evt:
|
|
67
|
+
onProgress: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
68
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
65
69
|
new (): any;
|
|
66
70
|
readonly prototype: any;
|
|
67
|
-
} | ((new (...args: any[]) => (evt:
|
|
68
|
-
(): (evt:
|
|
71
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
72
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
69
73
|
new (): any;
|
|
70
74
|
readonly prototype: any;
|
|
71
75
|
})[], unknown, unknown, () => void, boolean>;
|
|
72
|
-
onError: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
73
|
-
(): (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
76
|
+
onError: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
77
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
74
78
|
new (): any;
|
|
75
79
|
readonly prototype: any;
|
|
76
|
-
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
77
|
-
(): (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
80
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
81
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
78
82
|
new (): any;
|
|
79
83
|
readonly prototype: any;
|
|
80
84
|
})[], unknown, unknown, () => void, boolean>;
|
|
@@ -105,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
109
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "select", boolean>;
|
|
106
110
|
fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
107
111
|
autoUpload: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
108
|
-
listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
112
|
+
listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
109
113
|
httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
110
114
|
(): import("element-plus").UploadRequestHandler;
|
|
111
115
|
new (): any;
|
|
@@ -134,7 +138,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
134
138
|
};
|
|
135
139
|
error: StringConstructor;
|
|
136
140
|
validateStatus: {
|
|
137
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "
|
|
141
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
138
142
|
readonly required: false;
|
|
139
143
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
140
144
|
__epPropKey: true;
|
|
@@ -170,7 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
174
|
prop: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown> | undefined;
|
|
171
175
|
rules: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown> | undefined;
|
|
172
176
|
error: string | undefined;
|
|
173
|
-
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "
|
|
177
|
+
validateStatus: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown> | undefined;
|
|
174
178
|
for: string | undefined;
|
|
175
179
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
176
180
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -188,18 +192,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
188
192
|
type: string;
|
|
189
193
|
name: string;
|
|
190
194
|
data: Record<string, any>;
|
|
195
|
+
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
191
196
|
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
192
197
|
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
198
|
+
onRemove: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => void) & ((e: UploadFile) => any);
|
|
199
|
+
listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
196
200
|
onPreview: (uploadFile: UploadFile) => void;
|
|
197
201
|
method: string;
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
onError: (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
202
|
+
beforeRemove: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>) | undefined;
|
|
203
|
+
onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
204
|
+
onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
205
|
+
onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
203
206
|
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
204
207
|
action: string;
|
|
205
208
|
headers: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown> | undefined;
|
|
@@ -215,6 +218,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
215
218
|
} | undefined>;
|
|
216
219
|
handleRemove: (file: UploadFile) => void;
|
|
217
220
|
readonly: import("vue").ComputedRef<boolean>;
|
|
221
|
+
onSuccess: (response: any, uploadFile: UploadFile) => void;
|
|
222
|
+
onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
223
|
+
beforeUpload: (rawFile: UploadRawFile) => boolean;
|
|
218
224
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
219
225
|
'update:fileList': null;
|
|
220
226
|
remove: (e: UploadFile) => UploadFile;
|
|
@@ -227,36 +233,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
233
|
type: StringConstructor;
|
|
228
234
|
default: string;
|
|
229
235
|
};
|
|
230
|
-
beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile:
|
|
231
|
-
(): (rawFile:
|
|
236
|
+
beforeUpload: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
237
|
+
(): (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
232
238
|
new (): any;
|
|
233
239
|
readonly prototype: any;
|
|
234
|
-
} | ((new (...args: any[]) => (rawFile:
|
|
235
|
-
(): (rawFile:
|
|
240
|
+
} | ((new (...args: any[]) => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | (() => (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>) | {
|
|
241
|
+
(): (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
236
242
|
new (): any;
|
|
237
243
|
readonly prototype: any;
|
|
238
244
|
})[], unknown, unknown, () => void, boolean>;
|
|
239
245
|
beforeRemove: {
|
|
240
|
-
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles:
|
|
246
|
+
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
241
247
|
readonly required: false;
|
|
242
248
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
243
249
|
__epPropKey: true;
|
|
244
250
|
};
|
|
245
|
-
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
246
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
251
|
+
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
252
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
247
253
|
new (): any;
|
|
248
254
|
readonly prototype: any;
|
|
249
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
250
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
255
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
256
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
251
257
|
new (): any;
|
|
252
258
|
readonly prototype: any;
|
|
253
259
|
})[], unknown, unknown, () => void, boolean>;
|
|
254
|
-
onChange: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
255
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
260
|
+
onChange: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
261
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
256
262
|
new (): any;
|
|
257
263
|
readonly prototype: any;
|
|
258
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles:
|
|
259
|
-
(): (uploadFile: UploadFile, uploadFiles:
|
|
264
|
+
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
265
|
+
(): (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
260
266
|
new (): any;
|
|
261
267
|
readonly prototype: any;
|
|
262
268
|
})[], unknown, unknown, () => void, boolean>;
|
|
@@ -269,30 +275,30 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
275
|
new (): any;
|
|
270
276
|
readonly prototype: any;
|
|
271
277
|
})[], unknown, unknown, () => void, boolean>;
|
|
272
|
-
onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles:
|
|
273
|
-
(): (response: any, uploadFile: UploadFile, uploadFiles:
|
|
278
|
+
onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
279
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
274
280
|
new (): any;
|
|
275
281
|
readonly prototype: any;
|
|
276
|
-
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles:
|
|
277
|
-
(): (response: any, uploadFile: UploadFile, uploadFiles:
|
|
282
|
+
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
283
|
+
(): (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
278
284
|
new (): any;
|
|
279
285
|
readonly prototype: any;
|
|
280
286
|
})[], unknown, unknown, () => void, boolean>;
|
|
281
|
-
onProgress: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (evt:
|
|
282
|
-
(): (evt:
|
|
287
|
+
onProgress: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
288
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
283
289
|
new (): any;
|
|
284
290
|
readonly prototype: any;
|
|
285
|
-
} | ((new (...args: any[]) => (evt:
|
|
286
|
-
(): (evt:
|
|
291
|
+
} | ((new (...args: any[]) => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
292
|
+
(): (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
287
293
|
new (): any;
|
|
288
294
|
readonly prototype: any;
|
|
289
295
|
})[], unknown, unknown, () => void, boolean>;
|
|
290
|
-
onError: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
291
|
-
(): (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
296
|
+
onError: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
297
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
292
298
|
new (): any;
|
|
293
299
|
readonly prototype: any;
|
|
294
|
-
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
295
|
-
(): (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
300
|
+
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void) | {
|
|
301
|
+
(): (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
296
302
|
new (): any;
|
|
297
303
|
readonly prototype: any;
|
|
298
304
|
})[], unknown, unknown, () => void, boolean>;
|
|
@@ -323,7 +329,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
323
329
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "select", boolean>;
|
|
324
330
|
fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
325
331
|
autoUpload: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
326
|
-
listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "
|
|
332
|
+
listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "picture" | "text" | "picture-card", unknown, "text", boolean>;
|
|
327
333
|
httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
328
334
|
(): import("element-plus").UploadRequestHandler;
|
|
329
335
|
new (): any;
|
|
@@ -352,7 +358,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
352
358
|
};
|
|
353
359
|
error: StringConstructor;
|
|
354
360
|
validateStatus: {
|
|
355
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "
|
|
361
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
356
362
|
readonly required: false;
|
|
357
363
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
358
364
|
__epPropKey: true;
|
|
@@ -386,6 +392,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
386
392
|
}, {
|
|
387
393
|
required: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
388
394
|
type: string;
|
|
395
|
+
disabled: boolean;
|
|
389
396
|
labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
390
397
|
inlineMessage: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, BooleanConstructor], unknown, unknown>;
|
|
391
398
|
showMessage: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -395,19 +402,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
395
402
|
readonly: boolean;
|
|
396
403
|
name: string;
|
|
397
404
|
data: Record<string, any>;
|
|
398
|
-
|
|
405
|
+
onChange: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
399
406
|
drag: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
400
407
|
multiple: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
408
|
+
onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
409
|
+
listType: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
404
410
|
onPreview: (uploadFile: UploadFile) => void;
|
|
405
411
|
preview: string;
|
|
406
412
|
method: string;
|
|
407
|
-
beforeUpload: (rawFile:
|
|
408
|
-
onSuccess: (response: any, uploadFile: UploadFile, uploadFiles:
|
|
409
|
-
onProgress: (evt:
|
|
410
|
-
onError: (error: Error, uploadFile: UploadFile, uploadFiles:
|
|
413
|
+
beforeUpload: (rawFile: _UploadRawFile) => import("element-plus/es/utils").Awaitable<boolean | void | File | Blob | null | undefined>;
|
|
414
|
+
onSuccess: (response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
415
|
+
onProgress: (evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
416
|
+
onError: (error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
411
417
|
onExceed: (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
412
418
|
action: string;
|
|
413
419
|
withCredentials: boolean;
|
package/index.css
CHANGED
|
@@ -139,13 +139,13 @@
|
|
|
139
139
|
min-width: 100px;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
.el-upload-list__item-status-label{
|
|
144
|
-
z-index: 1;
|
|
145
|
-
}
|
|
146
|
-
.el-upload-list__item .el-icon--close{
|
|
147
|
-
z-index: 1;
|
|
148
|
-
}
|
|
149
|
-
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
150
|
-
color: var(--el-color-primary);
|
|
151
|
-
}
|
|
142
|
+
|
|
143
|
+
.el-upload-list__item-status-label{
|
|
144
|
+
z-index: 1;
|
|
145
|
+
}
|
|
146
|
+
.el-upload-list__item .el-icon--close{
|
|
147
|
+
z-index: 1;
|
|
148
|
+
}
|
|
149
|
+
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
150
|
+
color: var(--el-color-primary);
|
|
151
|
+
}
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export declare const createInputOnEmits: <T2 extends import("@vunk/core").AnyFun
|
|
|
13
13
|
compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
14
14
|
compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
15
15
|
}[P]; };
|
|
16
|
-
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"requireAsteriskPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2>]: T2[k]; }[P]; }>;
|
|
16
|
+
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"model", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"requireAsteriskPosition", keyof T2>, KE> | Exclude<Extract<"labelSuffix", keyof T2>, KE> | Exclude<Extract<"statusIcon", keyof T2>, KE> | Exclude<Extract<"validateOnRuleChange", keyof T2>, KE> | Exclude<Extract<"hideRequiredAsterisk", keyof T2>, KE> | Exclude<Extract<"scrollToError", keyof T2>, KE> | Exclude<Extract<"scrollIntoViewOptions", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"inline", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"model", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2>]: T2[k]; }[P]; }>;
|
|
17
17
|
export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "validate"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> : "validate"]: {
|
|
18
18
|
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
19
19
|
}[P]; };
|
|
@@ -70,7 +70,7 @@ export declare const createColorPickerOnEmits: <T2 extends import("@vunk/core").
|
|
|
70
70
|
'active-change': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
71
71
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
72
72
|
}[P]; };
|
|
73
|
-
export declare const createButtonBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"link", keyof T2>, KE> | Exclude<Extract<"circle", keyof T2>, KE> | Exclude<Extract<"text", keyof T2>, KE> | Exclude<Extract<"color", keyof T2>, KE> | Exclude<Extract<"icon", keyof T2>, KE> | Exclude<Extract<"round", keyof T2>, KE> | Exclude<Extract<"dark", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"nativeType", keyof T2>, KE> | Exclude<Extract<"loadingIcon", keyof T2>, KE> | Exclude<Extract<"plain", keyof T2>, KE> | Exclude<Extract<"bg", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"autoInsertSpace", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: T2[k]; }[P]; }>;
|
|
73
|
+
export declare const createButtonBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"tag", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"link", keyof T2>, KE> | Exclude<Extract<"circle", keyof T2>, KE> | Exclude<Extract<"text", keyof T2>, KE> | Exclude<Extract<"color", keyof T2>, KE> | Exclude<Extract<"icon", keyof T2>, KE> | Exclude<Extract<"round", keyof T2>, KE> | Exclude<Extract<"dark", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"tag", keyof T2>, KE> | Exclude<Extract<"nativeType", keyof T2>, KE> | Exclude<Extract<"loadingIcon", keyof T2>, KE> | Exclude<Extract<"plain", keyof T2>, KE> | Exclude<Extract<"bg", keyof T2>, KE> | Exclude<Extract<"autofocus", keyof T2>, KE> | Exclude<Extract<"autoInsertSpace", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"tag", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"link", keyof T2> | Extract<"circle", keyof T2> | Extract<"text", keyof T2> | Extract<"color", keyof T2> | Extract<"icon", keyof T2> | Extract<"round", keyof T2> | Extract<"dark", keyof T2> | Extract<"disabled", keyof T2> | Extract<"loading", keyof T2> | Extract<"tag", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"plain", keyof T2> | Extract<"bg", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"autoInsertSpace", keyof T2>]: T2[k]; }[P]; }>;
|
|
74
74
|
export declare const createButtonOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "click"[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"click", KE> : "click"]: {
|
|
75
75
|
click: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
76
76
|
}[P]; };
|
|
@@ -2,7 +2,7 @@ import { componentSizes, useTooltipContentProps, tagProps, timePickerDefaultProp
|
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
3
|
import { openBlock, createElementBlock, createElementVNode } from 'vue';
|
|
4
4
|
|
|
5
|
-
/*! Element Plus Icons Vue v2.0
|
|
5
|
+
/*! Element Plus Icons Vue v2.1.0 */
|
|
6
6
|
|
|
7
7
|
// unplugin-vue:/plugin-vue/export-helper
|
|
8
8
|
var export_helper_default = (sfc, props) => {
|
|
@@ -17,12 +17,18 @@ var arrow_down_vue_vue_type_script_lang_default = {
|
|
|
17
17
|
name: "ArrowDown"
|
|
18
18
|
};
|
|
19
19
|
var _hoisted_16 = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, _hoisted_26 = /* @__PURE__ */ createElementVNode(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
+
viewBox: "0 0 1024 1024"
|
|
22
|
+
}, _hoisted_26 = /* @__PURE__ */ createElementVNode(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
fill: "currentColor",
|
|
26
|
+
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
27
|
+
},
|
|
28
|
+
null,
|
|
29
|
+
-1
|
|
30
|
+
/* HOISTED */
|
|
31
|
+
), _hoisted_36 = [
|
|
26
32
|
_hoisted_26
|
|
27
33
|
];
|
|
28
34
|
function _sfc_render6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
@@ -35,15 +41,27 @@ var circle_close_vue_vue_type_script_lang_default = {
|
|
|
35
41
|
name: "CircleClose"
|
|
36
42
|
};
|
|
37
43
|
var _hoisted_151 = {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, _hoisted_251 = /* @__PURE__ */ createElementVNode(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
45
|
+
viewBox: "0 0 1024 1024"
|
|
46
|
+
}, _hoisted_251 = /* @__PURE__ */ createElementVNode(
|
|
47
|
+
"path",
|
|
48
|
+
{
|
|
49
|
+
fill: "currentColor",
|
|
50
|
+
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"
|
|
51
|
+
},
|
|
52
|
+
null,
|
|
53
|
+
-1
|
|
54
|
+
/* HOISTED */
|
|
55
|
+
), _hoisted_350 = /* @__PURE__ */ createElementVNode(
|
|
56
|
+
"path",
|
|
57
|
+
{
|
|
58
|
+
fill: "currentColor",
|
|
59
|
+
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"
|
|
60
|
+
},
|
|
61
|
+
null,
|
|
62
|
+
-1
|
|
63
|
+
/* HOISTED */
|
|
64
|
+
), _hoisted_416 = [
|
|
47
65
|
_hoisted_251,
|
|
48
66
|
_hoisted_350
|
|
49
67
|
];
|
|
@@ -265,15 +265,14 @@ export declare const cascaderProps: {
|
|
|
265
265
|
type: BooleanConstructor;
|
|
266
266
|
default: boolean;
|
|
267
267
|
};
|
|
268
|
-
modelValue:
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
props: {
|
|
274
|
-
type: PropType<import("element-plus").CascaderProps>;
|
|
275
|
-
default: () => import("element-plus").CascaderProps;
|
|
268
|
+
modelValue: {
|
|
269
|
+
readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus/es/components/cascader-panel/src/node").CascaderValue & {}) | (() => import("element-plus/es/components/cascader-panel/src/node").CascaderValue) | ((new (...args: any[]) => import("element-plus/es/components/cascader-panel/src/node").CascaderValue & {}) | (() => import("element-plus/es/components/cascader-panel/src/node").CascaderValue))[], unknown, unknown>>;
|
|
270
|
+
readonly required: false;
|
|
271
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
272
|
+
__epPropKey: true;
|
|
276
273
|
};
|
|
274
|
+
options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]))[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
|
|
275
|
+
props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps))[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
|
|
277
276
|
};
|
|
278
277
|
export declare const cascaderEmits: {
|
|
279
278
|
"update:modelValue": null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ref: https://github1s.com/Envov/progress-it/blob/master/src/index.ts#L1-L61
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export declare type Effect = (percent: number, state: boolean | 'fail') => void;
|
|
6
|
+
export declare type Setter = (newState: boolean | 'fail') => Setter;
|
|
7
|
+
declare type progress = (effect: Effect, option?: Partial<IProgressPotions>) => (initState: boolean) => (newState: boolean | 'fail') => Setter;
|
|
8
|
+
declare type IProgressPotions = {
|
|
9
|
+
percent: number;
|
|
10
|
+
interval: number;
|
|
11
|
+
speed: number;
|
|
12
|
+
timeLine: number;
|
|
13
|
+
timer: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const progress: progress;
|
|
16
|
+
export default progress;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const ifElse = (fn1, fn2, fn3) => (x) => fn1(x) ? fn2(x) : fn3(x);
|
|
21
|
+
const progress = (effect, option) => (state) => {
|
|
22
|
+
const $data = __spreadProps(__spreadValues({
|
|
23
|
+
interval: 100,
|
|
24
|
+
speed: 0.01
|
|
25
|
+
}, option), {
|
|
26
|
+
percent: 0,
|
|
27
|
+
timeLine: 0,
|
|
28
|
+
timer: void 0
|
|
29
|
+
});
|
|
30
|
+
const $stateInitFlow = ($data2) => ifElse(
|
|
31
|
+
(state2) => Boolean(state2),
|
|
32
|
+
(state2) => effect(1, state2),
|
|
33
|
+
(state2) => setInterval(() => {
|
|
34
|
+
$data2.timeLine++;
|
|
35
|
+
$data2.percent = state2 ? 1 : (-1 / ($data2.speed * $data2.timeLine + 1) + 1) * 1;
|
|
36
|
+
effect($data2.percent, state2);
|
|
37
|
+
}, $data2.interval)
|
|
38
|
+
);
|
|
39
|
+
$data.timer = $stateInitFlow($data)(state);
|
|
40
|
+
const setter = (newState) => {
|
|
41
|
+
if (typeof newState !== "boolean") {
|
|
42
|
+
$data.timer && clearInterval($data.timer);
|
|
43
|
+
$data.percent = 1;
|
|
44
|
+
effect($data.percent, "fail");
|
|
45
|
+
return setter;
|
|
46
|
+
}
|
|
47
|
+
if (newState) {
|
|
48
|
+
$data.timer && clearInterval($data.timer);
|
|
49
|
+
$data.percent = 1;
|
|
50
|
+
effect($data.percent, newState);
|
|
51
|
+
}
|
|
52
|
+
return setter;
|
|
53
|
+
};
|
|
54
|
+
return setter;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { progress as default };
|