@vtj/designer 0.16.12 → 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-BcDCHfhg.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-D7fdOY8E.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
|
|
2
2
|
import { Props } from './expression';
|
|
3
3
|
import { Props } from './select';
|
|
4
4
|
import { Props } from './number';
|
|
@@ -11,8 +11,8 @@ import { Props } from './radio';
|
|
|
11
11
|
import { Props } from './tag';
|
|
12
12
|
import { Props } from './size';
|
|
13
13
|
import { Props } from './image';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { UploadHooks, Crossorigin, UploadData, UploadRawFile, UploadUserFile, ListType, UploadRequestHandler, UploadProps, UploadFile, UploadStatus } from 'element-plus';
|
|
15
|
+
import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
|
|
16
16
|
import { OnCleanup } from '@vue/reactivity';
|
|
17
17
|
import { Props } from './section';
|
|
18
18
|
import { Props } from './slider';
|
|
@@ -189,58 +189,36 @@ export declare const setters: {
|
|
|
189
189
|
uploadRef: ({
|
|
190
190
|
$: ComponentInternalInstance;
|
|
191
191
|
$data: {};
|
|
192
|
-
$props:
|
|
193
|
-
|
|
194
|
-
disabled: boolean;
|
|
195
|
-
name: string;
|
|
196
|
-
onProgress: UploadHooks["onProgress"];
|
|
197
|
-
onChange: UploadHooks["onChange"];
|
|
198
|
-
onError: UploadHooks["onError"];
|
|
199
|
-
method: string;
|
|
200
|
-
action: string;
|
|
201
|
-
accept: string;
|
|
202
|
-
beforeUpload: UploadHooks["beforeUpload"];
|
|
203
|
-
onRemove: UploadHooks["onRemove"];
|
|
204
|
-
onPreview: UploadHooks["onPreview"];
|
|
205
|
-
onSuccess: UploadHooks["onSuccess"];
|
|
206
|
-
onExceed: UploadHooks["onExceed"];
|
|
207
|
-
showFileList: boolean;
|
|
208
|
-
fileList: UploadUserFile[];
|
|
209
|
-
autoUpload: boolean;
|
|
210
|
-
listType: ListType;
|
|
211
|
-
httpRequest: UploadRequestHandler;
|
|
212
|
-
}> & Omit<{
|
|
213
|
-
readonly name: string;
|
|
214
|
-
readonly method: string;
|
|
215
|
-
readonly data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
216
|
-
readonly onChange: UploadHooks["onChange"];
|
|
217
|
-
readonly onError: UploadHooks["onError"];
|
|
218
|
-
readonly onProgress: UploadHooks["onProgress"];
|
|
219
|
-
readonly beforeUpload: UploadHooks["beforeUpload"];
|
|
220
|
-
readonly onRemove: UploadHooks["onRemove"];
|
|
221
|
-
readonly onPreview: UploadHooks["onPreview"];
|
|
222
|
-
readonly onSuccess: UploadHooks["onSuccess"];
|
|
223
|
-
readonly onExceed: UploadHooks["onExceed"];
|
|
224
|
-
readonly action: string;
|
|
225
|
-
readonly showFileList: boolean;
|
|
226
|
-
readonly accept: string;
|
|
227
|
-
readonly fileList: UploadUserFile[];
|
|
228
|
-
readonly autoUpload: boolean;
|
|
229
|
-
readonly listType: ListType;
|
|
230
|
-
readonly httpRequest: UploadRequestHandler;
|
|
231
|
-
readonly disabled?: boolean | undefined;
|
|
232
|
-
readonly headers?: (Headers | Record<string, any>) | undefined;
|
|
233
|
-
readonly crossorigin?: Crossorigin | undefined;
|
|
192
|
+
$props: {
|
|
193
|
+
readonly beforeUpload?: UploadHooks["beforeUpload"] | undefined;
|
|
234
194
|
readonly beforeRemove?: UploadHooks["beforeRemove"] | undefined;
|
|
195
|
+
readonly onRemove?: UploadHooks["onRemove"] | undefined;
|
|
196
|
+
readonly onChange?: UploadHooks["onChange"] | undefined;
|
|
197
|
+
readonly onPreview?: UploadHooks["onPreview"] | undefined;
|
|
198
|
+
readonly onSuccess?: UploadHooks["onSuccess"] | undefined;
|
|
199
|
+
readonly onProgress?: UploadHooks["onProgress"] | undefined;
|
|
200
|
+
readonly onError?: UploadHooks["onError"] | undefined;
|
|
201
|
+
readonly onExceed?: UploadHooks["onExceed"] | undefined;
|
|
202
|
+
readonly crossorigin?: Crossorigin | undefined;
|
|
203
|
+
readonly action?: string | undefined;
|
|
204
|
+
readonly headers?: (Headers | Record<string, any>) | undefined;
|
|
205
|
+
readonly method?: string | undefined;
|
|
206
|
+
readonly data?: ( Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)) | undefined;
|
|
235
207
|
readonly multiple?: boolean | undefined;
|
|
208
|
+
readonly name?: string | undefined;
|
|
236
209
|
readonly drag?: boolean | undefined;
|
|
237
210
|
readonly withCredentials?: boolean | undefined;
|
|
211
|
+
readonly showFileList?: boolean | undefined;
|
|
212
|
+
readonly accept?: string | undefined;
|
|
213
|
+
readonly fileList?: UploadUserFile[] | undefined;
|
|
214
|
+
readonly autoUpload?: boolean | undefined;
|
|
215
|
+
readonly listType?: ListType | undefined;
|
|
216
|
+
readonly httpRequest?: UploadRequestHandler | undefined;
|
|
217
|
+
readonly disabled?: boolean | undefined;
|
|
238
218
|
readonly limit?: number | undefined;
|
|
239
219
|
readonly directory?: boolean | undefined;
|
|
240
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps
|
|
241
|
-
$attrs:
|
|
242
|
-
[x: string]: unknown;
|
|
243
|
-
};
|
|
220
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
221
|
+
$attrs: Attrs;
|
|
244
222
|
$refs: {
|
|
245
223
|
[x: string]: unknown;
|
|
246
224
|
};
|
|
@@ -252,129 +230,28 @@ export declare const setters: {
|
|
|
252
230
|
$host: Element | null;
|
|
253
231
|
$emit: (event: string, ...args: any[]) => void;
|
|
254
232
|
$el: any;
|
|
255
|
-
$options: ComponentOptionsBase<Readonly<
|
|
256
|
-
name: {
|
|
257
|
-
type: PropType<string>;
|
|
258
|
-
default: "file";
|
|
259
|
-
};
|
|
260
|
-
method: {
|
|
261
|
-
type: PropType<string>;
|
|
262
|
-
default: "post";
|
|
263
|
-
};
|
|
264
|
-
disabled: {
|
|
265
|
-
type: PropType<boolean>;
|
|
266
|
-
default: undefined;
|
|
267
|
-
};
|
|
268
|
-
headers: {
|
|
269
|
-
type: PropType<Record<string, any> | Headers>;
|
|
270
|
-
};
|
|
271
|
-
data: {
|
|
272
|
-
type: PropType< Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)>;
|
|
273
|
-
default: () => Mutable<{}>;
|
|
274
|
-
};
|
|
275
|
-
onChange: {
|
|
276
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
277
|
-
default: () => void;
|
|
278
|
-
};
|
|
279
|
-
onError: {
|
|
280
|
-
type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
281
|
-
default: () => void;
|
|
282
|
-
};
|
|
283
|
-
onProgress: {
|
|
284
|
-
type: PropType<(evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
285
|
-
default: () => void;
|
|
286
|
-
};
|
|
287
|
-
crossorigin: {
|
|
288
|
-
type: PropType<Crossorigin>;
|
|
289
|
-
};
|
|
290
|
-
beforeUpload: {
|
|
291
|
-
type: PropType<(rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>>;
|
|
292
|
-
default: () => void;
|
|
293
|
-
};
|
|
294
|
-
beforeRemove: {
|
|
295
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
296
|
-
};
|
|
297
|
-
onRemove: {
|
|
298
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
299
|
-
default: () => void;
|
|
300
|
-
};
|
|
301
|
-
onPreview: {
|
|
302
|
-
type: PropType<(uploadFile: UploadFile) => void>;
|
|
303
|
-
default: () => void;
|
|
304
|
-
};
|
|
305
|
-
onSuccess: {
|
|
306
|
-
type: PropType<(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
307
|
-
default: () => void;
|
|
308
|
-
};
|
|
309
|
-
onExceed: {
|
|
310
|
-
type: PropType<(files: File[], uploadFiles: UploadUserFile[]) => void>;
|
|
311
|
-
default: () => void;
|
|
312
|
-
};
|
|
313
|
-
action: {
|
|
314
|
-
type: PropType<string>;
|
|
315
|
-
default: "#";
|
|
316
|
-
};
|
|
317
|
-
multiple: {
|
|
318
|
-
type: PropType<boolean>;
|
|
319
|
-
};
|
|
320
|
-
drag: {
|
|
321
|
-
type: PropType<boolean>;
|
|
322
|
-
};
|
|
323
|
-
withCredentials: {
|
|
324
|
-
type: PropType<boolean>;
|
|
325
|
-
};
|
|
326
|
-
showFileList: {
|
|
327
|
-
type: PropType<boolean>;
|
|
328
|
-
default: true;
|
|
329
|
-
};
|
|
330
|
-
accept: {
|
|
331
|
-
type: PropType<string>;
|
|
332
|
-
default: "";
|
|
333
|
-
};
|
|
334
|
-
fileList: {
|
|
335
|
-
type: PropType< UploadUserFile[]>;
|
|
336
|
-
default: () => never[];
|
|
337
|
-
};
|
|
338
|
-
autoUpload: {
|
|
339
|
-
type: PropType<boolean>;
|
|
340
|
-
default: true;
|
|
341
|
-
};
|
|
342
|
-
listType: {
|
|
343
|
-
type: PropType<ListType>;
|
|
344
|
-
default: "text";
|
|
345
|
-
};
|
|
346
|
-
httpRequest: {
|
|
347
|
-
type: PropType<UploadRequestHandler>;
|
|
348
|
-
default: UploadRequestHandler;
|
|
349
|
-
};
|
|
350
|
-
limit: {
|
|
351
|
-
type: PropType<number>;
|
|
352
|
-
};
|
|
353
|
-
directory: {
|
|
354
|
-
type: PropType<boolean>;
|
|
355
|
-
};
|
|
356
|
-
}>>, {
|
|
233
|
+
$options: ComponentOptionsBase<Readonly< UploadProps> & Readonly<{}>, {
|
|
357
234
|
abort: (file?: UploadFile) => void;
|
|
358
235
|
submit: () => void;
|
|
359
236
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
360
237
|
handleStart: (rawFile: UploadRawFile) => void;
|
|
361
238
|
handleRemove: (file: UploadFile | UploadRawFile) => void;
|
|
362
|
-
},
|
|
363
|
-
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
239
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
364
240
|
disabled: boolean;
|
|
365
|
-
|
|
366
|
-
onProgress: UploadHooks["onProgress"];
|
|
241
|
+
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
367
242
|
onChange: UploadHooks["onChange"];
|
|
243
|
+
name: string;
|
|
368
244
|
onError: UploadHooks["onError"];
|
|
369
|
-
|
|
370
|
-
action: string;
|
|
371
|
-
accept: string;
|
|
245
|
+
onProgress: UploadHooks["onProgress"];
|
|
372
246
|
beforeUpload: UploadHooks["beforeUpload"];
|
|
373
247
|
onRemove: UploadHooks["onRemove"];
|
|
374
248
|
onPreview: UploadHooks["onPreview"];
|
|
375
249
|
onSuccess: UploadHooks["onSuccess"];
|
|
376
250
|
onExceed: UploadHooks["onExceed"];
|
|
251
|
+
action: string;
|
|
252
|
+
method: string;
|
|
377
253
|
showFileList: boolean;
|
|
254
|
+
accept: string;
|
|
378
255
|
fileList: UploadUserFile[];
|
|
379
256
|
autoUpload: boolean;
|
|
380
257
|
listType: ListType;
|
|
@@ -400,127 +277,26 @@ export declare const setters: {
|
|
|
400
277
|
$nextTick: nextTick;
|
|
401
278
|
$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;
|
|
402
279
|
} & Readonly<{
|
|
403
|
-
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
404
280
|
disabled: boolean;
|
|
405
|
-
|
|
406
|
-
onProgress: UploadHooks["onProgress"];
|
|
281
|
+
data: Awaitable<UploadData> | ((rawFile: UploadRawFile) => Awaitable<UploadData>);
|
|
407
282
|
onChange: UploadHooks["onChange"];
|
|
283
|
+
name: string;
|
|
408
284
|
onError: UploadHooks["onError"];
|
|
409
|
-
|
|
410
|
-
action: string;
|
|
411
|
-
accept: string;
|
|
285
|
+
onProgress: UploadHooks["onProgress"];
|
|
412
286
|
beforeUpload: UploadHooks["beforeUpload"];
|
|
413
287
|
onRemove: UploadHooks["onRemove"];
|
|
414
288
|
onPreview: UploadHooks["onPreview"];
|
|
415
289
|
onSuccess: UploadHooks["onSuccess"];
|
|
416
290
|
onExceed: UploadHooks["onExceed"];
|
|
291
|
+
action: string;
|
|
292
|
+
method: string;
|
|
417
293
|
showFileList: boolean;
|
|
294
|
+
accept: string;
|
|
418
295
|
fileList: UploadUserFile[];
|
|
419
296
|
autoUpload: boolean;
|
|
420
297
|
listType: ListType;
|
|
421
298
|
httpRequest: UploadRequestHandler;
|
|
422
|
-
}> & Omit<Readonly<
|
|
423
|
-
name: {
|
|
424
|
-
type: PropType<string>;
|
|
425
|
-
default: "file";
|
|
426
|
-
};
|
|
427
|
-
method: {
|
|
428
|
-
type: PropType<string>;
|
|
429
|
-
default: "post";
|
|
430
|
-
};
|
|
431
|
-
disabled: {
|
|
432
|
-
type: PropType<boolean>;
|
|
433
|
-
default: undefined;
|
|
434
|
-
};
|
|
435
|
-
headers: {
|
|
436
|
-
type: PropType<Record<string, any> | Headers>;
|
|
437
|
-
};
|
|
438
|
-
data: {
|
|
439
|
-
type: PropType< Awaitable<Mutable<Record<string, any>>> | ((rawFile: UploadRawFile) => Awaitable<UploadData>)>;
|
|
440
|
-
default: () => Mutable<{}>;
|
|
441
|
-
};
|
|
442
|
-
onChange: {
|
|
443
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
444
|
-
default: () => void;
|
|
445
|
-
};
|
|
446
|
-
onError: {
|
|
447
|
-
type: PropType<(error: Error, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
448
|
-
default: () => void;
|
|
449
|
-
};
|
|
450
|
-
onProgress: {
|
|
451
|
-
type: PropType<(evt: UploadProgressEvent, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
452
|
-
default: () => void;
|
|
453
|
-
};
|
|
454
|
-
crossorigin: {
|
|
455
|
-
type: PropType<Crossorigin>;
|
|
456
|
-
};
|
|
457
|
-
beforeUpload: {
|
|
458
|
-
type: PropType<(rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>>;
|
|
459
|
-
default: () => void;
|
|
460
|
-
};
|
|
461
|
-
beforeRemove: {
|
|
462
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>>;
|
|
463
|
-
};
|
|
464
|
-
onRemove: {
|
|
465
|
-
type: PropType<(uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
466
|
-
default: () => void;
|
|
467
|
-
};
|
|
468
|
-
onPreview: {
|
|
469
|
-
type: PropType<(uploadFile: UploadFile) => void>;
|
|
470
|
-
default: () => void;
|
|
471
|
-
};
|
|
472
|
-
onSuccess: {
|
|
473
|
-
type: PropType<(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles) => void>;
|
|
474
|
-
default: () => void;
|
|
475
|
-
};
|
|
476
|
-
onExceed: {
|
|
477
|
-
type: PropType<(files: File[], uploadFiles: UploadUserFile[]) => void>;
|
|
478
|
-
default: () => void;
|
|
479
|
-
};
|
|
480
|
-
action: {
|
|
481
|
-
type: PropType<string>;
|
|
482
|
-
default: "#";
|
|
483
|
-
};
|
|
484
|
-
multiple: {
|
|
485
|
-
type: PropType<boolean>;
|
|
486
|
-
};
|
|
487
|
-
drag: {
|
|
488
|
-
type: PropType<boolean>;
|
|
489
|
-
};
|
|
490
|
-
withCredentials: {
|
|
491
|
-
type: PropType<boolean>;
|
|
492
|
-
};
|
|
493
|
-
showFileList: {
|
|
494
|
-
type: PropType<boolean>;
|
|
495
|
-
default: true;
|
|
496
|
-
};
|
|
497
|
-
accept: {
|
|
498
|
-
type: PropType<string>;
|
|
499
|
-
default: "";
|
|
500
|
-
};
|
|
501
|
-
fileList: {
|
|
502
|
-
type: PropType< UploadUserFile[]>;
|
|
503
|
-
default: () => never[];
|
|
504
|
-
};
|
|
505
|
-
autoUpload: {
|
|
506
|
-
type: PropType<boolean>;
|
|
507
|
-
default: true;
|
|
508
|
-
};
|
|
509
|
-
listType: {
|
|
510
|
-
type: PropType<ListType>;
|
|
511
|
-
default: "text";
|
|
512
|
-
};
|
|
513
|
-
httpRequest: {
|
|
514
|
-
type: PropType<UploadRequestHandler>;
|
|
515
|
-
default: UploadRequestHandler;
|
|
516
|
-
};
|
|
517
|
-
limit: {
|
|
518
|
-
type: PropType<number>;
|
|
519
|
-
};
|
|
520
|
-
directory: {
|
|
521
|
-
type: PropType<boolean>;
|
|
522
|
-
};
|
|
523
|
-
}>>, "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<{
|
|
299
|
+
}> & 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<{
|
|
524
300
|
abort: (file?: UploadFile) => void;
|
|
525
301
|
submit: () => void;
|
|
526
302
|
clearFiles: (states?: UploadStatus[]) => void;
|