cd-form 1.0.19 → 1.0.25
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/CdForm.vue.d.ts +141 -5
- package/dist/FormRender.vue.d.ts +52 -0
- package/dist/cd-form.js +40341 -15445
- package/dist/cd-form.umd.cjs +128 -23
- package/dist/components/CdRelationForm/RelationForm.vue.d.ts +112 -0
- package/dist/components/CdRelationForm/index.d.ts +207 -0
- package/dist/components/RenderFormItem.vue.d.ts +244 -2
- package/dist/style.css +1 -1
- package/package.json +65 -64
package/dist/CdForm.vue.d.ts
CHANGED
|
@@ -43,12 +43,29 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
43
43
|
showFilter?: boolean;
|
|
44
44
|
fieldOptions?: any[];
|
|
45
45
|
filterCondition?: any;
|
|
46
|
-
inlineEdit?: boolean;
|
|
47
46
|
planFilterOptions?: any[];
|
|
48
47
|
enableVirtualScroll?: boolean;
|
|
49
48
|
virtualScrollGt?: number;
|
|
50
49
|
tableHeight?: number | string;
|
|
51
50
|
businessFlow?: BusinessFlowConfig;
|
|
51
|
+
selectionMode?: "single" | "multiple";
|
|
52
|
+
showType?: "dialog" | "list";
|
|
53
|
+
relationFormData?: Record<string, any>;
|
|
54
|
+
shareUrl?: string;
|
|
55
|
+
shareConfig?: {
|
|
56
|
+
currentPermission?: "read" | "edit" | "manage";
|
|
57
|
+
owner?: any;
|
|
58
|
+
collaborators?: any[];
|
|
59
|
+
tabs?: any[];
|
|
60
|
+
organizations?: any[];
|
|
61
|
+
};
|
|
62
|
+
importConfig?: {
|
|
63
|
+
fieldMapping?: Record<string, string>;
|
|
64
|
+
requiredFields?: string[];
|
|
65
|
+
validators?: Record<string, (value: any) => boolean | string>;
|
|
66
|
+
enableTemplate?: boolean;
|
|
67
|
+
templateData?: any[];
|
|
68
|
+
};
|
|
52
69
|
}>, {
|
|
53
70
|
deviceType: string;
|
|
54
71
|
data: () => never[];
|
|
@@ -72,6 +89,17 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
72
89
|
enableVirtualScroll: boolean;
|
|
73
90
|
virtualScrollGt: number;
|
|
74
91
|
tableHeight: undefined;
|
|
92
|
+
selectionMode: string;
|
|
93
|
+
showType: string;
|
|
94
|
+
relationFormData: () => {};
|
|
95
|
+
shareUrl: string;
|
|
96
|
+
shareConfig: () => {
|
|
97
|
+
currentPermission: string;
|
|
98
|
+
owner: undefined;
|
|
99
|
+
collaborators: never[];
|
|
100
|
+
tabs: never[];
|
|
101
|
+
organizations: never[];
|
|
102
|
+
};
|
|
75
103
|
}>>, {
|
|
76
104
|
tableRef: Ref<any, any>;
|
|
77
105
|
formRenderRef: Ref<any, any>;
|
|
@@ -94,12 +122,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
94
122
|
delete: (row: any) => void;
|
|
95
123
|
"load-users": (payload: any) => void;
|
|
96
124
|
"dept-click": (payload: any) => void;
|
|
125
|
+
share: (payload: any) => void;
|
|
97
126
|
group: (params: {
|
|
98
127
|
groupFields: string[];
|
|
99
128
|
mergeFields: boolean;
|
|
100
129
|
updatedData?: any[];
|
|
101
130
|
}) => void;
|
|
102
|
-
"select-org-data": (data: any) => void;
|
|
103
131
|
"page-change": (pageInfo: {
|
|
104
132
|
currentPage: number;
|
|
105
133
|
pageSize: number;
|
|
@@ -126,6 +154,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
126
154
|
field: string;
|
|
127
155
|
filterValue: any;
|
|
128
156
|
}) => void;
|
|
157
|
+
"select-org-data": (data: any) => void;
|
|
129
158
|
"column-filter-reset": (field: string) => void;
|
|
130
159
|
"save-plan": (plan: any) => void;
|
|
131
160
|
"delete-plan": (plan: any) => void;
|
|
@@ -143,6 +172,40 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
143
172
|
"select-upstream": (params: {
|
|
144
173
|
upstream: any;
|
|
145
174
|
}) => void;
|
|
175
|
+
"selection-change": (selectedRows: any[]) => void;
|
|
176
|
+
"row-click": (row: any) => void;
|
|
177
|
+
"row-dblclick": (row: any) => void;
|
|
178
|
+
"i18n-click": (data: {
|
|
179
|
+
field: string;
|
|
180
|
+
value: any;
|
|
181
|
+
i18nValue: string;
|
|
182
|
+
}) => void;
|
|
183
|
+
"relation-form-search": (data: {
|
|
184
|
+
field: string;
|
|
185
|
+
releaseId: string;
|
|
186
|
+
keyword: string;
|
|
187
|
+
}) => void;
|
|
188
|
+
"relation-form-advanced": (data: {
|
|
189
|
+
field: string;
|
|
190
|
+
releaseId: string;
|
|
191
|
+
}) => void;
|
|
192
|
+
"relation-form-dialog-search": (data: {
|
|
193
|
+
field: string;
|
|
194
|
+
releaseId: string;
|
|
195
|
+
filters: any;
|
|
196
|
+
}) => void;
|
|
197
|
+
"relation-form-page-change": (data: {
|
|
198
|
+
field: string;
|
|
199
|
+
releaseId: string;
|
|
200
|
+
pagination: any;
|
|
201
|
+
}) => void;
|
|
202
|
+
import: (data: {
|
|
203
|
+
data: any[];
|
|
204
|
+
mode: "add" | "update";
|
|
205
|
+
file: File;
|
|
206
|
+
}) => void;
|
|
207
|
+
export: () => void;
|
|
208
|
+
"download-template": () => void;
|
|
146
209
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
147
210
|
formData: FormDataConfig;
|
|
148
211
|
columnData?: ColumnDataConfig;
|
|
@@ -155,12 +218,29 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
155
218
|
showFilter?: boolean;
|
|
156
219
|
fieldOptions?: any[];
|
|
157
220
|
filterCondition?: any;
|
|
158
|
-
inlineEdit?: boolean;
|
|
159
221
|
planFilterOptions?: any[];
|
|
160
222
|
enableVirtualScroll?: boolean;
|
|
161
223
|
virtualScrollGt?: number;
|
|
162
224
|
tableHeight?: number | string;
|
|
163
225
|
businessFlow?: BusinessFlowConfig;
|
|
226
|
+
selectionMode?: "single" | "multiple";
|
|
227
|
+
showType?: "dialog" | "list";
|
|
228
|
+
relationFormData?: Record<string, any>;
|
|
229
|
+
shareUrl?: string;
|
|
230
|
+
shareConfig?: {
|
|
231
|
+
currentPermission?: "read" | "edit" | "manage";
|
|
232
|
+
owner?: any;
|
|
233
|
+
collaborators?: any[];
|
|
234
|
+
tabs?: any[];
|
|
235
|
+
organizations?: any[];
|
|
236
|
+
};
|
|
237
|
+
importConfig?: {
|
|
238
|
+
fieldMapping?: Record<string, string>;
|
|
239
|
+
requiredFields?: string[];
|
|
240
|
+
validators?: Record<string, (value: any) => boolean | string>;
|
|
241
|
+
enableTemplate?: boolean;
|
|
242
|
+
templateData?: any[];
|
|
243
|
+
};
|
|
164
244
|
}>, {
|
|
165
245
|
deviceType: string;
|
|
166
246
|
data: () => never[];
|
|
@@ -184,6 +264,17 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
184
264
|
enableVirtualScroll: boolean;
|
|
185
265
|
virtualScrollGt: number;
|
|
186
266
|
tableHeight: undefined;
|
|
267
|
+
selectionMode: string;
|
|
268
|
+
showType: string;
|
|
269
|
+
relationFormData: () => {};
|
|
270
|
+
shareUrl: string;
|
|
271
|
+
shareConfig: () => {
|
|
272
|
+
currentPermission: string;
|
|
273
|
+
owner: undefined;
|
|
274
|
+
collaborators: never[];
|
|
275
|
+
tabs: never[];
|
|
276
|
+
organizations: never[];
|
|
277
|
+
};
|
|
187
278
|
}>>> & Readonly<{
|
|
188
279
|
onAdd?: ((data: any) => any) | undefined;
|
|
189
280
|
onEdit?: ((data: any) => any) | undefined;
|
|
@@ -191,12 +282,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
191
282
|
onDelete?: ((row: any) => any) | undefined;
|
|
192
283
|
"onLoad-users"?: ((payload: any) => any) | undefined;
|
|
193
284
|
"onDept-click"?: ((payload: any) => any) | undefined;
|
|
285
|
+
onShare?: ((payload: any) => any) | undefined;
|
|
194
286
|
onGroup?: ((params: {
|
|
195
287
|
groupFields: string[];
|
|
196
288
|
mergeFields: boolean;
|
|
197
289
|
updatedData?: any[];
|
|
198
290
|
}) => any) | undefined;
|
|
199
|
-
"onSelect-org-data"?: ((data: any) => any) | undefined;
|
|
200
291
|
"onPage-change"?: ((pageInfo: {
|
|
201
292
|
currentPage: number;
|
|
202
293
|
pageSize: number;
|
|
@@ -223,6 +314,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
223
314
|
field: string;
|
|
224
315
|
filterValue: any;
|
|
225
316
|
}) => any) | undefined;
|
|
317
|
+
"onSelect-org-data"?: ((data: any) => any) | undefined;
|
|
226
318
|
"onColumn-filter-reset"?: ((field: string) => any) | undefined;
|
|
227
319
|
"onSave-plan"?: ((plan: any) => any) | undefined;
|
|
228
320
|
"onDelete-plan"?: ((plan: any) => any) | undefined;
|
|
@@ -240,9 +332,42 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
240
332
|
"onSelect-upstream"?: ((params: {
|
|
241
333
|
upstream: any;
|
|
242
334
|
}) => any) | undefined;
|
|
335
|
+
"onSelection-change"?: ((selectedRows: any[]) => any) | undefined;
|
|
336
|
+
"onRow-click"?: ((row: any) => any) | undefined;
|
|
337
|
+
"onRow-dblclick"?: ((row: any) => any) | undefined;
|
|
338
|
+
"onI18n-click"?: ((data: {
|
|
339
|
+
field: string;
|
|
340
|
+
value: any;
|
|
341
|
+
i18nValue: string;
|
|
342
|
+
}) => any) | undefined;
|
|
343
|
+
"onRelation-form-search"?: ((data: {
|
|
344
|
+
field: string;
|
|
345
|
+
releaseId: string;
|
|
346
|
+
keyword: string;
|
|
347
|
+
}) => any) | undefined;
|
|
348
|
+
"onRelation-form-advanced"?: ((data: {
|
|
349
|
+
field: string;
|
|
350
|
+
releaseId: string;
|
|
351
|
+
}) => any) | undefined;
|
|
352
|
+
"onRelation-form-dialog-search"?: ((data: {
|
|
353
|
+
field: string;
|
|
354
|
+
releaseId: string;
|
|
355
|
+
filters: any;
|
|
356
|
+
}) => any) | undefined;
|
|
357
|
+
"onRelation-form-page-change"?: ((data: {
|
|
358
|
+
field: string;
|
|
359
|
+
releaseId: string;
|
|
360
|
+
pagination: any;
|
|
361
|
+
}) => any) | undefined;
|
|
362
|
+
onImport?: ((data: {
|
|
363
|
+
data: any[];
|
|
364
|
+
mode: "add" | "update";
|
|
365
|
+
file: File;
|
|
366
|
+
}) => any) | undefined;
|
|
367
|
+
onExport?: (() => any) | undefined;
|
|
368
|
+
"onDownload-template"?: (() => any) | undefined;
|
|
243
369
|
}>, {
|
|
244
370
|
data: any[];
|
|
245
|
-
inlineEdit: boolean;
|
|
246
371
|
showFilter: boolean;
|
|
247
372
|
deviceType: "pc" | "app" | "pad";
|
|
248
373
|
loading: boolean;
|
|
@@ -254,6 +379,17 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
254
379
|
enableVirtualScroll: boolean;
|
|
255
380
|
virtualScrollGt: number;
|
|
256
381
|
tableHeight: number | string;
|
|
382
|
+
selectionMode: "single" | "multiple";
|
|
383
|
+
showType: "dialog" | "list";
|
|
384
|
+
relationFormData: Record<string, any>;
|
|
385
|
+
shareUrl: string;
|
|
386
|
+
shareConfig: {
|
|
387
|
+
currentPermission?: "read" | "edit" | "manage";
|
|
388
|
+
owner?: any;
|
|
389
|
+
collaborators?: any[];
|
|
390
|
+
tabs?: any[];
|
|
391
|
+
organizations?: any[];
|
|
392
|
+
};
|
|
257
393
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
258
394
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
259
395
|
export default _default;
|
package/dist/FormRender.vue.d.ts
CHANGED
|
@@ -6,9 +6,11 @@ interface Props {
|
|
|
6
6
|
fields: FormFieldConfig[];
|
|
7
7
|
modelValue: Record<string, any>;
|
|
8
8
|
mode?: OperationMode;
|
|
9
|
+
relationFormData?: Record<string, any>;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
11
12
|
mode: string;
|
|
13
|
+
relationFormData: () => {};
|
|
12
14
|
}>>, {
|
|
13
15
|
formRef: Ref<any, any>;
|
|
14
16
|
validate: () => Promise<boolean>;
|
|
@@ -23,15 +25,65 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
|
|
|
23
25
|
"update:modelValue": (value: Record<string, any>) => void;
|
|
24
26
|
"field-change": (field: string, value: any) => void;
|
|
25
27
|
"select-org-data": (data: any) => void;
|
|
28
|
+
"i18n-click": (data: {
|
|
29
|
+
field: string;
|
|
30
|
+
value: any;
|
|
31
|
+
i18nValue: string;
|
|
32
|
+
}) => void;
|
|
33
|
+
"relation-form-search": (data: {
|
|
34
|
+
field: string;
|
|
35
|
+
releaseId: string;
|
|
36
|
+
keyword: string;
|
|
37
|
+
}) => void;
|
|
38
|
+
"relation-form-advanced": (data: {
|
|
39
|
+
field: string;
|
|
40
|
+
releaseId: string;
|
|
41
|
+
}) => void;
|
|
42
|
+
"relation-form-dialog-search": (data: {
|
|
43
|
+
field: string;
|
|
44
|
+
releaseId: string;
|
|
45
|
+
filters: any;
|
|
46
|
+
}) => void;
|
|
47
|
+
"relation-form-page-change": (data: {
|
|
48
|
+
field: string;
|
|
49
|
+
releaseId: string;
|
|
50
|
+
pagination: any;
|
|
51
|
+
}) => void;
|
|
26
52
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
27
53
|
mode: string;
|
|
54
|
+
relationFormData: () => {};
|
|
28
55
|
}>>> & Readonly<{
|
|
29
56
|
onSubmit?: ((data: Record<string, any>) => any) | undefined;
|
|
30
57
|
"onUpdate:modelValue"?: ((value: Record<string, any>) => any) | undefined;
|
|
31
58
|
"onField-change"?: ((field: string, value: any) => any) | undefined;
|
|
32
59
|
"onSelect-org-data"?: ((data: any) => any) | undefined;
|
|
60
|
+
"onI18n-click"?: ((data: {
|
|
61
|
+
field: string;
|
|
62
|
+
value: any;
|
|
63
|
+
i18nValue: string;
|
|
64
|
+
}) => any) | undefined;
|
|
65
|
+
"onRelation-form-search"?: ((data: {
|
|
66
|
+
field: string;
|
|
67
|
+
releaseId: string;
|
|
68
|
+
keyword: string;
|
|
69
|
+
}) => any) | undefined;
|
|
70
|
+
"onRelation-form-advanced"?: ((data: {
|
|
71
|
+
field: string;
|
|
72
|
+
releaseId: string;
|
|
73
|
+
}) => any) | undefined;
|
|
74
|
+
"onRelation-form-dialog-search"?: ((data: {
|
|
75
|
+
field: string;
|
|
76
|
+
releaseId: string;
|
|
77
|
+
filters: any;
|
|
78
|
+
}) => any) | undefined;
|
|
79
|
+
"onRelation-form-page-change"?: ((data: {
|
|
80
|
+
field: string;
|
|
81
|
+
releaseId: string;
|
|
82
|
+
pagination: any;
|
|
83
|
+
}) => any) | undefined;
|
|
33
84
|
}>, {
|
|
34
85
|
mode: OperationMode;
|
|
86
|
+
relationFormData: Record<string, any>;
|
|
35
87
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
36
88
|
export default _default;
|
|
37
89
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|