@vunk/form 2.14.21 → 2.16.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/dialog/index.cjs +125 -0
- package/components/dialog/index.d.ts +4 -0
- package/components/dialog/index.mjs +119 -0
- package/components/dialog/src/ctx.d.ts +174 -0
- package/components/dialog/src/index.vue.d.ts +1180 -0
- package/components/dialog/src/types.d.ts +1 -0
- package/components/input-file/index.cjs +144 -0
- package/components/input-file/index.d.ts +5 -0
- package/components/input-file/index.mjs +137 -0
- package/components/input-file/src/ctx.d.ts +45 -0
- package/components/input-file/src/index.vue.d.ts +190 -0
- package/components/input-file/src/template.vue.d.ts +202 -0
- package/components/input-file/src/types.d.ts +8 -0
- package/index.d.ts +1 -0
- package/index.esm.js +1 -0
- package/package.json +11 -1
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
readonly VkfFormItemRendererTemplate: {
|
|
3
|
+
new (...args: any[]): any;
|
|
4
|
+
__isFragment?: never;
|
|
5
|
+
__isTeleport?: never;
|
|
6
|
+
__isSuspense?: never;
|
|
7
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
[x: symbol]: any;
|
|
10
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
11
|
+
install(app: import("vue").App): void;
|
|
12
|
+
};
|
|
13
|
+
CoreIndex: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import("vue").PropType<File | File[] | undefined>;
|
|
16
|
+
default: any;
|
|
17
|
+
};
|
|
18
|
+
multiple: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
accept: {
|
|
23
|
+
readonly type: import("vue").PropType<string>;
|
|
24
|
+
readonly required: false;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
+
__epPropKey: true;
|
|
27
|
+
} & {
|
|
28
|
+
readonly default: "";
|
|
29
|
+
};
|
|
30
|
+
disabled: BooleanConstructor;
|
|
31
|
+
limit: NumberConstructor;
|
|
32
|
+
listType: {
|
|
33
|
+
readonly type: import("vue").PropType<"text" | "picture" | "picture-card">;
|
|
34
|
+
readonly required: false;
|
|
35
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
36
|
+
__epPropKey: true;
|
|
37
|
+
} & {
|
|
38
|
+
readonly default: "text";
|
|
39
|
+
};
|
|
40
|
+
tip: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
showFileList: {
|
|
45
|
+
readonly type: import("vue").PropType<boolean>;
|
|
46
|
+
readonly required: false;
|
|
47
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
48
|
+
__epPropKey: true;
|
|
49
|
+
} & {
|
|
50
|
+
readonly default: true;
|
|
51
|
+
};
|
|
52
|
+
drag: BooleanConstructor;
|
|
53
|
+
}>, {
|
|
54
|
+
fileList: import("vue").Ref<{
|
|
55
|
+
name: string;
|
|
56
|
+
percentage?: number;
|
|
57
|
+
status: import("element-plus").UploadStatus;
|
|
58
|
+
size?: number;
|
|
59
|
+
response?: unknown;
|
|
60
|
+
uid: number;
|
|
61
|
+
url?: string;
|
|
62
|
+
raw?: {
|
|
63
|
+
uid: number;
|
|
64
|
+
isDirectory?: boolean;
|
|
65
|
+
readonly lastModified: number;
|
|
66
|
+
readonly name: string;
|
|
67
|
+
readonly webkitRelativePath: string;
|
|
68
|
+
readonly size: number;
|
|
69
|
+
readonly type: string;
|
|
70
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
71
|
+
bytes: () => Promise<Uint8Array>;
|
|
72
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
73
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
74
|
+
text: () => Promise<string>;
|
|
75
|
+
};
|
|
76
|
+
}[], import("element-plus").UploadFile[] | {
|
|
77
|
+
name: string;
|
|
78
|
+
percentage?: number;
|
|
79
|
+
status: import("element-plus").UploadStatus;
|
|
80
|
+
size?: number;
|
|
81
|
+
response?: unknown;
|
|
82
|
+
uid: number;
|
|
83
|
+
url?: string;
|
|
84
|
+
raw?: {
|
|
85
|
+
uid: number;
|
|
86
|
+
isDirectory?: boolean;
|
|
87
|
+
readonly lastModified: number;
|
|
88
|
+
readonly name: string;
|
|
89
|
+
readonly webkitRelativePath: string;
|
|
90
|
+
readonly size: number;
|
|
91
|
+
readonly type: string;
|
|
92
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
93
|
+
bytes: () => Promise<Uint8Array>;
|
|
94
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
95
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
96
|
+
text: () => Promise<string>;
|
|
97
|
+
};
|
|
98
|
+
}[]>;
|
|
99
|
+
uploadProps: import("vue").ComputedRef<{
|
|
100
|
+
fileList: {
|
|
101
|
+
name: string;
|
|
102
|
+
percentage?: number;
|
|
103
|
+
status: import("element-plus").UploadStatus;
|
|
104
|
+
size?: number;
|
|
105
|
+
response?: unknown;
|
|
106
|
+
uid: number;
|
|
107
|
+
url?: string;
|
|
108
|
+
raw?: {
|
|
109
|
+
uid: number;
|
|
110
|
+
isDirectory?: boolean;
|
|
111
|
+
readonly lastModified: number;
|
|
112
|
+
readonly name: string;
|
|
113
|
+
readonly webkitRelativePath: string;
|
|
114
|
+
readonly size: number;
|
|
115
|
+
readonly type: string;
|
|
116
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
117
|
+
bytes: () => Promise<Uint8Array>;
|
|
118
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
119
|
+
stream: () => ReadableStream<Uint8Array>;
|
|
120
|
+
text: () => Promise<string>;
|
|
121
|
+
};
|
|
122
|
+
}[];
|
|
123
|
+
multiple: boolean;
|
|
124
|
+
accept: string;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
limit: number;
|
|
127
|
+
listType: "text" | "picture" | "picture-card";
|
|
128
|
+
tip: string;
|
|
129
|
+
showFileList: boolean;
|
|
130
|
+
drag: boolean;
|
|
131
|
+
autoUpload: boolean;
|
|
132
|
+
action: string;
|
|
133
|
+
}>;
|
|
134
|
+
handleFileListChange: (newFileList: import("element-plus").UploadFile[]) => void;
|
|
135
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
136
|
+
'update:modelValue': any;
|
|
137
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
138
|
+
modelValue: {
|
|
139
|
+
type: import("vue").PropType<File | File[] | undefined>;
|
|
140
|
+
default: any;
|
|
141
|
+
};
|
|
142
|
+
multiple: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
|
+
accept: {
|
|
147
|
+
readonly type: import("vue").PropType<string>;
|
|
148
|
+
readonly required: false;
|
|
149
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
150
|
+
__epPropKey: true;
|
|
151
|
+
} & {
|
|
152
|
+
readonly default: "";
|
|
153
|
+
};
|
|
154
|
+
disabled: BooleanConstructor;
|
|
155
|
+
limit: NumberConstructor;
|
|
156
|
+
listType: {
|
|
157
|
+
readonly type: import("vue").PropType<"text" | "picture" | "picture-card">;
|
|
158
|
+
readonly required: false;
|
|
159
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
160
|
+
__epPropKey: true;
|
|
161
|
+
} & {
|
|
162
|
+
readonly default: "text";
|
|
163
|
+
};
|
|
164
|
+
tip: {
|
|
165
|
+
type: StringConstructor;
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
showFileList: {
|
|
169
|
+
readonly type: import("vue").PropType<boolean>;
|
|
170
|
+
readonly required: false;
|
|
171
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
+
__epPropKey: true;
|
|
173
|
+
} & {
|
|
174
|
+
readonly default: true;
|
|
175
|
+
};
|
|
176
|
+
drag: BooleanConstructor;
|
|
177
|
+
}>> & Readonly<{
|
|
178
|
+
"onUpdate:modelValue"?: (...args: any[] | unknown[]) => any;
|
|
179
|
+
}>, {
|
|
180
|
+
disabled: boolean;
|
|
181
|
+
modelValue: File | File[];
|
|
182
|
+
multiple: boolean;
|
|
183
|
+
drag: boolean;
|
|
184
|
+
showFileList: boolean;
|
|
185
|
+
accept: string;
|
|
186
|
+
listType: "text" | "picture" | "picture-card";
|
|
187
|
+
tip: string;
|
|
188
|
+
}, {}, {
|
|
189
|
+
VkfUpload: {
|
|
190
|
+
new (...args: any[]): any;
|
|
191
|
+
__isFragment?: never;
|
|
192
|
+
__isTeleport?: never;
|
|
193
|
+
__isSuspense?: never;
|
|
194
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<Record<string | symbol, any>>>, Record<string | symbol, any>, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
195
|
+
[x: string]: any;
|
|
196
|
+
[x: symbol]: any;
|
|
197
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
198
|
+
install(app: import("vue").App): void;
|
|
199
|
+
};
|
|
200
|
+
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
201
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
202
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VkfInputFile } from '@vunk/form/components/input-file';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared';
|
|
4
|
+
import { VkfUpload } from '@vunk/form';
|
|
5
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof VkfInputFile>, BasicSource, VueComponentPropsType<typeof VkfUpload> {
|
|
6
|
+
prop: P;
|
|
7
|
+
templateType: 'VkfInputFile';
|
|
8
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from '@vunk/form/components/form-item-renderer-template';
|
|
|
8
8
|
export * from '@vunk/form/components/templates-default';
|
|
9
9
|
export * from '@vunk/form/components/templates-layout';
|
|
10
10
|
export * from '@vunk/form/components/form';
|
|
11
|
+
export * from '@vunk/form/components/form-item';
|
|
11
12
|
export * from '@vunk/form/components/input';
|
|
12
13
|
export * from '@vunk/form/components/input-number';
|
|
13
14
|
export * from '@vunk/form/components/select';
|
package/index.esm.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from '@vunk/form/components/templates-layout';
|
|
|
9
9
|
export * from '@vunk/form/shared';
|
|
10
10
|
export * from '@vunk/form/composables';
|
|
11
11
|
export * from '@vunk/form/components/templates-default';
|
|
12
|
+
export * from '@vunk/form/components/form-item';
|
|
12
13
|
export * from '@vunk/form/components/input';
|
|
13
14
|
export * from '@vunk/form/components/input-number';
|
|
14
15
|
export * from '@vunk/form/components/select';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunk/form",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.esm.js",
|
|
6
6
|
"scripts": {
|
|
@@ -195,6 +195,11 @@
|
|
|
195
195
|
"types": "./components/input-link/index.d.ts",
|
|
196
196
|
"require": "./components/input-link/index.cjs"
|
|
197
197
|
},
|
|
198
|
+
"./components/input-file": {
|
|
199
|
+
"import": "./components/input-file/index.mjs",
|
|
200
|
+
"types": "./components/input-file/index.d.ts",
|
|
201
|
+
"require": "./components/input-file/index.cjs"
|
|
202
|
+
},
|
|
198
203
|
"./components/input-collection": {
|
|
199
204
|
"import": "./components/input-collection/index.mjs",
|
|
200
205
|
"types": "./components/input-collection/index.d.ts",
|
|
@@ -285,6 +290,11 @@
|
|
|
285
290
|
"types": "./components/dialog-input-collection/index.d.ts",
|
|
286
291
|
"require": "./components/dialog-input-collection/index.cjs"
|
|
287
292
|
},
|
|
293
|
+
"./components/dialog": {
|
|
294
|
+
"import": "./components/dialog/index.mjs",
|
|
295
|
+
"types": "./components/dialog/index.d.ts",
|
|
296
|
+
"require": "./components/dialog/index.cjs"
|
|
297
|
+
},
|
|
288
298
|
"./components/date-picker-range": {
|
|
289
299
|
"import": "./components/date-picker-range/index.mjs",
|
|
290
300
|
"types": "./components/date-picker-range/index.d.ts",
|