@vtj/designer 0.16.11 → 0.16.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor-Ce_uPB1q.js +4 -0
- package/dist/{index-D40kzfbN.js → index-Cm-7k5DS.js} +1397 -1391
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/types/components/hooks/useAI.d.ts +1 -1
- package/types/components/hooks/useOpenApi.d.ts +1 -1
- package/types/components/setters/image.d.ts +42 -267
- package/types/components/setters/index.d.ts +42 -266
- package/types/components/shared/binder.d.ts +56 -304
- package/types/components/shared/panel.d.ts +5 -13
- package/types/components/shared/viewer.d.ts +1231 -199
- package/types/components/widgets/ai/image-input.d.ts +42 -267
- package/types/components/widgets/ai/index.d.ts +4 -10
- package/types/components/widgets/ai/json-input.d.ts +120 -570
- package/types/components/widgets/apis/form.d.ts +32 -163
- package/types/components/widgets/apis/swagger.d.ts +2 -4
- package/types/components/widgets/designer/index.d.ts +2 -4
- package/types/components/widgets/devtools/index.d.ts +4 -10
- package/types/components/widgets/docs/index.d.ts +4 -10
- package/types/components/widgets/env/index.d.ts +2 -4
- package/types/components/widgets/i18n/index.d.ts +2 -4
- package/types/components/widgets/index.d.ts +16 -46
- package/types/components/widgets/market/index.d.ts +4 -10
- package/types/components/widgets/scripts/group.d.ts +38 -220
- package/types/components/widgets/style/spacing-input.d.ts +2 -4
- package/types/framework/openapi.d.ts +1 -1
- package/types/utils.d.ts +20 -16
- package/types/version.d.ts +2 -2
- package/dist/Editor-K7Frwt8a.js +0 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance,
|
|
2
|
-
import { UploadFile,
|
|
1
|
+
import { nextTick, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, StyleValue, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ShallowRef, ComputedRef, Ref, CSSProperties, GlobalComponents, GlobalDirectives, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
2
|
+
import { UploadFile, ComponentSize, InputModelModifiers, InputType, InputAutoSize, InputProps, UploadHooks, Crossorigin, UploadData, UploadRawFile, UploadUserFile, ListType, UploadRequestHandler, UploadProps, UploadStatus } from 'element-plus';
|
|
3
|
+
import { IconPropType } from 'element-plus/es/utils/index.mjs';
|
|
3
4
|
import { OnCleanup } from '@vue/reactivity';
|
|
4
|
-
import { Awaitable
|
|
5
|
-
import { UploadFile } from 'element-plus/es/components/upload/src/upload.mjs';
|
|
5
|
+
import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
|
|
6
6
|
export interface Props {
|
|
7
7
|
loading?: boolean;
|
|
8
8
|
}
|
|
@@ -14,67 +14,53 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
14
14
|
textInputRef: ({
|
|
15
15
|
$: ComponentInternalInstance;
|
|
16
16
|
$data: {};
|
|
17
|
-
$props:
|
|
18
|
-
disabled: boolean;
|
|
19
|
-
tabindex: string | number;
|
|
20
|
-
type: InputType;
|
|
21
|
-
modelValue: string | number | null;
|
|
22
|
-
modelModifiers: InputModelModifiers;
|
|
23
|
-
autocomplete: string;
|
|
24
|
-
clearIcon: string | Component;
|
|
25
|
-
wordLimitPosition: "inside" | "outside";
|
|
26
|
-
validateEvent: boolean;
|
|
27
|
-
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
28
|
-
rows: number;
|
|
29
|
-
}> & Omit<{
|
|
30
|
-
readonly type: InputType;
|
|
31
|
-
readonly modelValue: string | number | null;
|
|
32
|
-
readonly tabindex: string | number;
|
|
33
|
-
readonly modelModifiers: InputModelModifiers;
|
|
34
|
-
readonly autocomplete: string;
|
|
35
|
-
readonly wordLimitPosition: "inside" | "outside";
|
|
36
|
-
readonly validateEvent: boolean;
|
|
37
|
-
readonly inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
38
|
-
readonly rows: number;
|
|
39
|
-
readonly name?: string | undefined;
|
|
40
|
-
readonly size?: ComponentSize | undefined;
|
|
17
|
+
$props: {
|
|
41
18
|
readonly id?: string | undefined;
|
|
19
|
+
readonly size?: ComponentSize | undefined;
|
|
42
20
|
readonly disabled?: boolean | undefined;
|
|
43
|
-
readonly
|
|
44
|
-
readonly
|
|
45
|
-
readonly form?: string | undefined;
|
|
46
|
-
readonly placeholder?: string | undefined;
|
|
21
|
+
readonly modelValue?: string | number | null | undefined | undefined;
|
|
22
|
+
readonly modelModifiers?: InputModelModifiers | undefined;
|
|
47
23
|
readonly maxlength?: string | number | undefined;
|
|
48
24
|
readonly minlength?: string | number | undefined;
|
|
25
|
+
readonly type?: InputType | undefined;
|
|
49
26
|
readonly resize?: "none" | "both" | "horizontal" | "vertical" | undefined;
|
|
50
27
|
readonly autosize?: InputAutoSize | undefined;
|
|
28
|
+
readonly autocomplete?: string | undefined;
|
|
51
29
|
readonly formatter?: ((value: string) => string) | undefined;
|
|
52
30
|
readonly parser?: ((value: string) => string) | undefined;
|
|
31
|
+
readonly placeholder?: string | undefined;
|
|
32
|
+
readonly form?: string | undefined;
|
|
53
33
|
readonly readonly?: boolean | undefined;
|
|
54
34
|
readonly clearable?: boolean | undefined;
|
|
55
|
-
readonly clearIcon?:
|
|
35
|
+
readonly clearIcon?: IconPropType | undefined;
|
|
56
36
|
readonly showPassword?: boolean | undefined;
|
|
57
37
|
readonly showWordLimit?: boolean | undefined;
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
38
|
+
readonly wordLimitPosition?: "inside" | "outside" | undefined;
|
|
39
|
+
readonly suffixIcon?: IconPropType | undefined;
|
|
40
|
+
readonly prefixIcon?: IconPropType | undefined;
|
|
60
41
|
readonly containerRole?: string | undefined;
|
|
61
|
-
readonly
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
42
|
+
readonly tabindex?: string | number | undefined;
|
|
43
|
+
readonly validateEvent?: boolean | undefined;
|
|
44
|
+
readonly inputStyle?: StyleValue;
|
|
45
|
+
readonly autofocus?: boolean | undefined;
|
|
46
|
+
readonly rows?: number | undefined;
|
|
47
|
+
readonly ariaLabel?: string | undefined;
|
|
48
|
+
readonly inputmode?: "text" | "search" | "url" | "none" | "email" | "tel" | "numeric" | "decimal" | undefined;
|
|
49
|
+
readonly name?: string | undefined;
|
|
50
|
+
readonly onBlur?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
51
|
+
readonly onChange?: ((value: string, evt?: Event | undefined) => any) | undefined | undefined;
|
|
52
|
+
readonly onCompositionend?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
53
|
+
readonly onCompositionstart?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
54
|
+
readonly onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined | undefined;
|
|
55
|
+
readonly onFocus?: ((evt: FocusEvent) => any) | undefined | undefined;
|
|
56
|
+
readonly onInput?: ((value: string) => any) | undefined | undefined;
|
|
57
|
+
readonly onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined | undefined;
|
|
58
|
+
readonly onMouseenter?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
59
|
+
readonly onMouseleave?: ((evt: MouseEvent) => any) | undefined | undefined;
|
|
60
|
+
readonly onClear?: ((evt: MouseEvent | undefined) => any) | undefined | undefined;
|
|
61
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined | undefined;
|
|
62
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
63
|
+
$attrs: Attrs;
|
|
78
64
|
$refs: {
|
|
79
65
|
[x: string]: unknown;
|
|
80
66
|
};
|
|
@@ -84,164 +70,56 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
84
70
|
$root: ComponentPublicInstance | null;
|
|
85
71
|
$parent: ComponentPublicInstance | null;
|
|
86
72
|
$host: Element | null;
|
|
87
|
-
$emit: ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "keydown", evt: KeyboardEvent | Event) => void) & ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void);
|
|
73
|
+
$emit: ((event: "mouseenter", evt: MouseEvent) => void) & ((event: "mouseleave", evt: MouseEvent) => void) & ((event: "keydown", evt: KeyboardEvent | Event) => void) & ((event: "clear", evt: MouseEvent | undefined) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "focus", evt: FocusEvent) => void) & ((event: "blur", evt: FocusEvent) => void) & ((event: "change", value: string, evt?: Event | undefined) => void) & ((event: "compositionend", evt: CompositionEvent) => void) & ((event: "compositionstart", evt: CompositionEvent) => void) & ((event: "compositionupdate", evt: CompositionEvent) => void);
|
|
88
74
|
$el: any;
|
|
89
|
-
$options: ComponentOptionsBase<Readonly<
|
|
90
|
-
name: {
|
|
91
|
-
type: PropType<string>;
|
|
92
|
-
};
|
|
93
|
-
type: {
|
|
94
|
-
type: PropType<InputType>;
|
|
95
|
-
default: InputType;
|
|
96
|
-
};
|
|
97
|
-
size: {
|
|
98
|
-
type: PropType<"" | "small" | "default" | "large">;
|
|
99
|
-
};
|
|
100
|
-
id: {
|
|
101
|
-
type: PropType<string>;
|
|
102
|
-
};
|
|
103
|
-
modelValue: {
|
|
104
|
-
type: PropType<string | number | null>;
|
|
105
|
-
default: "";
|
|
106
|
-
};
|
|
107
|
-
disabled: {
|
|
108
|
-
type: PropType<boolean>;
|
|
109
|
-
default: undefined;
|
|
110
|
-
};
|
|
111
|
-
ariaLabel: {
|
|
112
|
-
type: PropType<string>;
|
|
113
|
-
};
|
|
114
|
-
tabindex: {
|
|
115
|
-
type: PropType<string | number>;
|
|
116
|
-
default: 0;
|
|
117
|
-
};
|
|
118
|
-
autofocus: {
|
|
119
|
-
type: PropType<boolean>;
|
|
120
|
-
};
|
|
121
|
-
form: {
|
|
122
|
-
type: PropType<string>;
|
|
123
|
-
};
|
|
124
|
-
placeholder: {
|
|
125
|
-
type: PropType<string>;
|
|
126
|
-
};
|
|
127
|
-
modelModifiers: {
|
|
128
|
-
type: PropType<InputModelModifiers>;
|
|
129
|
-
default: () => {};
|
|
130
|
-
};
|
|
131
|
-
maxlength: {
|
|
132
|
-
type: PropType<string | number>;
|
|
133
|
-
};
|
|
134
|
-
minlength: {
|
|
135
|
-
type: PropType<string | number>;
|
|
136
|
-
};
|
|
137
|
-
resize: {
|
|
138
|
-
type: PropType<"vertical" | "horizontal" | "none" | "both">;
|
|
139
|
-
};
|
|
140
|
-
autosize: {
|
|
141
|
-
type: PropType<InputAutoSize>;
|
|
142
|
-
};
|
|
143
|
-
autocomplete: {
|
|
144
|
-
type: PropType<string>;
|
|
145
|
-
default: "off";
|
|
146
|
-
};
|
|
147
|
-
formatter: {
|
|
148
|
-
type: PropType<(value: string) => string>;
|
|
149
|
-
};
|
|
150
|
-
parser: {
|
|
151
|
-
type: PropType<(value: string) => string>;
|
|
152
|
-
};
|
|
153
|
-
readonly: {
|
|
154
|
-
type: PropType<boolean>;
|
|
155
|
-
};
|
|
156
|
-
clearable: {
|
|
157
|
-
type: PropType<boolean>;
|
|
158
|
-
};
|
|
159
|
-
clearIcon: {
|
|
160
|
-
type: PropType<string | Component>;
|
|
161
|
-
default: any;
|
|
162
|
-
};
|
|
163
|
-
showPassword: {
|
|
164
|
-
type: PropType<boolean>;
|
|
165
|
-
};
|
|
166
|
-
showWordLimit: {
|
|
167
|
-
type: PropType<boolean>;
|
|
168
|
-
};
|
|
169
|
-
wordLimitPosition: {
|
|
170
|
-
type: PropType<"inside" | "outside">;
|
|
171
|
-
default: "inside";
|
|
172
|
-
};
|
|
173
|
-
suffixIcon: {
|
|
174
|
-
type: PropType<string | Component>;
|
|
175
|
-
};
|
|
176
|
-
prefixIcon: {
|
|
177
|
-
type: PropType<string | Component>;
|
|
178
|
-
};
|
|
179
|
-
containerRole: {
|
|
180
|
-
type: PropType<string>;
|
|
181
|
-
};
|
|
182
|
-
validateEvent: {
|
|
183
|
-
type: PropType<boolean>;
|
|
184
|
-
default: true;
|
|
185
|
-
};
|
|
186
|
-
inputStyle: {
|
|
187
|
-
type: PropType<string | false | CSSProperties | StyleValue[] | null>;
|
|
188
|
-
default: () => {};
|
|
189
|
-
};
|
|
190
|
-
rows: {
|
|
191
|
-
type: PropType<number>;
|
|
192
|
-
default: 2;
|
|
193
|
-
};
|
|
194
|
-
inputmode: {
|
|
195
|
-
type: PropType<"text" | "search" | "url" | "email" | "tel" | "none" | "numeric" | "decimal">;
|
|
196
|
-
};
|
|
197
|
-
}>> & {
|
|
198
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
199
|
-
onInput?: ((value: string) => any) | undefined;
|
|
200
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
201
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
75
|
+
$options: ComponentOptionsBase<Readonly< InputProps> & Readonly<{
|
|
202
76
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
77
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
203
78
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
204
79
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
205
80
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
81
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
82
|
+
onInput?: ((value: string) => any) | undefined;
|
|
206
83
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
207
84
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
208
85
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
209
|
-
onClear?: (() => any) | undefined;
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
86
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
87
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
88
|
+
}>, {
|
|
89
|
+
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
90
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
213
91
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
214
92
|
textareaStyle: ComputedRef<StyleValue>;
|
|
215
|
-
autosize: Ref< InputAutoSize | undefined>;
|
|
216
|
-
isComposing: Ref<boolean>;
|
|
93
|
+
autosize: Ref< InputAutoSize | undefined, InputAutoSize | undefined>;
|
|
94
|
+
isComposing: Ref<boolean, boolean>;
|
|
217
95
|
focus: () => void | undefined;
|
|
218
96
|
blur: () => void | undefined;
|
|
219
97
|
select: () => void;
|
|
220
|
-
clear: () => void;
|
|
98
|
+
clear: (evt?: MouseEvent) => void;
|
|
221
99
|
resizeTextarea: () => void;
|
|
222
|
-
},
|
|
223
|
-
input: (value: string) => void;
|
|
224
|
-
focus: (evt: FocusEvent) => void;
|
|
225
|
-
"update:modelValue": (value: string) => void;
|
|
226
|
-
change: (value: string, evt?: Event | undefined) => void;
|
|
227
|
-
clear: () => void;
|
|
100
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
228
101
|
blur: (evt: FocusEvent) => void;
|
|
102
|
+
change: (value: string, evt?: Event | undefined) => void;
|
|
229
103
|
compositionend: (evt: CompositionEvent) => void;
|
|
230
104
|
compositionstart: (evt: CompositionEvent) => void;
|
|
231
105
|
compositionupdate: (evt: CompositionEvent) => void;
|
|
106
|
+
focus: (evt: FocusEvent) => void;
|
|
107
|
+
input: (value: string) => void;
|
|
232
108
|
keydown: (evt: Event | KeyboardEvent) => void;
|
|
233
109
|
mouseenter: (evt: MouseEvent) => void;
|
|
234
110
|
mouseleave: (evt: MouseEvent) => void;
|
|
111
|
+
clear: (evt: MouseEvent | undefined) => void;
|
|
112
|
+
"update:modelValue": (value: string) => void;
|
|
235
113
|
}, string, {
|
|
236
|
-
disabled: boolean;
|
|
237
|
-
tabindex: string | number;
|
|
238
114
|
type: InputType;
|
|
115
|
+
disabled: boolean;
|
|
116
|
+
clearIcon: IconPropType;
|
|
117
|
+
validateEvent: boolean;
|
|
239
118
|
modelValue: string | number | null;
|
|
240
119
|
modelModifiers: InputModelModifiers;
|
|
241
120
|
autocomplete: string;
|
|
242
|
-
clearIcon: string | Component;
|
|
243
121
|
wordLimitPosition: "inside" | "outside";
|
|
244
|
-
|
|
122
|
+
tabindex: string | number;
|
|
245
123
|
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
246
124
|
rows: number;
|
|
247
125
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
@@ -265,149 +143,41 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
265
143
|
$nextTick: typeof nextTick;
|
|
266
144
|
$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;
|
|
267
145
|
} & Readonly<{
|
|
268
|
-
disabled: boolean;
|
|
269
|
-
tabindex: string | number;
|
|
270
146
|
type: InputType;
|
|
147
|
+
disabled: boolean;
|
|
148
|
+
clearIcon: IconPropType;
|
|
149
|
+
validateEvent: boolean;
|
|
271
150
|
modelValue: string | number | null;
|
|
272
151
|
modelModifiers: InputModelModifiers;
|
|
273
152
|
autocomplete: string;
|
|
274
|
-
clearIcon: string | Component;
|
|
275
153
|
wordLimitPosition: "inside" | "outside";
|
|
276
|
-
|
|
154
|
+
tabindex: string | number;
|
|
277
155
|
inputStyle: string | false | CSSProperties | StyleValue[] | null;
|
|
278
156
|
rows: number;
|
|
279
|
-
}> & Omit<Readonly<
|
|
280
|
-
name: {
|
|
281
|
-
type: PropType<string>;
|
|
282
|
-
};
|
|
283
|
-
type: {
|
|
284
|
-
type: PropType<InputType>;
|
|
285
|
-
default: InputType;
|
|
286
|
-
};
|
|
287
|
-
size: {
|
|
288
|
-
type: PropType<"" | "small" | "default" | "large">;
|
|
289
|
-
};
|
|
290
|
-
id: {
|
|
291
|
-
type: PropType<string>;
|
|
292
|
-
};
|
|
293
|
-
modelValue: {
|
|
294
|
-
type: PropType<string | number | null>;
|
|
295
|
-
default: "";
|
|
296
|
-
};
|
|
297
|
-
disabled: {
|
|
298
|
-
type: PropType<boolean>;
|
|
299
|
-
default: undefined;
|
|
300
|
-
};
|
|
301
|
-
ariaLabel: {
|
|
302
|
-
type: PropType<string>;
|
|
303
|
-
};
|
|
304
|
-
tabindex: {
|
|
305
|
-
type: PropType<string | number>;
|
|
306
|
-
default: 0;
|
|
307
|
-
};
|
|
308
|
-
autofocus: {
|
|
309
|
-
type: PropType<boolean>;
|
|
310
|
-
};
|
|
311
|
-
form: {
|
|
312
|
-
type: PropType<string>;
|
|
313
|
-
};
|
|
314
|
-
placeholder: {
|
|
315
|
-
type: PropType<string>;
|
|
316
|
-
};
|
|
317
|
-
modelModifiers: {
|
|
318
|
-
type: PropType<InputModelModifiers>;
|
|
319
|
-
default: () => {};
|
|
320
|
-
};
|
|
321
|
-
maxlength: {
|
|
322
|
-
type: PropType<string | number>;
|
|
323
|
-
};
|
|
324
|
-
minlength: {
|
|
325
|
-
type: PropType<string | number>;
|
|
326
|
-
};
|
|
327
|
-
resize: {
|
|
328
|
-
type: PropType<"vertical" | "horizontal" | "none" | "both">;
|
|
329
|
-
};
|
|
330
|
-
autosize: {
|
|
331
|
-
type: PropType<InputAutoSize>;
|
|
332
|
-
};
|
|
333
|
-
autocomplete: {
|
|
334
|
-
type: PropType<string>;
|
|
335
|
-
default: "off";
|
|
336
|
-
};
|
|
337
|
-
formatter: {
|
|
338
|
-
type: PropType<(value: string) => string>;
|
|
339
|
-
};
|
|
340
|
-
parser: {
|
|
341
|
-
type: PropType<(value: string) => string>;
|
|
342
|
-
};
|
|
343
|
-
readonly: {
|
|
344
|
-
type: PropType<boolean>;
|
|
345
|
-
};
|
|
346
|
-
clearable: {
|
|
347
|
-
type: PropType<boolean>;
|
|
348
|
-
};
|
|
349
|
-
clearIcon: {
|
|
350
|
-
type: PropType<string | Component>;
|
|
351
|
-
default: any;
|
|
352
|
-
};
|
|
353
|
-
showPassword: {
|
|
354
|
-
type: PropType<boolean>;
|
|
355
|
-
};
|
|
356
|
-
showWordLimit: {
|
|
357
|
-
type: PropType<boolean>;
|
|
358
|
-
};
|
|
359
|
-
wordLimitPosition: {
|
|
360
|
-
type: PropType<"inside" | "outside">;
|
|
361
|
-
default: "inside";
|
|
362
|
-
};
|
|
363
|
-
suffixIcon: {
|
|
364
|
-
type: PropType<string | Component>;
|
|
365
|
-
};
|
|
366
|
-
prefixIcon: {
|
|
367
|
-
type: PropType<string | Component>;
|
|
368
|
-
};
|
|
369
|
-
containerRole: {
|
|
370
|
-
type: PropType<string>;
|
|
371
|
-
};
|
|
372
|
-
validateEvent: {
|
|
373
|
-
type: PropType<boolean>;
|
|
374
|
-
default: true;
|
|
375
|
-
};
|
|
376
|
-
inputStyle: {
|
|
377
|
-
type: PropType<string | false | CSSProperties | StyleValue[] | null>;
|
|
378
|
-
default: () => {};
|
|
379
|
-
};
|
|
380
|
-
rows: {
|
|
381
|
-
type: PropType<number>;
|
|
382
|
-
default: 2;
|
|
383
|
-
};
|
|
384
|
-
inputmode: {
|
|
385
|
-
type: PropType<"text" | "search" | "url" | "email" | "tel" | "none" | "numeric" | "decimal">;
|
|
386
|
-
};
|
|
387
|
-
}>> & {
|
|
388
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
389
|
-
onInput?: ((value: string) => any) | undefined;
|
|
390
|
-
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
391
|
-
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
157
|
+
}> & Omit<Readonly< InputProps> & Readonly<{
|
|
392
158
|
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
159
|
+
onChange?: ((value: string, evt?: Event | undefined) => any) | undefined;
|
|
393
160
|
onCompositionend?: ((evt: CompositionEvent) => any) | undefined;
|
|
394
161
|
onCompositionstart?: ((evt: CompositionEvent) => any) | undefined;
|
|
395
162
|
onCompositionupdate?: ((evt: CompositionEvent) => any) | undefined;
|
|
163
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
164
|
+
onInput?: ((value: string) => any) | undefined;
|
|
396
165
|
onKeydown?: ((evt: Event | KeyboardEvent) => any) | undefined;
|
|
397
166
|
onMouseenter?: ((evt: MouseEvent) => any) | undefined;
|
|
398
167
|
onMouseleave?: ((evt: MouseEvent) => any) | undefined;
|
|
399
|
-
onClear?: (() => any) | undefined;
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
168
|
+
onClear?: ((evt: MouseEvent | undefined) => any) | undefined;
|
|
169
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
170
|
+
}>, "type" | "clear" | "ref" | "modelValue" | "disabled" | "tabindex" | "input" | "select" | "textarea" | "modelModifiers" | "autosize" | "autocomplete" | "clearIcon" | "wordLimitPosition" | "validateEvent" | "inputStyle" | "rows" | "textareaStyle" | "isComposing" | "focus" | "blur" | "resizeTextarea"> & ShallowUnwrapRef<{
|
|
171
|
+
input: ShallowRef<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
172
|
+
textarea: ShallowRef<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
|
|
403
173
|
ref: ComputedRef<HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
404
174
|
textareaStyle: ComputedRef<StyleValue>;
|
|
405
|
-
autosize: Ref< InputAutoSize | undefined>;
|
|
406
|
-
isComposing: Ref<boolean>;
|
|
175
|
+
autosize: Ref< InputAutoSize | undefined, InputAutoSize | undefined>;
|
|
176
|
+
isComposing: Ref<boolean, boolean>;
|
|
407
177
|
focus: () => void | undefined;
|
|
408
178
|
blur: () => void | undefined;
|
|
409
179
|
select: () => void;
|
|
410
|
-
clear: () => void;
|
|
180
|
+
clear: (evt?: MouseEvent) => void;
|
|
411
181
|
resizeTextarea: () => void;
|
|
412
182
|
}> & {} & ComponentCustomProperties & {} & {
|
|
413
183
|
$slots: {
|
|
@@ -416,6 +186,10 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
416
186
|
prefix?: (props: {}) => any;
|
|
417
187
|
} & {
|
|
418
188
|
suffix?: (props: {}) => any;
|
|
189
|
+
} & {
|
|
190
|
+
'password-icon'?: (props: {
|
|
191
|
+
visible: boolean;
|
|
192
|
+
}) => any;
|
|
419
193
|
} & {
|
|
420
194
|
append?: (props: {}) => any;
|
|
421
195
|
};
|
|
@@ -423,58 +197,36 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
423
197
|
uploadRef: ({
|
|
424
198
|
$: ComponentInternalInstance;
|
|
425
199
|
$data: {};
|
|
426
|
-
$props:
|
|
427
|
-
|
|
428
|
-
disabled: boolean;
|
|
429
|
-
name: string;
|
|
430
|
-
onProgress: UploadHooks["onProgress"];
|
|
431
|
-
onChange: UploadHooks["onChange"];
|
|
432
|
-
onError: UploadHooks["onError"];
|
|
433
|
-
method: string;
|
|
434
|
-
action: string;
|
|
435
|
-
accept: string;
|
|
436
|
-
beforeUpload: UploadHooks["beforeUpload"];
|
|
437
|
-
onRemove: UploadHooks["onRemove"];
|
|
438
|
-
onPreview: UploadHooks["onPreview"];
|
|
439
|
-
onSuccess: UploadHooks["onSuccess"];
|
|
440
|
-
onExceed: UploadHooks["onExceed"];
|
|
441
|
-
showFileList: boolean;
|
|
442
|
-
fileList: UploadUserFile[];
|
|
443
|
-
autoUpload: boolean;
|
|
444
|
-
listType: ListType;
|
|
445
|
-
httpRequest: UploadRequestHandler;
|
|
446
|
-
}> & Omit<{
|
|
447
|
-
readonly name: string;
|
|
448
|
-
readonly method: string;
|
|
449
|
-
readonly data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
450
|
-
readonly onChange: UploadHooks["onChange"];
|
|
451
|
-
readonly onError: UploadHooks["onError"];
|
|
452
|
-
readonly onProgress: UploadHooks["onProgress"];
|
|
453
|
-
readonly beforeUpload: UploadHooks["beforeUpload"];
|
|
454
|
-
readonly onRemove: UploadHooks["onRemove"];
|
|
455
|
-
readonly onPreview: UploadHooks["onPreview"];
|
|
456
|
-
readonly onSuccess: UploadHooks["onSuccess"];
|
|
457
|
-
readonly onExceed: UploadHooks["onExceed"];
|
|
458
|
-
readonly action: string;
|
|
459
|
-
readonly showFileList: boolean;
|
|
460
|
-
readonly accept: string;
|
|
461
|
-
readonly fileList: UploadUserFile[];
|
|
462
|
-
readonly autoUpload: boolean;
|
|
463
|
-
readonly listType: ListType;
|
|
464
|
-
readonly httpRequest: UploadRequestHandler;
|
|
465
|
-
readonly disabled?: boolean | undefined;
|
|
466
|
-
readonly headers?: (Headers | Record<string, any>) | undefined;
|
|
467
|
-
readonly crossorigin?: Crossorigin | undefined;
|
|
200
|
+
$props: {
|
|
201
|
+
readonly beforeUpload?: UploadHooks["beforeUpload"] | undefined;
|
|
468
202
|
readonly beforeRemove?: UploadHooks["beforeRemove"] | undefined;
|
|
203
|
+
readonly onRemove?: UploadHooks["onRemove"] | undefined;
|
|
204
|
+
readonly onChange?: UploadHooks["onChange"] | undefined;
|
|
205
|
+
readonly onPreview?: UploadHooks["onPreview"] | undefined;
|
|
206
|
+
readonly onSuccess?: UploadHooks["onSuccess"] | undefined;
|
|
207
|
+
readonly onProgress?: UploadHooks["onProgress"] | undefined;
|
|
208
|
+
readonly onError?: UploadHooks["onError"] | undefined;
|
|
209
|
+
readonly onExceed?: UploadHooks["onExceed"] | undefined;
|
|
210
|
+
readonly crossorigin?: Crossorigin | undefined;
|
|
211
|
+
readonly action?: string | undefined;
|
|
212
|
+
readonly headers?: (Headers | Record<string, any>) | undefined;
|
|
213
|
+
readonly method?: string | undefined;
|
|
214
|
+
readonly data?: ( Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | undefined;
|
|
469
215
|
readonly multiple?: boolean | undefined;
|
|
216
|
+
readonly name?: string | undefined;
|
|
470
217
|
readonly drag?: boolean | undefined;
|
|
471
218
|
readonly withCredentials?: boolean | undefined;
|
|
219
|
+
readonly showFileList?: boolean | undefined;
|
|
220
|
+
readonly accept?: string | undefined;
|
|
221
|
+
readonly fileList?: UploadUserFile[] | undefined;
|
|
222
|
+
readonly autoUpload?: boolean | undefined;
|
|
223
|
+
readonly listType?: ListType | undefined;
|
|
224
|
+
readonly httpRequest?: UploadRequestHandler | undefined;
|
|
225
|
+
readonly disabled?: boolean | undefined;
|
|
472
226
|
readonly limit?: number | undefined;
|
|
473
227
|
readonly directory?: boolean | undefined;
|
|
474
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps
|
|
475
|
-
$attrs:
|
|
476
|
-
[x: string]: unknown;
|
|
477
|
-
};
|
|
228
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
229
|
+
$attrs: Attrs;
|
|
478
230
|
$refs: {
|
|
479
231
|
[x: string]: unknown;
|
|
480
232
|
};
|
|
@@ -486,129 +238,28 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
486
238
|
$host: Element | null;
|
|
487
239
|
$emit: (event: string, ...args: any[]) => void;
|
|
488
240
|
$el: any;
|
|
489
|
-
$options: ComponentOptionsBase<Readonly<
|
|
490
|
-
name: {
|
|
491
|
-
type: PropType<string>;
|
|
492
|
-
default: "file";
|
|
493
|
-
};
|
|
494
|
-
method: {
|
|
495
|
-
type: PropType<string>;
|
|
496
|
-
default: "post";
|
|
497
|
-
};
|
|
498
|
-
disabled: {
|
|
499
|
-
type: PropType<boolean>;
|
|
500
|
-
default: undefined;
|
|
501
|
-
};
|
|
502
|
-
headers: {
|
|
503
|
-
type: PropType<Record<string, any> | Headers>;
|
|
504
|
-
};
|
|
505
|
-
data: {
|
|
506
|
-
type: PropType< Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)>;
|
|
507
|
-
default: () => Mutable<{}>;
|
|
508
|
-
};
|
|
509
|
-
onChange: {
|
|
510
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
511
|
-
default: () => void;
|
|
512
|
-
};
|
|
513
|
-
onError: {
|
|
514
|
-
type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
515
|
-
default: () => void;
|
|
516
|
-
};
|
|
517
|
-
onProgress: {
|
|
518
|
-
type: PropType<(evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
519
|
-
default: () => void;
|
|
520
|
-
};
|
|
521
|
-
crossorigin: {
|
|
522
|
-
type: PropType<Crossorigin>;
|
|
523
|
-
};
|
|
524
|
-
beforeUpload: {
|
|
525
|
-
type: PropType<(rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>>;
|
|
526
|
-
default: () => void;
|
|
527
|
-
};
|
|
528
|
-
beforeRemove: {
|
|
529
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
530
|
-
};
|
|
531
|
-
onRemove: {
|
|
532
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
533
|
-
default: () => void;
|
|
534
|
-
};
|
|
535
|
-
onPreview: {
|
|
536
|
-
type: PropType<(uploadFile: UploadFile) => void>;
|
|
537
|
-
default: () => void;
|
|
538
|
-
};
|
|
539
|
-
onSuccess: {
|
|
540
|
-
type: PropType<(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
541
|
-
default: () => void;
|
|
542
|
-
};
|
|
543
|
-
onExceed: {
|
|
544
|
-
type: PropType<(files: File[], uploadFiles: UploadUserFile[]) => void>;
|
|
545
|
-
default: () => void;
|
|
546
|
-
};
|
|
547
|
-
action: {
|
|
548
|
-
type: PropType<string>;
|
|
549
|
-
default: "#";
|
|
550
|
-
};
|
|
551
|
-
multiple: {
|
|
552
|
-
type: PropType<boolean>;
|
|
553
|
-
};
|
|
554
|
-
drag: {
|
|
555
|
-
type: PropType<boolean>;
|
|
556
|
-
};
|
|
557
|
-
withCredentials: {
|
|
558
|
-
type: PropType<boolean>;
|
|
559
|
-
};
|
|
560
|
-
showFileList: {
|
|
561
|
-
type: PropType<boolean>;
|
|
562
|
-
default: true;
|
|
563
|
-
};
|
|
564
|
-
accept: {
|
|
565
|
-
type: PropType<string>;
|
|
566
|
-
default: "";
|
|
567
|
-
};
|
|
568
|
-
fileList: {
|
|
569
|
-
type: PropType< UploadUserFile[]>;
|
|
570
|
-
default: () => never[];
|
|
571
|
-
};
|
|
572
|
-
autoUpload: {
|
|
573
|
-
type: PropType<boolean>;
|
|
574
|
-
default: true;
|
|
575
|
-
};
|
|
576
|
-
listType: {
|
|
577
|
-
type: PropType<ListType>;
|
|
578
|
-
default: "text";
|
|
579
|
-
};
|
|
580
|
-
httpRequest: {
|
|
581
|
-
type: PropType<UploadRequestHandler>;
|
|
582
|
-
default: UploadRequestHandler;
|
|
583
|
-
};
|
|
584
|
-
limit: {
|
|
585
|
-
type: PropType<number>;
|
|
586
|
-
};
|
|
587
|
-
directory: {
|
|
588
|
-
type: PropType<boolean>;
|
|
589
|
-
};
|
|
590
|
-
}>>, {
|
|
241
|
+
$options: ComponentOptionsBase<Readonly< UploadProps> & Readonly<{}>, {
|
|
591
242
|
abort: (file?: UploadFile) => void;
|
|
592
243
|
submit: () => void;
|
|
593
244
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
594
245
|
handleStart: (rawFile: UploadRawFile) => void;
|
|
595
246
|
handleRemove: (file: UploadFile | UploadRawFile) => void;
|
|
596
|
-
},
|
|
597
|
-
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
247
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
598
248
|
disabled: boolean;
|
|
599
|
-
|
|
600
|
-
onProgress: UploadHooks["onProgress"];
|
|
249
|
+
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
601
250
|
onChange: UploadHooks["onChange"];
|
|
251
|
+
name: string;
|
|
602
252
|
onError: UploadHooks["onError"];
|
|
603
|
-
|
|
604
|
-
action: string;
|
|
605
|
-
accept: string;
|
|
253
|
+
onProgress: UploadHooks["onProgress"];
|
|
606
254
|
beforeUpload: UploadHooks["beforeUpload"];
|
|
607
255
|
onRemove: UploadHooks["onRemove"];
|
|
608
256
|
onPreview: UploadHooks["onPreview"];
|
|
609
257
|
onSuccess: UploadHooks["onSuccess"];
|
|
610
258
|
onExceed: UploadHooks["onExceed"];
|
|
259
|
+
action: string;
|
|
260
|
+
method: string;
|
|
611
261
|
showFileList: boolean;
|
|
262
|
+
accept: string;
|
|
612
263
|
fileList: UploadUserFile[];
|
|
613
264
|
autoUpload: boolean;
|
|
614
265
|
listType: ListType;
|
|
@@ -634,127 +285,26 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
634
285
|
$nextTick: typeof nextTick;
|
|
635
286
|
$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;
|
|
636
287
|
} & Readonly<{
|
|
637
|
-
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
638
288
|
disabled: boolean;
|
|
639
|
-
|
|
640
|
-
onProgress: UploadHooks["onProgress"];
|
|
289
|
+
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
641
290
|
onChange: UploadHooks["onChange"];
|
|
291
|
+
name: string;
|
|
642
292
|
onError: UploadHooks["onError"];
|
|
643
|
-
|
|
644
|
-
action: string;
|
|
645
|
-
accept: string;
|
|
293
|
+
onProgress: UploadHooks["onProgress"];
|
|
646
294
|
beforeUpload: UploadHooks["beforeUpload"];
|
|
647
295
|
onRemove: UploadHooks["onRemove"];
|
|
648
296
|
onPreview: UploadHooks["onPreview"];
|
|
649
297
|
onSuccess: UploadHooks["onSuccess"];
|
|
650
298
|
onExceed: UploadHooks["onExceed"];
|
|
299
|
+
action: string;
|
|
300
|
+
method: string;
|
|
651
301
|
showFileList: boolean;
|
|
302
|
+
accept: string;
|
|
652
303
|
fileList: UploadUserFile[];
|
|
653
304
|
autoUpload: boolean;
|
|
654
305
|
listType: ListType;
|
|
655
306
|
httpRequest: UploadRequestHandler;
|
|
656
|
-
}> & Omit<Readonly<
|
|
657
|
-
name: {
|
|
658
|
-
type: PropType<string>;
|
|
659
|
-
default: "file";
|
|
660
|
-
};
|
|
661
|
-
method: {
|
|
662
|
-
type: PropType<string>;
|
|
663
|
-
default: "post";
|
|
664
|
-
};
|
|
665
|
-
disabled: {
|
|
666
|
-
type: PropType<boolean>;
|
|
667
|
-
default: undefined;
|
|
668
|
-
};
|
|
669
|
-
headers: {
|
|
670
|
-
type: PropType<Record<string, any> | Headers>;
|
|
671
|
-
};
|
|
672
|
-
data: {
|
|
673
|
-
type: PropType< Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)>;
|
|
674
|
-
default: () => Mutable<{}>;
|
|
675
|
-
};
|
|
676
|
-
onChange: {
|
|
677
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
678
|
-
default: () => void;
|
|
679
|
-
};
|
|
680
|
-
onError: {
|
|
681
|
-
type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
682
|
-
default: () => void;
|
|
683
|
-
};
|
|
684
|
-
onProgress: {
|
|
685
|
-
type: PropType<(evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
686
|
-
default: () => void;
|
|
687
|
-
};
|
|
688
|
-
crossorigin: {
|
|
689
|
-
type: PropType<Crossorigin>;
|
|
690
|
-
};
|
|
691
|
-
beforeUpload: {
|
|
692
|
-
type: PropType<(rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>>;
|
|
693
|
-
default: () => void;
|
|
694
|
-
};
|
|
695
|
-
beforeRemove: {
|
|
696
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
697
|
-
};
|
|
698
|
-
onRemove: {
|
|
699
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
700
|
-
default: () => void;
|
|
701
|
-
};
|
|
702
|
-
onPreview: {
|
|
703
|
-
type: PropType<(uploadFile: UploadFile) => void>;
|
|
704
|
-
default: () => void;
|
|
705
|
-
};
|
|
706
|
-
onSuccess: {
|
|
707
|
-
type: PropType<(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
708
|
-
default: () => void;
|
|
709
|
-
};
|
|
710
|
-
onExceed: {
|
|
711
|
-
type: PropType<(files: File[], uploadFiles: UploadUserFile[]) => void>;
|
|
712
|
-
default: () => void;
|
|
713
|
-
};
|
|
714
|
-
action: {
|
|
715
|
-
type: PropType<string>;
|
|
716
|
-
default: "#";
|
|
717
|
-
};
|
|
718
|
-
multiple: {
|
|
719
|
-
type: PropType<boolean>;
|
|
720
|
-
};
|
|
721
|
-
drag: {
|
|
722
|
-
type: PropType<boolean>;
|
|
723
|
-
};
|
|
724
|
-
withCredentials: {
|
|
725
|
-
type: PropType<boolean>;
|
|
726
|
-
};
|
|
727
|
-
showFileList: {
|
|
728
|
-
type: PropType<boolean>;
|
|
729
|
-
default: true;
|
|
730
|
-
};
|
|
731
|
-
accept: {
|
|
732
|
-
type: PropType<string>;
|
|
733
|
-
default: "";
|
|
734
|
-
};
|
|
735
|
-
fileList: {
|
|
736
|
-
type: PropType< UploadUserFile[]>;
|
|
737
|
-
default: () => never[];
|
|
738
|
-
};
|
|
739
|
-
autoUpload: {
|
|
740
|
-
type: PropType<boolean>;
|
|
741
|
-
default: true;
|
|
742
|
-
};
|
|
743
|
-
listType: {
|
|
744
|
-
type: PropType<ListType>;
|
|
745
|
-
default: "text";
|
|
746
|
-
};
|
|
747
|
-
httpRequest: {
|
|
748
|
-
type: PropType<UploadRequestHandler>;
|
|
749
|
-
default: UploadRequestHandler;
|
|
750
|
-
};
|
|
751
|
-
limit: {
|
|
752
|
-
type: PropType<number>;
|
|
753
|
-
};
|
|
754
|
-
directory: {
|
|
755
|
-
type: PropType<boolean>;
|
|
756
|
-
};
|
|
757
|
-
}>>, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "submit" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
307
|
+
}> & Omit<Readonly< UploadProps> & Readonly<{}>, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "submit" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
758
308
|
abort: (file?: UploadFile) => void;
|
|
759
309
|
submit: () => void;
|
|
760
310
|
clearFiles: (states?: UploadStatus[]) => void;
|