@vunk/form 1.2.0 → 1.3.0
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/components/download-plus/index.cjs +4 -4
- package/components/download-plus/index.mjs +4 -4
- package/components/form-item/index.cjs +3 -4
- package/components/form-item/index.mjs +3 -4
- package/components/input/index.cjs +2 -2
- package/components/input/index.mjs +2 -2
- package/components/monaco-editor/index.cjs +83 -0
- package/components/monaco-editor/index.css +3 -0
- package/components/monaco-editor/index.mjs +77 -0
- package/components/slider/index.cjs +3 -3
- package/components/slider/index.mjs +3 -3
- package/components/templates-default/index.cjs +41 -26
- package/components/templates-default/index.mjs +41 -26
- package/components/upload/index.cjs +2 -2
- package/components/upload/index.mjs +2 -2
- package/components/upload-plus/index.cjs +19 -20
- package/components/upload-plus/index.mjs +19 -20
- package/components/vditor/index.cjs +43 -408
- package/components/vditor/index.mjs +44 -409
- package/composables/useSourceManager.d.ts +1 -1
- package/index.css +4 -13
- package/package.json +9 -7
- package/shared/element-plus/ctx.d.ts +3 -3
- package/shared/element-plus/instances.d.ts +2 -2
- package/components/button/index.d.ts +0 -4
- package/components/button/src/ctx.d.ts +0 -96
- package/components/button/src/index.vue.d.ts +0 -219
- package/components/button/src/types.d.ts +0 -13
- package/components/cascader/index.d.ts +0 -6
- package/components/cascader/src/ctx.d.ts +0 -120
- package/components/cascader/src/index.vue.d.ts +0 -291
- package/components/cascader/src/types.d.ts +0 -7
- package/components/cascader/src/use.d.ts +0 -5
- package/components/checkbox/index.d.ts +0 -5
- package/components/checkbox/src/ctx.d.ts +0 -89
- package/components/checkbox/src/index.vue.d.ts +0 -203
- package/components/checkbox/src/types.d.ts +0 -8
- package/components/color-picker/index.d.ts +0 -4
- package/components/color-picker/src/ctx.d.ts +0 -80
- package/components/color-picker/src/index.vue.d.ts +0 -192
- package/components/color-picker/src/types.d.ts +0 -7
- package/components/date-picker/index.d.ts +0 -5
- package/components/date-picker/src/ctx.d.ts +0 -158
- package/components/date-picker/src/index.vue.d.ts +0 -376
- package/components/date-picker/src/types.d.ts +0 -20
- package/components/date-picker-range/index.d.ts +0 -4
- package/components/date-picker-range/src/ctx.d.ts +0 -177
- package/components/date-picker-range/src/index.vue.d.ts +0 -398
- package/components/date-picker-range/src/types.d.ts +0 -12
- package/components/download-plus/index.d.ts +0 -4
- package/components/download-plus/src/api.d.ts +0 -13
- package/components/download-plus/src/const.d.ts +0 -9
- package/components/download-plus/src/ctx.d.ts +0 -84
- package/components/download-plus/src/index.vue.d.ts +0 -206
- package/components/download-plus/src/types.d.ts +0 -17
- package/components/esri-input-geojson/index.d.ts +0 -6
- package/components/esri-input-geojson/src/append.vue.d.ts +0 -32
- package/components/esri-input-geojson/src/const.d.ts +0 -12
- package/components/esri-input-geojson/src/ctx.d.ts +0 -223
- package/components/esri-input-geojson/src/default-view.vue.d.ts +0 -133
- package/components/esri-input-geojson/src/index.vue.d.ts +0 -549
- package/components/esri-input-geojson/src/types.d.ts +0 -22
- package/components/esri-input-geojson/src/viewer.vue.d.ts +0 -296
- package/components/form/index.d.ts +0 -5
- package/components/form/src/ctx.d.ts +0 -84
- package/components/form/src/index.vue.d.ts +0 -455
- package/components/form/src/types.d.ts +0 -12
- package/components/form/src/utils.d.ts +0 -15
- package/components/form-item/index.d.ts +0 -5
- package/components/form-item/src/ctx.d.ts +0 -62
- package/components/form-item/src/index.vue.d.ts +0 -140
- package/components/form-item/src/types.d.ts +0 -6
- package/components/form-item-renderer/index.d.ts +0 -5
- package/components/form-item-renderer/src/ctx.d.ts +0 -16
- package/components/form-item-renderer/src/index.vue.d.ts +0 -38
- package/components/form-item-renderer/src/symbols.d.ts +0 -2
- package/components/form-item-renderer/src/types.d.ts +0 -7
- package/components/form-item-renderer-template/index.d.ts +0 -4
- package/components/form-item-renderer-template/src/ctx.d.ts +0 -7
- package/components/form-item-renderer-template/src/index.vue.d.ts +0 -16
- package/components/form-item-renderer-template/src/types.d.ts +0 -1
- package/components/geoinput/index.d.ts +0 -4
- package/components/geoinput/src/ctx.d.ts +0 -228
- package/components/geoinput/src/index.vue.d.ts +0 -496
- package/components/geoinput/src/types.d.ts +0 -12
- package/components/geoinput-read/index.d.ts +0 -5
- package/components/geoinput-read/src/append.vue.d.ts +0 -6
- package/components/geoinput-read/src/core.vue.d.ts +0 -482
- package/components/geoinput-read/src/ctx.d.ts +0 -199
- package/components/geoinput-read/src/index.vue.d.ts +0 -441
- package/components/geoinput-read/src/types.d.ts +0 -3
- package/components/geoinput-update/index.d.ts +0 -5
- package/components/geoinput-update/src/append.vue.d.ts +0 -20
- package/components/geoinput-update/src/ctx.d.ts +0 -207
- package/components/geoinput-update/src/index.vue.d.ts +0 -508
- package/components/geoinput-update/src/types.d.ts +0 -6
- package/components/input/index.d.ts +0 -5
- package/components/input/src/ctx.d.ts +0 -148
- package/components/input/src/index.vue.d.ts +0 -343
- package/components/input/src/types.d.ts +0 -13
- package/components/input-link/index.d.ts +0 -4
- package/components/input-link/src/ctx.d.ts +0 -179
- package/components/input-link/src/index.vue.d.ts +0 -373
- package/components/input-link/src/types.d.ts +0 -7
- package/components/input-number/index.d.ts +0 -4
- package/components/input-number/src/ctx.d.ts +0 -90
- package/components/input-number/src/index.vue.d.ts +0 -216
- package/components/input-number/src/types.d.ts +0 -8
- package/components/radio/index.d.ts +0 -4
- package/components/radio/src/ctx.d.ts +0 -82
- package/components/radio/src/index.vue.d.ts +0 -195
- package/components/radio/src/types.d.ts +0 -8
- package/components/select/index.d.ts +0 -4
- package/components/select/src/ctx.d.ts +0 -156
- package/components/select/src/index.vue.d.ts +0 -492
- package/components/select/src/types.d.ts +0 -11
- package/components/slider/index.d.ts +0 -4
- package/components/slider/src/ctx.d.ts +0 -127
- package/components/slider/src/index.vue.d.ts +0 -328
- package/components/slider/src/types.d.ts +0 -7
- package/components/switch/index.d.ts +0 -4
- package/components/switch/src/ctx.d.ts +0 -114
- package/components/switch/src/index.vue.d.ts +0 -273
- package/components/switch/src/types.d.ts +0 -8
- package/components/templates-default/index.d.ts +0 -4
- package/components/templates-default/src/ctx.d.ts +0 -19
- package/components/templates-default/src/index.vue.d.ts +0 -43
- package/components/templates-default/src/types.d.ts +0 -53
- package/components/templates-element-plus/index.d.ts +0 -4
- package/components/templates-element-plus/src/ctx.d.ts +0 -9
- package/components/templates-element-plus/src/index.vue.d.ts +0 -19
- package/components/templates-element-plus/src/types.d.ts +0 -13
- package/components/templates-esri/index.d.ts +0 -4
- package/components/templates-esri/src/ctx.d.ts +0 -11
- package/components/templates-esri/src/index.vue.d.ts +0 -20
- package/components/templates-esri/src/types.d.ts +0 -2
- package/components/templates-layout/index.d.ts +0 -4
- package/components/templates-layout/src/ctx.d.ts +0 -9
- package/components/templates-layout/src/index.vue.d.ts +0 -19
- package/components/templates-layout/src/types.d.ts +0 -32
- package/components/templates-mapbox/index.d.ts +0 -4
- package/components/templates-mapbox/src/ctx.d.ts +0 -11
- package/components/templates-mapbox/src/index.vue.d.ts +0 -20
- package/components/templates-mapbox/src/types.d.ts +0 -3
- package/components/templates-variant/index.d.ts +0 -4
- package/components/templates-variant/src/ctx.d.ts +0 -11
- package/components/templates-variant/src/index.vue.d.ts +0 -20
- package/components/templates-variant/src/types.d.ts +0 -2
- package/components/upload/index.d.ts +0 -5
- package/components/upload/src/ctx.d.ts +0 -180
- package/components/upload/src/file.vue.d.ts +0 -106
- package/components/upload/src/index.vue.d.ts +0 -427
- package/components/upload/src/types.d.ts +0 -7
- package/components/upload-plus/index.d.ts +0 -6
- package/components/upload-plus/src/api.d.ts +0 -38
- package/components/upload-plus/src/const.d.ts +0 -9
- package/components/upload-plus/src/ctx.d.ts +0 -103
- package/components/upload-plus/src/index.vue.d.ts +0 -215
- package/components/upload-plus/src/types.d.ts +0 -32
- package/components/van-cascader/index.d.ts +0 -4
- package/components/van-cascader/src/ctx.d.ts +0 -118
- package/components/van-cascader/src/index.vue.d.ts +0 -275
- package/components/van-cascader/src/types.d.ts +0 -1
- package/components/var-datetime-picker/index.d.ts +0 -4
- package/components/var-datetime-picker/src/const.d.ts +0 -10
- package/components/var-datetime-picker/src/ctx.d.ts +0 -67
- package/components/var-datetime-picker/src/index.vue.d.ts +0 -157
- package/components/var-datetime-picker/src/types.d.ts +0 -22
- package/components/vditor/index.css +0 -12
- package/components/vditor/index.d.ts +0 -4
- package/components/vditor/src/ctx.d.ts +0 -31
- package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
- package/components/vditor/src/handle-value.vue.d.ts +0 -18
- package/components/vditor/src/index.vue.d.ts +0 -66
- package/components/vditor/src/types.d.ts +0 -9
- package/components/vditor/src/use.d.ts +0 -4
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NormalObject, SetDataEvent } from '@vunk/core';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
export declare const props: {
|
|
4
|
-
data: {
|
|
5
|
-
type: PropType<NormalObject>;
|
|
6
|
-
default: () => {};
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export declare const emits: {
|
|
10
|
-
setData: (data: SetDataEvent) => SetDataEvent;
|
|
11
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
data: {
|
|
3
|
-
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
7
|
-
getValue: (obj: any, k: any, intoUndefined?: import("@vunk/core").IntoUndefined, safe?: boolean) => any;
|
|
8
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
setData: (data: import("@vunk/core").SetDataEvent) => import("@vunk/core").SetDataEvent;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
-
data: {
|
|
12
|
-
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
}>> & {
|
|
16
|
-
onSetData?: (data: import("@vunk/core").SetDataEvent) => any;
|
|
17
|
-
}, {
|
|
18
|
-
data: {};
|
|
19
|
-
}, {}>;
|
|
20
|
-
export default _default;
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { Func } from '@vunk/core';
|
|
2
|
-
import { UploadFile } from 'element-plus';
|
|
3
|
-
import { PropType } from 'vue';
|
|
4
|
-
export declare const props: {
|
|
5
|
-
tip: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
preview: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
beforeUpload: {
|
|
14
|
-
type: FunctionConstructor;
|
|
15
|
-
default: any;
|
|
16
|
-
};
|
|
17
|
-
onDownload: {
|
|
18
|
-
type: PropType<Func<UploadFile>>;
|
|
19
|
-
default: any;
|
|
20
|
-
};
|
|
21
|
-
beforeRemove: {
|
|
22
|
-
readonly type: import("vue").PropType<(uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => import("element-plus/es/utils").Awaitable<boolean>>;
|
|
23
|
-
readonly required: false;
|
|
24
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
25
|
-
__epPropKey: true;
|
|
26
|
-
};
|
|
27
|
-
onRemove: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
28
|
-
(): (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
29
|
-
new (): any;
|
|
30
|
-
readonly prototype: any;
|
|
31
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
32
|
-
(): (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
33
|
-
new (): any;
|
|
34
|
-
readonly prototype: any;
|
|
35
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
36
|
-
onChange: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
37
|
-
(): (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
38
|
-
new (): any;
|
|
39
|
-
readonly prototype: any;
|
|
40
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
41
|
-
(): (uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
42
|
-
new (): any;
|
|
43
|
-
readonly prototype: any;
|
|
44
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
45
|
-
onPreview: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
46
|
-
(): (uploadFile: UploadFile) => void;
|
|
47
|
-
new (): any;
|
|
48
|
-
readonly prototype: any;
|
|
49
|
-
} | ((new (...args: any[]) => (uploadFile: UploadFile) => void) | (() => (uploadFile: UploadFile) => void) | {
|
|
50
|
-
(): (uploadFile: UploadFile) => void;
|
|
51
|
-
new (): any;
|
|
52
|
-
readonly prototype: any;
|
|
53
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
54
|
-
onSuccess: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
55
|
-
(): (response: any, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
56
|
-
new (): any;
|
|
57
|
-
readonly prototype: any;
|
|
58
|
-
} | ((new (...args: any[]) => (response: any, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (response: any, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
59
|
-
(): (response: any, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
60
|
-
new (): any;
|
|
61
|
-
readonly prototype: any;
|
|
62
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
63
|
-
onProgress: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
64
|
-
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
65
|
-
new (): any;
|
|
66
|
-
readonly prototype: any;
|
|
67
|
-
} | ((new (...args: any[]) => (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
68
|
-
(): (evt: import("element-plus").UploadProgressEvent, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
69
|
-
new (): any;
|
|
70
|
-
readonly prototype: any;
|
|
71
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
72
|
-
onError: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
73
|
-
(): (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
74
|
-
new (): any;
|
|
75
|
-
readonly prototype: any;
|
|
76
|
-
} | ((new (...args: any[]) => (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | (() => (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void) | {
|
|
77
|
-
(): (error: Error, uploadFile: UploadFile, uploadFiles: import("element-plus").UploadFiles) => void;
|
|
78
|
-
new (): any;
|
|
79
|
-
readonly prototype: any;
|
|
80
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
81
|
-
onExceed: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
82
|
-
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
83
|
-
new (): any;
|
|
84
|
-
readonly prototype: any;
|
|
85
|
-
} | ((new (...args: any[]) => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | (() => (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void) | {
|
|
86
|
-
(): (files: File[], uploadFiles: import("element-plus").UploadUserFile[]) => void;
|
|
87
|
-
new (): any;
|
|
88
|
-
readonly prototype: any;
|
|
89
|
-
})[], unknown, unknown, () => void, boolean>;
|
|
90
|
-
crossorigin: {
|
|
91
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials") | ((new (...args: any[]) => ("" | "anonymous" | "use-credentials") & {}) | (() => "" | "anonymous" | "use-credentials"))[], unknown, unknown>>;
|
|
92
|
-
readonly required: false;
|
|
93
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
94
|
-
__epPropKey: true;
|
|
95
|
-
};
|
|
96
|
-
action: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "#", boolean>;
|
|
97
|
-
headers: {
|
|
98
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers) | ((new (...args: any[]) => Record<string, any> | Headers) | (() => Record<string, any> | Headers))[], unknown, unknown>>;
|
|
99
|
-
readonly required: false;
|
|
100
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
101
|
-
__epPropKey: true;
|
|
102
|
-
};
|
|
103
|
-
method: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "post", boolean>;
|
|
104
|
-
data: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>) | ((new (...args: any[]) => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Mutable<Record<string, any>> | Promise<import("element-plus/es/utils").Mutable<Record<string, any>>>) | (() => ((rawFile: import("element-plus").UploadRawFile) => import("element-plus/es/utils").Awaitable<import("element-plus").UploadData>) | import("element-plus/es/utils").Awaitable<import("element-plus/es/utils").Mutable<Record<string, any>>>))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
105
|
-
multiple: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
106
|
-
name: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "file", boolean>;
|
|
107
|
-
drag: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
108
|
-
withCredentials: BooleanConstructor;
|
|
109
|
-
showFileList: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
110
|
-
accept: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
111
|
-
fileList: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]) | ((new (...args: any[]) => import("element-plus").UploadUserFile[]) | (() => import("element-plus").UploadUserFile[]))[], unknown, unknown, () => [], boolean>;
|
|
112
|
-
autoUpload: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
113
|
-
listType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "text" | "picture" | "picture-card", unknown, "text", boolean>;
|
|
114
|
-
httpRequest: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
115
|
-
(): import("element-plus").UploadRequestHandler;
|
|
116
|
-
new (): any;
|
|
117
|
-
readonly prototype: any;
|
|
118
|
-
} | ((new (...args: any[]) => import("element-plus").UploadRequestHandler) | (() => import("element-plus").UploadRequestHandler) | {
|
|
119
|
-
(): import("element-plus").UploadRequestHandler;
|
|
120
|
-
new (): any;
|
|
121
|
-
readonly prototype: any;
|
|
122
|
-
})[], unknown, unknown, import("element-plus").UploadRequestHandler, boolean>;
|
|
123
|
-
disabled: BooleanConstructor;
|
|
124
|
-
limit: NumberConstructor;
|
|
125
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
126
|
-
formItemSize: {
|
|
127
|
-
type: PropType<"default" | "small" | "large">;
|
|
128
|
-
default: "default" | "small" | "large";
|
|
129
|
-
};
|
|
130
|
-
formItemSlots: {
|
|
131
|
-
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
132
|
-
default: any;
|
|
133
|
-
};
|
|
134
|
-
elRef: {
|
|
135
|
-
type: PropType<any>;
|
|
136
|
-
required: boolean;
|
|
137
|
-
};
|
|
138
|
-
inline: {
|
|
139
|
-
type: BooleanConstructor;
|
|
140
|
-
default: boolean;
|
|
141
|
-
};
|
|
142
|
-
readonly: {
|
|
143
|
-
type: BooleanConstructor;
|
|
144
|
-
default: any;
|
|
145
|
-
};
|
|
146
|
-
labelPosition: {
|
|
147
|
-
type: PropType<"right">;
|
|
148
|
-
default: string;
|
|
149
|
-
};
|
|
150
|
-
label: StringConstructor;
|
|
151
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
152
|
-
prop: {
|
|
153
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
154
|
-
readonly required: false;
|
|
155
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
156
|
-
__epPropKey: true;
|
|
157
|
-
};
|
|
158
|
-
rules: {
|
|
159
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
160
|
-
readonly required: false;
|
|
161
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
162
|
-
__epPropKey: true;
|
|
163
|
-
};
|
|
164
|
-
error: StringConstructor;
|
|
165
|
-
validateStatus: {
|
|
166
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
167
|
-
readonly required: false;
|
|
168
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
169
|
-
__epPropKey: true;
|
|
170
|
-
};
|
|
171
|
-
for: StringConstructor;
|
|
172
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
173
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
174
|
-
};
|
|
175
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"disabled", keyof T2> | Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"drag", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"onDownload", keyof T2> | Extract<"preview", keyof T2> | Extract<"tip", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"disabled" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "labelPosition" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "name" | "data" | "multiple" | "onChange" | "withCredentials" | "drag" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onDownload" | "preview" | "tip", keyof T2>, KE> : Extract<"disabled" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "labelPosition" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "name" | "data" | "multiple" | "onChange" | "withCredentials" | "drag" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onDownload" | "preview" | "tip", keyof T2>]: { [k in Extract<"disabled" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "labelPosition" | "label" | "labelWidth" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "name" | "data" | "multiple" | "onChange" | "withCredentials" | "drag" | "beforeUpload" | "beforeRemove" | "onRemove" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit" | "onDownload" | "preview" | "tip", keyof T2>]: T2[k]; }[P]; }>;
|
|
176
|
-
export declare const emits: {
|
|
177
|
-
'update:fileList': any;
|
|
178
|
-
remove: (e: UploadFile) => UploadFile;
|
|
179
|
-
};
|
|
180
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("remove" | "update:fileList")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"remove" | "update:fileList", KE> : "remove" | "update:fileList"]: { [k in "remove" | "update:fileList"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { UploadFile } from 'element-plus';
|
|
2
|
-
import { PropType } from 'vue';
|
|
3
|
-
import { Func } from '@vunk/core';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
listType: {
|
|
6
|
-
type: PropType<"picture" | "picture-card" | "text">;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
file: {
|
|
10
|
-
type: PropType<UploadFile>;
|
|
11
|
-
default: () => {};
|
|
12
|
-
};
|
|
13
|
-
disabled: {
|
|
14
|
-
type: BooleanConstructor;
|
|
15
|
-
default: boolean;
|
|
16
|
-
};
|
|
17
|
-
onPreview: {
|
|
18
|
-
type: PropType<Func<UploadFile>>;
|
|
19
|
-
default: () => () => void;
|
|
20
|
-
};
|
|
21
|
-
onDownload: {
|
|
22
|
-
type: PropType<Func<UploadFile>>;
|
|
23
|
-
default: any;
|
|
24
|
-
};
|
|
25
|
-
preview: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
}, {
|
|
30
|
-
handleRemove: (file?: UploadFile) => void;
|
|
31
|
-
t: import("element-plus").Translator;
|
|
32
|
-
nsIcon: {
|
|
33
|
-
namespace: import("vue").ComputedRef<string>;
|
|
34
|
-
b: (blockSuffix?: string) => string;
|
|
35
|
-
e: (element?: string | undefined) => string;
|
|
36
|
-
m: (modifier?: string | undefined) => string;
|
|
37
|
-
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
38
|
-
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
39
|
-
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
40
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
41
|
-
is: {
|
|
42
|
-
(name: string, state: boolean | undefined): string;
|
|
43
|
-
(name: string): string;
|
|
44
|
-
};
|
|
45
|
-
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
46
|
-
cssVarName: (name: string) => string;
|
|
47
|
-
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
48
|
-
cssVarBlockName: (name: string) => string;
|
|
49
|
-
};
|
|
50
|
-
nsUpload: {
|
|
51
|
-
namespace: import("vue").ComputedRef<string>;
|
|
52
|
-
b: (blockSuffix?: string) => string;
|
|
53
|
-
e: (element?: string | undefined) => string;
|
|
54
|
-
m: (modifier?: string | undefined) => string;
|
|
55
|
-
be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
|
|
56
|
-
em: (element?: string | undefined, modifier?: string | undefined) => string;
|
|
57
|
-
bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
|
|
58
|
-
bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
|
|
59
|
-
is: {
|
|
60
|
-
(name: string, state: boolean | undefined): string;
|
|
61
|
-
(name: string): string;
|
|
62
|
-
};
|
|
63
|
-
cssVar: (object: Record<string, string>) => Record<string, string>;
|
|
64
|
-
cssVarName: (name: string) => string;
|
|
65
|
-
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
66
|
-
cssVarBlockName: (name: string) => string;
|
|
67
|
-
};
|
|
68
|
-
handleDownload: (file?: UploadFile) => void;
|
|
69
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
-
remove: (e: UploadFile) => UploadFile;
|
|
71
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
72
|
-
listType: {
|
|
73
|
-
type: PropType<"picture" | "picture-card" | "text">;
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
file: {
|
|
77
|
-
type: PropType<UploadFile>;
|
|
78
|
-
default: () => {};
|
|
79
|
-
};
|
|
80
|
-
disabled: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: boolean;
|
|
83
|
-
};
|
|
84
|
-
onPreview: {
|
|
85
|
-
type: PropType<Func<UploadFile>>;
|
|
86
|
-
default: () => () => void;
|
|
87
|
-
};
|
|
88
|
-
onDownload: {
|
|
89
|
-
type: PropType<Func<UploadFile>>;
|
|
90
|
-
default: any;
|
|
91
|
-
};
|
|
92
|
-
preview: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
|
-
}>> & {
|
|
97
|
-
onRemove?: (e: UploadFile) => any;
|
|
98
|
-
}, {
|
|
99
|
-
disabled: boolean;
|
|
100
|
-
file: UploadFile;
|
|
101
|
-
onPreview: (arg: UploadFile) => any;
|
|
102
|
-
listType: "text" | "picture" | "picture-card";
|
|
103
|
-
onDownload: (arg: UploadFile) => any;
|
|
104
|
-
preview: boolean;
|
|
105
|
-
}, {}>;
|
|
106
|
-
export default _default;
|