cd-form 1.0.6 → 1.0.7
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 +46 -0
- package/dist/cd-form.js +4457 -3851
- package/dist/cd-form.umd.cjs +21 -18
- package/dist/index.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/utils/scriptRuntime.d.ts +86 -0
- package/package.json +1 -1
package/dist/CdForm.vue.d.ts
CHANGED
|
@@ -1,6 +1,33 @@
|
|
|
1
1
|
import { FormDataConfig, ColumnDataConfig, TableColumn, PageConfig, ButtonConfig } from './types';
|
|
2
2
|
import { DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
+
interface BusinessFlowConfig {
|
|
5
|
+
upstream?: Array<{
|
|
6
|
+
formId: string;
|
|
7
|
+
formName: string;
|
|
8
|
+
relationType: 'oneToOne' | 'manyToOne';
|
|
9
|
+
headerMapping: Array<{
|
|
10
|
+
sourceField: string;
|
|
11
|
+
targetField: string;
|
|
12
|
+
}>;
|
|
13
|
+
detailMapping?: Array<{
|
|
14
|
+
sourceField: string;
|
|
15
|
+
targetField: string;
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
downstream?: Array<{
|
|
19
|
+
formId: string;
|
|
20
|
+
formName: string;
|
|
21
|
+
headerMapping: Array<{
|
|
22
|
+
sourceField: string;
|
|
23
|
+
targetField: string;
|
|
24
|
+
}>;
|
|
25
|
+
detailMapping?: Array<{
|
|
26
|
+
sourceField: string;
|
|
27
|
+
targetField: string;
|
|
28
|
+
}>;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
4
31
|
declare function __VLS_template(): Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
|
|
5
32
|
"toolbar-right"?(_: {}): any;
|
|
6
33
|
};
|
|
@@ -20,6 +47,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
20
47
|
enableVirtualScroll?: boolean;
|
|
21
48
|
virtualScrollGt?: number;
|
|
22
49
|
tableHeight?: number | string;
|
|
50
|
+
businessFlow?: BusinessFlowConfig;
|
|
23
51
|
}>, {
|
|
24
52
|
data: () => never[];
|
|
25
53
|
loading: boolean;
|
|
@@ -50,10 +78,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
50
78
|
handleDelete: () => void;
|
|
51
79
|
handleDetail: () => void;
|
|
52
80
|
handleSaveChanges: () => Promise<void>;
|
|
81
|
+
handlePushDown: () => void;
|
|
82
|
+
handleSelectUpstream: (upstream: any) => void;
|
|
53
83
|
isInlineEdit: ComputedRef<boolean>;
|
|
54
84
|
showGroupDialog: Ref<boolean, boolean>;
|
|
55
85
|
selectedGroupField: Ref<string[], string[]>;
|
|
56
86
|
mergeGroupFields: Ref<boolean, boolean>;
|
|
87
|
+
openFormPopup: (initData?: any, title?: string) => void;
|
|
57
88
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
58
89
|
add: (data: any) => void;
|
|
59
90
|
edit: (data: any) => void;
|
|
@@ -103,6 +134,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
103
134
|
"column-change": (columns: any[]) => void;
|
|
104
135
|
"color-filter-change": (rules: any[]) => void;
|
|
105
136
|
"color-filter-clear": () => void;
|
|
137
|
+
"push-down": (params: {
|
|
138
|
+
downstream: any;
|
|
139
|
+
selectedRows: any[];
|
|
140
|
+
}) => void;
|
|
141
|
+
"select-upstream": (params: {
|
|
142
|
+
upstream: any;
|
|
143
|
+
}) => void;
|
|
106
144
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
107
145
|
formData: FormDataConfig;
|
|
108
146
|
columnData: ColumnDataConfig;
|
|
@@ -119,6 +157,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
119
157
|
enableVirtualScroll?: boolean;
|
|
120
158
|
virtualScrollGt?: number;
|
|
121
159
|
tableHeight?: number | string;
|
|
160
|
+
businessFlow?: BusinessFlowConfig;
|
|
122
161
|
}>, {
|
|
123
162
|
data: () => never[];
|
|
124
163
|
loading: boolean;
|
|
@@ -190,6 +229,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
|
|
|
190
229
|
"onColumn-change"?: ((columns: any[]) => any) | undefined;
|
|
191
230
|
"onColor-filter-change"?: ((rules: any[]) => any) | undefined;
|
|
192
231
|
"onColor-filter-clear"?: (() => any) | undefined;
|
|
232
|
+
"onPush-down"?: ((params: {
|
|
233
|
+
downstream: any;
|
|
234
|
+
selectedRows: any[];
|
|
235
|
+
}) => any) | undefined;
|
|
236
|
+
"onSelect-upstream"?: ((params: {
|
|
237
|
+
upstream: any;
|
|
238
|
+
}) => any) | undefined;
|
|
193
239
|
}>, {
|
|
194
240
|
data: any[];
|
|
195
241
|
inlineEdit: boolean;
|