@vtj/designer 0.14.1 → 0.14.3
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-BmWmIkUa.js +4 -0
- package/dist/css.worker--aXH2aPB.js +118 -0
- package/dist/editor.worker-Bi14wvgY.js +25 -0
- package/dist/html.worker-Ck_eCw9C.js +25 -0
- package/dist/{index-CB14xMYK.js → index-Csdmp3O_.js} +4734 -4736
- package/dist/index.mjs +1 -1
- package/dist/json.worker-DyfNKmEG.js +25 -0
- package/dist/ts.worker-BRcnI7fF.js +67756 -0
- package/package.json +8 -8
- package/types/components/setters/image.d.ts +8 -2
- package/types/components/setters/index.d.ts +8 -2
- package/types/components/shared/binder.d.ts +6 -2
- package/types/components/widgets/ai/image-input.d.ts +8 -2
- package/types/components/widgets/ai/json-input.d.ts +8 -2
- package/types/components/widgets/apis/form.d.ts +3 -1
- package/types/components/widgets/scripts/group.d.ts +6 -2
- package/types/version.d.ts +2 -2
- package/dist/Editor-Co7fVAhz.js +0 -4
- package/dist/css.worker-DdCwg2F4.js +0 -109
- package/dist/editor.worker-CEZ99gS2.js +0 -25
- package/dist/html.worker-Bgmn5TLa.js +0 -25
- package/dist/json.worker-D1UBs5tZ.js +0 -25
- package/dist/ts.worker-CtXbW5f6.js +0 -51359
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtj/designer",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"低代码引擎",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"html2canvas": "~1.4.1",
|
|
30
30
|
"marked": "~17.0.1",
|
|
31
31
|
"mockjs": "~1.1.0",
|
|
32
|
-
"monaco-editor": "~0.
|
|
33
|
-
"@vtj/core": "~0.14.
|
|
34
|
-
"@vtj/
|
|
35
|
-
"@vtj/
|
|
36
|
-
"@vtj/
|
|
37
|
-
"@vtj/utils": "~0.14.
|
|
38
|
-
"@vtj/ui": "~0.14.
|
|
32
|
+
"monaco-editor": "~0.55.0",
|
|
33
|
+
"@vtj/core": "~0.14.3",
|
|
34
|
+
"@vtj/icons": "~0.14.3",
|
|
35
|
+
"@vtj/renderer": "~0.14.3",
|
|
36
|
+
"@vtj/uni": "~0.14.3",
|
|
37
|
+
"@vtj/utils": "~0.14.3",
|
|
38
|
+
"@vtj/ui": "~0.14.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/mockjs": "~1.0.10",
|
|
@@ -38,6 +38,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
38
38
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
39
39
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
40
40
|
readonly httpRequest: UploadRequestHandler;
|
|
41
|
+
readonly directory: boolean;
|
|
41
42
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
42
43
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
43
44
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -65,12 +66,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
65
66
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
66
67
|
readonly listType: EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
67
68
|
readonly httpRequest: UploadRequestHandler;
|
|
69
|
+
readonly directory: boolean;
|
|
68
70
|
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
69
71
|
readonly headers?: 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;
|
|
70
72
|
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown> | undefined;
|
|
71
73
|
readonly beforeRemove?: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>) | undefined;
|
|
72
74
|
readonly limit?: number | undefined;
|
|
73
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
75
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory">;
|
|
74
76
|
$attrs: {
|
|
75
77
|
[x: string]: unknown;
|
|
76
78
|
};
|
|
@@ -199,6 +201,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
199
201
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
200
202
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
201
203
|
readonly limit: NumberConstructor;
|
|
204
|
+
readonly directory: BooleanConstructor;
|
|
202
205
|
}>>, {
|
|
203
206
|
abort: (file: UploadFile) => void;
|
|
204
207
|
submit: () => void;
|
|
@@ -223,6 +226,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
223
226
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
224
227
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
225
228
|
readonly httpRequest: UploadRequestHandler;
|
|
229
|
+
readonly directory: boolean;
|
|
226
230
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
227
231
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
228
232
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -266,6 +270,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
266
270
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
267
271
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
268
272
|
readonly httpRequest: UploadRequestHandler;
|
|
273
|
+
readonly directory: boolean;
|
|
269
274
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
270
275
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
271
276
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -385,7 +390,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
385
390
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
386
391
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
387
392
|
readonly limit: NumberConstructor;
|
|
388
|
-
|
|
393
|
+
readonly directory: BooleanConstructor;
|
|
394
|
+
}>>, "name" | "method" | "disabled" | "submit" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
389
395
|
abort: (file: UploadFile) => void;
|
|
390
396
|
submit: () => void;
|
|
391
397
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
@@ -208,6 +208,7 @@ export declare const setters: {
|
|
|
208
208
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
209
209
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
210
210
|
readonly httpRequest: UploadRequestHandler;
|
|
211
|
+
readonly directory: boolean;
|
|
211
212
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
212
213
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
213
214
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -235,12 +236,13 @@ export declare const setters: {
|
|
|
235
236
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
236
237
|
readonly listType: EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
237
238
|
readonly httpRequest: UploadRequestHandler;
|
|
239
|
+
readonly directory: boolean;
|
|
238
240
|
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
239
241
|
readonly headers?: 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;
|
|
240
242
|
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown> | undefined;
|
|
241
243
|
readonly beforeRemove?: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>) | undefined;
|
|
242
244
|
readonly limit?: number | undefined;
|
|
243
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
245
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory">;
|
|
244
246
|
$attrs: {
|
|
245
247
|
[x: string]: unknown;
|
|
246
248
|
};
|
|
@@ -369,6 +371,7 @@ export declare const setters: {
|
|
|
369
371
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
370
372
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
371
373
|
readonly limit: NumberConstructor;
|
|
374
|
+
readonly directory: BooleanConstructor;
|
|
372
375
|
}>>, {
|
|
373
376
|
abort: (file: UploadFile) => void;
|
|
374
377
|
submit: () => void;
|
|
@@ -393,6 +396,7 @@ export declare const setters: {
|
|
|
393
396
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
394
397
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
395
398
|
readonly httpRequest: UploadRequestHandler;
|
|
399
|
+
readonly directory: boolean;
|
|
396
400
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
397
401
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
398
402
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -436,6 +440,7 @@ export declare const setters: {
|
|
|
436
440
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
437
441
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
438
442
|
readonly httpRequest: UploadRequestHandler;
|
|
443
|
+
readonly directory: boolean;
|
|
439
444
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
440
445
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
441
446
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -555,7 +560,8 @@ export declare const setters: {
|
|
|
555
560
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
556
561
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
557
562
|
readonly limit: NumberConstructor;
|
|
558
|
-
|
|
563
|
+
readonly directory: BooleanConstructor;
|
|
564
|
+
}>>, "name" | "method" | "disabled" | "submit" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
559
565
|
abort: (file: UploadFile) => void;
|
|
560
566
|
submit: () => void;
|
|
561
567
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
@@ -145,6 +145,7 @@ declare function __VLS_template(): {
|
|
|
145
145
|
scrollToField: (prop: FormItemProp) => void;
|
|
146
146
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
147
147
|
fields: Reactive< FormItemContext[]>;
|
|
148
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
148
149
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
149
150
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
150
151
|
}, string, {
|
|
@@ -224,7 +225,7 @@ declare function __VLS_template(): {
|
|
|
224
225
|
readonly disabled: BooleanConstructor;
|
|
225
226
|
}>> & {
|
|
226
227
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
227
|
-
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
228
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
228
229
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
229
230
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
230
231
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -232,6 +233,7 @@ declare function __VLS_template(): {
|
|
|
232
233
|
scrollToField: (prop: FormItemProp) => void;
|
|
233
234
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
234
235
|
fields: Reactive< FormItemContext[]>;
|
|
236
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
235
237
|
}> & {} & ComponentCustomProperties & {} & {
|
|
236
238
|
$slots: {
|
|
237
239
|
default?: (props: {}) => any;
|
|
@@ -544,6 +546,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
544
546
|
scrollToField: (prop: FormItemProp) => void;
|
|
545
547
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
546
548
|
fields: Reactive< FormItemContext[]>;
|
|
549
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
547
550
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
548
551
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
549
552
|
}, string, {
|
|
@@ -623,7 +626,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
623
626
|
readonly disabled: BooleanConstructor;
|
|
624
627
|
}>> & {
|
|
625
628
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
626
|
-
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
629
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
627
630
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
628
631
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
629
632
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -631,6 +634,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
631
634
|
scrollToField: (prop: FormItemProp) => void;
|
|
632
635
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
633
636
|
fields: Reactive< FormItemContext[]>;
|
|
637
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
634
638
|
}> & {} & ComponentCustomProperties & {} & {
|
|
635
639
|
$slots: {
|
|
636
640
|
default?: (props: {}) => any;
|
|
@@ -33,6 +33,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
33
33
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
34
34
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
35
35
|
readonly httpRequest: UploadRequestHandler;
|
|
36
|
+
readonly directory: boolean;
|
|
36
37
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
37
38
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
38
39
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -60,12 +61,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
60
61
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
61
62
|
readonly listType: EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
62
63
|
readonly httpRequest: UploadRequestHandler;
|
|
64
|
+
readonly directory: boolean;
|
|
63
65
|
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
64
66
|
readonly headers?: 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;
|
|
65
67
|
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown> | undefined;
|
|
66
68
|
readonly beforeRemove?: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>) | undefined;
|
|
67
69
|
readonly limit?: number | undefined;
|
|
68
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
70
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory">;
|
|
69
71
|
$attrs: {
|
|
70
72
|
[x: string]: unknown;
|
|
71
73
|
};
|
|
@@ -194,6 +196,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
194
196
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
195
197
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
196
198
|
readonly limit: NumberConstructor;
|
|
199
|
+
readonly directory: BooleanConstructor;
|
|
197
200
|
}>>, {
|
|
198
201
|
abort: (file: UploadFile) => void;
|
|
199
202
|
submit: () => void;
|
|
@@ -218,6 +221,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
218
221
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
219
222
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
220
223
|
readonly httpRequest: UploadRequestHandler;
|
|
224
|
+
readonly directory: boolean;
|
|
221
225
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
222
226
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
223
227
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -261,6 +265,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
261
265
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
262
266
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
263
267
|
readonly httpRequest: UploadRequestHandler;
|
|
268
|
+
readonly directory: boolean;
|
|
264
269
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
265
270
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
266
271
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -380,7 +385,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
380
385
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
381
386
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
382
387
|
readonly limit: NumberConstructor;
|
|
383
|
-
|
|
388
|
+
readonly directory: BooleanConstructor;
|
|
389
|
+
}>>, "name" | "method" | "disabled" | "submit" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
384
390
|
abort: (file: UploadFile) => void;
|
|
385
391
|
submit: () => void;
|
|
386
392
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
@@ -438,6 +438,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
438
438
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
439
439
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
440
440
|
readonly httpRequest: UploadRequestHandler;
|
|
441
|
+
readonly directory: boolean;
|
|
441
442
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
442
443
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
443
444
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -465,12 +466,13 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
465
466
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
466
467
|
readonly listType: EpPropMergeType<StringConstructor, "text" | "picture" | "picture-card", unknown>;
|
|
467
468
|
readonly httpRequest: UploadRequestHandler;
|
|
469
|
+
readonly directory: boolean;
|
|
468
470
|
readonly disabled?: EpPropMergeType<BooleanConstructor, unknown, unknown> | undefined;
|
|
469
471
|
readonly headers?: 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;
|
|
470
472
|
readonly crossorigin?: EpPropMergeType<(new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => "" | "anonymous" | "use-credentials") | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown> | undefined;
|
|
471
473
|
readonly beforeRemove?: ((uploadFile: UploadFile, uploadFiles: UploadFiles) => Awaitable<boolean>) | undefined;
|
|
472
474
|
readonly limit?: number | undefined;
|
|
473
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest">;
|
|
475
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, "name" | "method" | "disabled" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory">;
|
|
474
476
|
$attrs: {
|
|
475
477
|
[x: string]: unknown;
|
|
476
478
|
};
|
|
@@ -599,6 +601,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
599
601
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
600
602
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
601
603
|
readonly limit: NumberConstructor;
|
|
604
|
+
readonly directory: BooleanConstructor;
|
|
602
605
|
}>>, {
|
|
603
606
|
abort: (file: UploadFile) => void;
|
|
604
607
|
submit: () => void;
|
|
@@ -623,6 +626,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
623
626
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
624
627
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
625
628
|
readonly httpRequest: UploadRequestHandler;
|
|
629
|
+
readonly directory: boolean;
|
|
626
630
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
627
631
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
628
632
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -666,6 +670,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
666
670
|
readonly autoUpload: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
667
671
|
readonly listType: EpPropMergeType<StringConstructor, "picture" | "text" | "picture-card", unknown>;
|
|
668
672
|
readonly httpRequest: UploadRequestHandler;
|
|
673
|
+
readonly directory: boolean;
|
|
669
674
|
readonly beforeUpload: (rawFile: UploadRawFile) => Awaitable<void | undefined | null | boolean | File | Blob>;
|
|
670
675
|
readonly onRemove: (uploadFile: UploadFile, uploadFiles: UploadFiles) => void;
|
|
671
676
|
readonly onPreview: (uploadFile: UploadFile) => void;
|
|
@@ -785,7 +790,8 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
785
790
|
})[], unknown, unknown, UploadRequestHandler, boolean>;
|
|
786
791
|
readonly disabled: EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
787
792
|
readonly limit: NumberConstructor;
|
|
788
|
-
|
|
793
|
+
readonly directory: BooleanConstructor;
|
|
794
|
+
}>>, "name" | "method" | "disabled" | "submit" | "data" | "onChange" | "onError" | "onProgress" | "beforeUpload" | "onRemove" | "onPreview" | "onSuccess" | "onExceed" | "action" | "multiple" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "directory" | "abort" | "clearFiles" | "handleStart" | "handleRemove"> & ShallowUnwrapRef<{
|
|
789
795
|
abort: (file: UploadFile) => void;
|
|
790
796
|
submit: () => void;
|
|
791
797
|
clearFiles: (states?: UploadStatus[]) => void;
|
|
@@ -1301,6 +1301,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
1301
1301
|
scrollToField: (prop: FormItemProp) => void;
|
|
1302
1302
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
1303
1303
|
fields: Reactive< FormItemContext[]>;
|
|
1304
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1304
1305
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1305
1306
|
validate: (prop: FormItemProp, isValid: boolean, message: string) => void;
|
|
1306
1307
|
}, string, {
|
|
@@ -1380,7 +1381,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
1380
1381
|
readonly disabled: BooleanConstructor;
|
|
1381
1382
|
}>> & {
|
|
1382
1383
|
onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
|
|
1383
|
-
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
|
|
1384
|
+
}, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField" | "setInitialValues"> & ShallowUnwrapRef<{
|
|
1384
1385
|
validate: (callback?: FormValidateCallback) => FormValidationResult;
|
|
1385
1386
|
validateField: (props?: Arrayable<FormItemProp>, callback?: FormValidateCallback) => FormValidationResult;
|
|
1386
1387
|
resetFields: (props?: Arrayable<FormItemProp>) => void;
|
|
@@ -1388,6 +1389,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
1388
1389
|
scrollToField: (prop: FormItemProp) => void;
|
|
1389
1390
|
getField: (prop: FormItemProp) => FormItemContext | undefined;
|
|
1390
1391
|
fields: Reactive< FormItemContext[]>;
|
|
1392
|
+
setInitialValues: (initModel: Record<string, any>) => void;
|
|
1391
1393
|
}> & {} & ComponentCustomProperties & {} & {
|
|
1392
1394
|
$slots: {
|
|
1393
1395
|
default?: (props: {}) => any;
|
|
@@ -159,6 +159,7 @@ declare function __VLS_template(): {
|
|
|
159
159
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
160
160
|
clearValidate: () => void;
|
|
161
161
|
resetField: () => void;
|
|
162
|
+
setInitialValue: (value: any) => void;
|
|
162
163
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
163
164
|
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
164
165
|
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
@@ -227,13 +228,14 @@ declare function __VLS_template(): {
|
|
|
227
228
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
228
229
|
__epPropKey: true;
|
|
229
230
|
};
|
|
230
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField"> & ShallowUnwrapRef<{
|
|
231
|
+
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
231
232
|
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
232
233
|
validateMessage: Ref<string>;
|
|
233
234
|
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
234
235
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
235
236
|
clearValidate: () => void;
|
|
236
237
|
resetField: () => void;
|
|
238
|
+
setInitialValue: (value: any) => void;
|
|
237
239
|
}> & {} & ComponentCustomProperties & {} & {
|
|
238
240
|
$slots: {
|
|
239
241
|
label?: (props: {
|
|
@@ -654,6 +656,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
654
656
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
655
657
|
clearValidate: () => void;
|
|
656
658
|
resetField: () => void;
|
|
659
|
+
setInitialValue: (value: any) => void;
|
|
657
660
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
658
661
|
readonly required: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
659
662
|
readonly labelPosition: EpPropMergeType<StringConstructor, "" | "left" | "right" | "top", unknown>;
|
|
@@ -722,13 +725,14 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
|
|
|
722
725
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
723
726
|
__epPropKey: true;
|
|
724
727
|
};
|
|
725
|
-
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField"> & ShallowUnwrapRef<{
|
|
728
|
+
}>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & ShallowUnwrapRef<{
|
|
726
729
|
size: ComputedRef<"" | "small" | "default" | "large">;
|
|
727
730
|
validateMessage: Ref<string>;
|
|
728
731
|
validateState: Ref<"" | "error" | "success" | "validating">;
|
|
729
732
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
|
730
733
|
clearValidate: () => void;
|
|
731
734
|
resetField: () => void;
|
|
735
|
+
setInitialValue: (value: any) => void;
|
|
732
736
|
}> & {} & ComponentCustomProperties & {} & {
|
|
733
737
|
$slots: {
|
|
734
738
|
label?: (props: {
|
package/types/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2026, VTJ.PRO All rights reserved.
|
|
3
3
|
* @name @vtj/designer
|
|
4
4
|
* @author CHC chenhuachun1549@dingtalk.com
|
|
5
|
-
* @version 0.14.
|
|
5
|
+
* @version 0.14.2
|
|
6
6
|
* @license <a href="https://vtj.pro/license.html">MIT License</a>
|
|
7
7
|
*/
|
|
8
|
-
export declare const version = "0.14.
|
|
8
|
+
export declare const version = "0.14.2";
|
package/dist/Editor-Co7fVAhz.js
DELETED