cnhis-design-vue 3.1.26-beta.3 → 3.1.26-beta.4
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/es/components/form-config/index.d.ts +888 -872
- package/es/components/form-config/src/FormConfig.vue.d.ts +888 -872
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +444 -436
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +444 -436
- package/es/components/form-render/index.d.ts +445 -436
- package/es/components/form-render/index.js +5 -1
- package/es/components/form-render/src/FormRender.js +23 -9
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRenderWrapper.js +46 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +621 -0
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +2 -2
- package/es/components/form-render/src/components/renderer/simpleComponent.js +2 -2
- package/es/components/form-render/src/hooks/useFormContext.js +2 -2
- package/es/components/form-render/src/types/index.d.ts +3 -1
- package/es/components/form-render/src/utils/index.d.ts +2 -1
- package/es/components/form-render/src/utils/index.js +26 -4
- package/es/components/iho-table/src/IhoTable.js +2 -1
- package/es/components/iho-table/src/constants/index.d.ts +4 -2
- package/es/components/iho-table/src/constants/index.js +9 -1
- package/es/components/iho-table/src/hooks/useTableContext.d.ts +7 -0
- package/es/components/iho-table/src/hooks/useTableContext.js +15 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +1 -1
- package/es/components/iho-table/src/types/index.d.ts +6 -2
- package/es/components/index.js +4 -0
- package/es/components/shortcut-setter/index.d.ts +444 -436
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +444 -436
- package/package.json +2 -2
|
@@ -0,0 +1,621 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../es/shared/types';
|
|
2
|
+
import { FormRenderExpose } from '../../../../es/components/form-render';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
4
|
+
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
|
5
|
+
key: import("vue").Ref<number>;
|
|
6
|
+
reload: () => Promise<void>;
|
|
7
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFieldState", "resetFields", "queryWidget"];
|
|
8
|
+
exposed: AnyObject;
|
|
9
|
+
FormRender: import("vue").DefineComponent<{
|
|
10
|
+
fieldList: {
|
|
11
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
12
|
+
};
|
|
13
|
+
initialData: {
|
|
14
|
+
type: import("vue").PropType<AnyObject>;
|
|
15
|
+
default: () => {};
|
|
16
|
+
};
|
|
17
|
+
fieldVisitor: {
|
|
18
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FieldVisitor>;
|
|
19
|
+
};
|
|
20
|
+
column: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
maxHeight: {
|
|
25
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
anchor: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
parallelism: {
|
|
33
|
+
type: NumberConstructor;
|
|
34
|
+
default: number;
|
|
35
|
+
};
|
|
36
|
+
businessFormatter: {
|
|
37
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FormBusinessFormatter>;
|
|
38
|
+
};
|
|
39
|
+
schema: {
|
|
40
|
+
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
41
|
+
[key: symbol]: any;
|
|
42
|
+
[key: `x-${string}`]: any;
|
|
43
|
+
[key: `x-${number}`]: any;
|
|
44
|
+
version?: string | undefined;
|
|
45
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
46
|
+
title?: any;
|
|
47
|
+
description?: any;
|
|
48
|
+
default?: any;
|
|
49
|
+
readOnly?: boolean | undefined;
|
|
50
|
+
writeOnly?: boolean | undefined;
|
|
51
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
52
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
53
|
+
const?: any;
|
|
54
|
+
multipleOf?: number | undefined;
|
|
55
|
+
maximum?: number | undefined;
|
|
56
|
+
exclusiveMaximum?: number | undefined;
|
|
57
|
+
minimum?: number | undefined;
|
|
58
|
+
exclusiveMinimum?: number | undefined;
|
|
59
|
+
maxLength?: number | undefined;
|
|
60
|
+
minLength?: number | undefined;
|
|
61
|
+
pattern?: string | RegExp | undefined;
|
|
62
|
+
maxItems?: number | undefined;
|
|
63
|
+
minItems?: number | undefined;
|
|
64
|
+
uniqueItems?: boolean | undefined;
|
|
65
|
+
maxProperties?: number | undefined;
|
|
66
|
+
minProperties?: number | undefined;
|
|
67
|
+
required?: string | boolean | string[] | undefined;
|
|
68
|
+
format?: string | undefined;
|
|
69
|
+
$ref?: string | undefined;
|
|
70
|
+
$namespace?: string | undefined;
|
|
71
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
72
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
73
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
74
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
75
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
76
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
77
|
+
"x-value"?: any;
|
|
78
|
+
"x-index"?: number | undefined;
|
|
79
|
+
"x-pattern"?: any;
|
|
80
|
+
"x-display"?: any;
|
|
81
|
+
"x-validator"?: any;
|
|
82
|
+
"x-decorator"?: any;
|
|
83
|
+
"x-decorator-props"?: any;
|
|
84
|
+
"x-component"?: any;
|
|
85
|
+
"x-component-props"?: any;
|
|
86
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
87
|
+
"x-content"?: any;
|
|
88
|
+
"x-data"?: any;
|
|
89
|
+
"x-visible"?: boolean | undefined;
|
|
90
|
+
"x-hidden"?: boolean | undefined;
|
|
91
|
+
"x-disabled"?: boolean | undefined;
|
|
92
|
+
"x-editable"?: boolean | undefined;
|
|
93
|
+
"x-read-only"?: boolean | undefined;
|
|
94
|
+
"x-read-pretty"?: boolean | undefined;
|
|
95
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
96
|
+
}>>;
|
|
97
|
+
};
|
|
98
|
+
components: {
|
|
99
|
+
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
100
|
+
default: () => {};
|
|
101
|
+
};
|
|
102
|
+
scope: {
|
|
103
|
+
type: import("vue").PropType<AnyObject>;
|
|
104
|
+
default: () => {};
|
|
105
|
+
};
|
|
106
|
+
annotation: {
|
|
107
|
+
type: import("vue").PropType<AnyObject>;
|
|
108
|
+
};
|
|
109
|
+
consumer: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
uuid: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
};
|
|
116
|
+
lifeCycle: {
|
|
117
|
+
type: import("vue").PropType<Partial<{
|
|
118
|
+
onSetup(): void;
|
|
119
|
+
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<AnyObject>;
|
|
120
|
+
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
121
|
+
}>>;
|
|
122
|
+
};
|
|
123
|
+
}, {
|
|
124
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
125
|
+
fieldList: {
|
|
126
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
127
|
+
};
|
|
128
|
+
initialData: {
|
|
129
|
+
type: import("vue").PropType<AnyObject>;
|
|
130
|
+
default: () => {};
|
|
131
|
+
};
|
|
132
|
+
fieldVisitor: {
|
|
133
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FieldVisitor>;
|
|
134
|
+
};
|
|
135
|
+
column: {
|
|
136
|
+
type: NumberConstructor;
|
|
137
|
+
default: number;
|
|
138
|
+
};
|
|
139
|
+
maxHeight: {
|
|
140
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
anchor: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
parallelism: {
|
|
148
|
+
type: NumberConstructor;
|
|
149
|
+
default: number;
|
|
150
|
+
};
|
|
151
|
+
businessFormatter: {
|
|
152
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FormBusinessFormatter>;
|
|
153
|
+
};
|
|
154
|
+
schema: {
|
|
155
|
+
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
156
|
+
[key: symbol]: any;
|
|
157
|
+
[key: `x-${string}`]: any;
|
|
158
|
+
[key: `x-${number}`]: any;
|
|
159
|
+
version?: string | undefined;
|
|
160
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
161
|
+
title?: any;
|
|
162
|
+
description?: any;
|
|
163
|
+
default?: any;
|
|
164
|
+
readOnly?: boolean | undefined;
|
|
165
|
+
writeOnly?: boolean | undefined;
|
|
166
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
167
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
168
|
+
const?: any;
|
|
169
|
+
multipleOf?: number | undefined;
|
|
170
|
+
maximum?: number | undefined;
|
|
171
|
+
exclusiveMaximum?: number | undefined;
|
|
172
|
+
minimum?: number | undefined;
|
|
173
|
+
exclusiveMinimum?: number | undefined;
|
|
174
|
+
maxLength?: number | undefined;
|
|
175
|
+
minLength?: number | undefined;
|
|
176
|
+
pattern?: string | RegExp | undefined;
|
|
177
|
+
maxItems?: number | undefined;
|
|
178
|
+
minItems?: number | undefined;
|
|
179
|
+
uniqueItems?: boolean | undefined;
|
|
180
|
+
maxProperties?: number | undefined;
|
|
181
|
+
minProperties?: number | undefined;
|
|
182
|
+
required?: string | boolean | string[] | undefined;
|
|
183
|
+
format?: string | undefined;
|
|
184
|
+
$ref?: string | undefined;
|
|
185
|
+
$namespace?: string | undefined;
|
|
186
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
187
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
188
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
189
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
190
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
191
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
192
|
+
"x-value"?: any;
|
|
193
|
+
"x-index"?: number | undefined;
|
|
194
|
+
"x-pattern"?: any;
|
|
195
|
+
"x-display"?: any;
|
|
196
|
+
"x-validator"?: any;
|
|
197
|
+
"x-decorator"?: any;
|
|
198
|
+
"x-decorator-props"?: any;
|
|
199
|
+
"x-component"?: any;
|
|
200
|
+
"x-component-props"?: any;
|
|
201
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
202
|
+
"x-content"?: any;
|
|
203
|
+
"x-data"?: any;
|
|
204
|
+
"x-visible"?: boolean | undefined;
|
|
205
|
+
"x-hidden"?: boolean | undefined;
|
|
206
|
+
"x-disabled"?: boolean | undefined;
|
|
207
|
+
"x-editable"?: boolean | undefined;
|
|
208
|
+
"x-read-only"?: boolean | undefined;
|
|
209
|
+
"x-read-pretty"?: boolean | undefined;
|
|
210
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
211
|
+
}>>;
|
|
212
|
+
};
|
|
213
|
+
components: {
|
|
214
|
+
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
215
|
+
default: () => {};
|
|
216
|
+
};
|
|
217
|
+
scope: {
|
|
218
|
+
type: import("vue").PropType<AnyObject>;
|
|
219
|
+
default: () => {};
|
|
220
|
+
};
|
|
221
|
+
annotation: {
|
|
222
|
+
type: import("vue").PropType<AnyObject>;
|
|
223
|
+
};
|
|
224
|
+
consumer: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
uuid: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
};
|
|
231
|
+
lifeCycle: {
|
|
232
|
+
type: import("vue").PropType<Partial<{
|
|
233
|
+
onSetup(): void;
|
|
234
|
+
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<AnyObject>;
|
|
235
|
+
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
236
|
+
}>>;
|
|
237
|
+
};
|
|
238
|
+
}>> & {
|
|
239
|
+
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
240
|
+
}>>;
|
|
241
|
+
emit: (event: "formChange", ...args: any[]) => void;
|
|
242
|
+
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
243
|
+
formModel: import("../../../../es/components/form-render").Form<{
|
|
244
|
+
[x: string]: any;
|
|
245
|
+
}>;
|
|
246
|
+
SchemaField: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>;
|
|
247
|
+
businessCollector: import("../../../../es/components/form-render").BusinessCollector;
|
|
248
|
+
formItemDepsCollector: import("../../../../es/components/form-render").FormItemDepsCollector;
|
|
249
|
+
changeContextCollector: import("../../../../es/components/form-render").ContextCollector;
|
|
250
|
+
formUUID: string;
|
|
251
|
+
scrollbarRef: import("vue").Ref<HTMLElement | undefined>;
|
|
252
|
+
schemaAdaptor: (fieldList: import("../../../../es/components/form-render").FieldItem[]) => Record<string, import("@formily/json-schema").Stringify<{
|
|
253
|
+
[key: symbol]: any;
|
|
254
|
+
[key: `x-${string}`]: any;
|
|
255
|
+
[key: `x-${number}`]: any;
|
|
256
|
+
version?: string | undefined;
|
|
257
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
258
|
+
title?: any;
|
|
259
|
+
description?: any;
|
|
260
|
+
default?: any;
|
|
261
|
+
readOnly?: boolean | undefined;
|
|
262
|
+
writeOnly?: boolean | undefined;
|
|
263
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
264
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
265
|
+
const?: any;
|
|
266
|
+
multipleOf?: number | undefined;
|
|
267
|
+
maximum?: number | undefined;
|
|
268
|
+
exclusiveMaximum?: number | undefined;
|
|
269
|
+
minimum?: number | undefined;
|
|
270
|
+
exclusiveMinimum?: number | undefined;
|
|
271
|
+
maxLength?: number | undefined;
|
|
272
|
+
minLength?: number | undefined;
|
|
273
|
+
pattern?: string | RegExp | undefined;
|
|
274
|
+
maxItems?: number | undefined;
|
|
275
|
+
minItems?: number | undefined;
|
|
276
|
+
uniqueItems?: boolean | undefined;
|
|
277
|
+
maxProperties?: number | undefined;
|
|
278
|
+
minProperties?: number | undefined;
|
|
279
|
+
required?: string | boolean | string[] | undefined;
|
|
280
|
+
format?: string | undefined;
|
|
281
|
+
$ref?: string | undefined;
|
|
282
|
+
$namespace?: string | undefined;
|
|
283
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
284
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
285
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
286
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
287
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
288
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
289
|
+
"x-value"?: any;
|
|
290
|
+
"x-index"?: number | undefined;
|
|
291
|
+
"x-pattern"?: any;
|
|
292
|
+
"x-display"?: any;
|
|
293
|
+
"x-validator"?: any;
|
|
294
|
+
"x-decorator"?: any;
|
|
295
|
+
"x-decorator-props"?: any;
|
|
296
|
+
"x-component"?: any;
|
|
297
|
+
"x-component-props"?: any;
|
|
298
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
299
|
+
"x-content"?: any;
|
|
300
|
+
"x-data"?: any;
|
|
301
|
+
"x-visible"?: boolean | undefined;
|
|
302
|
+
"x-hidden"?: boolean | undefined;
|
|
303
|
+
"x-disabled"?: boolean | undefined;
|
|
304
|
+
"x-editable"?: boolean | undefined;
|
|
305
|
+
"x-read-only"?: boolean | undefined;
|
|
306
|
+
"x-read-pretty"?: boolean | undefined;
|
|
307
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
308
|
+
}>>;
|
|
309
|
+
_fieldList: import("../../../../es/components/form-render").FieldItem[];
|
|
310
|
+
parsedSchema: import("vue").ComputedRef<import("@formily/json-schema").Stringify<{
|
|
311
|
+
[key: symbol]: any;
|
|
312
|
+
[key: `x-${string}`]: any;
|
|
313
|
+
[key: `x-${number}`]: any;
|
|
314
|
+
version?: string | undefined;
|
|
315
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
316
|
+
title?: any;
|
|
317
|
+
description?: any;
|
|
318
|
+
default?: any;
|
|
319
|
+
readOnly?: boolean | undefined;
|
|
320
|
+
writeOnly?: boolean | undefined;
|
|
321
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
322
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
323
|
+
const?: any;
|
|
324
|
+
multipleOf?: number | undefined;
|
|
325
|
+
maximum?: number | undefined;
|
|
326
|
+
exclusiveMaximum?: number | undefined;
|
|
327
|
+
minimum?: number | undefined;
|
|
328
|
+
exclusiveMinimum?: number | undefined;
|
|
329
|
+
maxLength?: number | undefined;
|
|
330
|
+
minLength?: number | undefined;
|
|
331
|
+
pattern?: string | RegExp | undefined;
|
|
332
|
+
maxItems?: number | undefined;
|
|
333
|
+
minItems?: number | undefined;
|
|
334
|
+
uniqueItems?: boolean | undefined;
|
|
335
|
+
maxProperties?: number | undefined;
|
|
336
|
+
minProperties?: number | undefined;
|
|
337
|
+
required?: string | boolean | string[] | undefined;
|
|
338
|
+
format?: string | undefined;
|
|
339
|
+
$ref?: string | undefined;
|
|
340
|
+
$namespace?: string | undefined;
|
|
341
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
342
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
343
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
344
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
345
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
346
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
347
|
+
"x-value"?: any;
|
|
348
|
+
"x-index"?: number | undefined;
|
|
349
|
+
"x-pattern"?: any;
|
|
350
|
+
"x-display"?: any;
|
|
351
|
+
"x-validator"?: any;
|
|
352
|
+
"x-decorator"?: any;
|
|
353
|
+
"x-decorator-props"?: any;
|
|
354
|
+
"x-component"?: any;
|
|
355
|
+
"x-component-props"?: any;
|
|
356
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
357
|
+
"x-content"?: any;
|
|
358
|
+
"x-data"?: any;
|
|
359
|
+
"x-visible"?: boolean | undefined;
|
|
360
|
+
"x-hidden"?: boolean | undefined;
|
|
361
|
+
"x-disabled"?: boolean | undefined;
|
|
362
|
+
"x-editable"?: boolean | undefined;
|
|
363
|
+
"x-read-only"?: boolean | undefined;
|
|
364
|
+
"x-read-pretty"?: boolean | undefined;
|
|
365
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
366
|
+
}>>;
|
|
367
|
+
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
368
|
+
generateAnchorList: (schema: import("@formily/json-schema").Stringify<{
|
|
369
|
+
[key: symbol]: any;
|
|
370
|
+
[key: `x-${string}`]: any;
|
|
371
|
+
[key: `x-${number}`]: any;
|
|
372
|
+
version?: string | undefined;
|
|
373
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
374
|
+
title?: any;
|
|
375
|
+
description?: any;
|
|
376
|
+
default?: any;
|
|
377
|
+
readOnly?: boolean | undefined;
|
|
378
|
+
writeOnly?: boolean | undefined;
|
|
379
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
380
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
381
|
+
const?: any;
|
|
382
|
+
multipleOf?: number | undefined;
|
|
383
|
+
maximum?: number | undefined;
|
|
384
|
+
exclusiveMaximum?: number | undefined;
|
|
385
|
+
minimum?: number | undefined;
|
|
386
|
+
exclusiveMinimum?: number | undefined;
|
|
387
|
+
maxLength?: number | undefined;
|
|
388
|
+
minLength?: number | undefined;
|
|
389
|
+
pattern?: string | RegExp | undefined;
|
|
390
|
+
maxItems?: number | undefined;
|
|
391
|
+
minItems?: number | undefined;
|
|
392
|
+
uniqueItems?: boolean | undefined;
|
|
393
|
+
maxProperties?: number | undefined;
|
|
394
|
+
minProperties?: number | undefined;
|
|
395
|
+
required?: string | boolean | string[] | undefined;
|
|
396
|
+
format?: string | undefined;
|
|
397
|
+
$ref?: string | undefined;
|
|
398
|
+
$namespace?: string | undefined;
|
|
399
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
400
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
401
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
402
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
403
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
404
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
405
|
+
"x-value"?: any;
|
|
406
|
+
"x-index"?: number | undefined;
|
|
407
|
+
"x-pattern"?: any;
|
|
408
|
+
"x-display"?: any;
|
|
409
|
+
"x-validator"?: any;
|
|
410
|
+
"x-decorator"?: any;
|
|
411
|
+
"x-decorator-props"?: any;
|
|
412
|
+
"x-component"?: any;
|
|
413
|
+
"x-component-props"?: any;
|
|
414
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
415
|
+
"x-content"?: any;
|
|
416
|
+
"x-data"?: any;
|
|
417
|
+
"x-visible"?: boolean | undefined;
|
|
418
|
+
"x-hidden"?: boolean | undefined;
|
|
419
|
+
"x-disabled"?: boolean | undefined;
|
|
420
|
+
"x-editable"?: boolean | undefined;
|
|
421
|
+
"x-read-only"?: boolean | undefined;
|
|
422
|
+
"x-read-pretty"?: boolean | undefined;
|
|
423
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
424
|
+
}>) => void;
|
|
425
|
+
anchorIdList: import("vue").Ref<{
|
|
426
|
+
name: string;
|
|
427
|
+
title: string;
|
|
428
|
+
}[]>;
|
|
429
|
+
formHeight: import("vue").ComputedRef<string | undefined>;
|
|
430
|
+
onScroll: () => void;
|
|
431
|
+
queryWidget: (key: string, wrapperElement: HTMLElement, fieldList: import("../../../../es/components/form-render").FieldItem[]) => Promise<{
|
|
432
|
+
widgetElement: HTMLInputElement | null | undefined;
|
|
433
|
+
widgetElementList: HTMLInputElement[];
|
|
434
|
+
decoratorElement: HTMLElement | null | undefined;
|
|
435
|
+
}>;
|
|
436
|
+
FormConsumer: import("vue").DefineComponent<{}, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
437
|
+
FormProvider: import("vue").DefineComponent<Record<"form", any>, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Record<"form", any>>>, {
|
|
438
|
+
form: any;
|
|
439
|
+
}>;
|
|
440
|
+
NForm: any;
|
|
441
|
+
NTabPane: import("vue").DefineComponent<{
|
|
442
|
+
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
443
|
+
[key: string]: any;
|
|
444
|
+
}> | (() => import("vue").VNodeChild)>;
|
|
445
|
+
readonly name: {
|
|
446
|
+
readonly type: import("vue").PropType<string | number>;
|
|
447
|
+
readonly required: true;
|
|
448
|
+
};
|
|
449
|
+
readonly disabled: BooleanConstructor;
|
|
450
|
+
readonly displayDirective: {
|
|
451
|
+
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
452
|
+
readonly default: "if";
|
|
453
|
+
};
|
|
454
|
+
readonly closable: {
|
|
455
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
456
|
+
readonly default: undefined;
|
|
457
|
+
};
|
|
458
|
+
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
459
|
+
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
460
|
+
[key: string]: any;
|
|
461
|
+
}> | (() => import("vue").VNodeChild)>;
|
|
462
|
+
}, {
|
|
463
|
+
style: import("vue").Ref<string | import("vue").CSSProperties | undefined>;
|
|
464
|
+
class: import("vue").Ref<string | undefined>;
|
|
465
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
466
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
467
|
+
readonly tab: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
468
|
+
[key: string]: any;
|
|
469
|
+
}> | (() => import("vue").VNodeChild)>;
|
|
470
|
+
readonly name: {
|
|
471
|
+
readonly type: import("vue").PropType<string | number>;
|
|
472
|
+
readonly required: true;
|
|
473
|
+
};
|
|
474
|
+
readonly disabled: BooleanConstructor;
|
|
475
|
+
readonly displayDirective: {
|
|
476
|
+
readonly type: import("vue").PropType<"if" | "show" | "show:lazy">;
|
|
477
|
+
readonly default: "if";
|
|
478
|
+
};
|
|
479
|
+
readonly closable: {
|
|
480
|
+
readonly type: import("vue").PropType<boolean | undefined>;
|
|
481
|
+
readonly default: undefined;
|
|
482
|
+
};
|
|
483
|
+
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
484
|
+
readonly label: import("vue").PropType<string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
485
|
+
[key: string]: any;
|
|
486
|
+
}> | (() => import("vue").VNodeChild)>;
|
|
487
|
+
}>>, {
|
|
488
|
+
readonly disabled: boolean;
|
|
489
|
+
readonly closable: boolean | undefined;
|
|
490
|
+
readonly displayDirective: "if" | "show" | "show:lazy";
|
|
491
|
+
}>;
|
|
492
|
+
NTabs: any;
|
|
493
|
+
NConfigProvider: any;
|
|
494
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "formChange"[], "formChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
495
|
+
fieldList: {
|
|
496
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FieldItem[]>;
|
|
497
|
+
};
|
|
498
|
+
initialData: {
|
|
499
|
+
type: import("vue").PropType<AnyObject>;
|
|
500
|
+
default: () => {};
|
|
501
|
+
};
|
|
502
|
+
fieldVisitor: {
|
|
503
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FieldVisitor>;
|
|
504
|
+
};
|
|
505
|
+
column: {
|
|
506
|
+
type: NumberConstructor;
|
|
507
|
+
default: number;
|
|
508
|
+
};
|
|
509
|
+
maxHeight: {
|
|
510
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
511
|
+
default: string;
|
|
512
|
+
};
|
|
513
|
+
anchor: {
|
|
514
|
+
type: BooleanConstructor;
|
|
515
|
+
default: boolean;
|
|
516
|
+
};
|
|
517
|
+
parallelism: {
|
|
518
|
+
type: NumberConstructor;
|
|
519
|
+
default: number;
|
|
520
|
+
};
|
|
521
|
+
businessFormatter: {
|
|
522
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").FormBusinessFormatter>;
|
|
523
|
+
};
|
|
524
|
+
schema: {
|
|
525
|
+
type: import("vue").PropType<import("@formily/json-schema").Stringify<{
|
|
526
|
+
[key: symbol]: any;
|
|
527
|
+
[key: `x-${string}`]: any;
|
|
528
|
+
[key: `x-${number}`]: any;
|
|
529
|
+
version?: string | undefined;
|
|
530
|
+
name?: import("@formily/json-schema").SchemaKey | undefined;
|
|
531
|
+
title?: any;
|
|
532
|
+
description?: any;
|
|
533
|
+
default?: any;
|
|
534
|
+
readOnly?: boolean | undefined;
|
|
535
|
+
writeOnly?: boolean | undefined;
|
|
536
|
+
type?: import("@formily/json-schema").SchemaTypes | undefined;
|
|
537
|
+
enum?: import("@formily/json-schema").SchemaEnum<any> | undefined;
|
|
538
|
+
const?: any;
|
|
539
|
+
multipleOf?: number | undefined;
|
|
540
|
+
maximum?: number | undefined;
|
|
541
|
+
exclusiveMaximum?: number | undefined;
|
|
542
|
+
minimum?: number | undefined;
|
|
543
|
+
exclusiveMinimum?: number | undefined;
|
|
544
|
+
maxLength?: number | undefined;
|
|
545
|
+
minLength?: number | undefined;
|
|
546
|
+
pattern?: string | RegExp | undefined;
|
|
547
|
+
maxItems?: number | undefined;
|
|
548
|
+
minItems?: number | undefined;
|
|
549
|
+
uniqueItems?: boolean | undefined;
|
|
550
|
+
maxProperties?: number | undefined;
|
|
551
|
+
minProperties?: number | undefined;
|
|
552
|
+
required?: string | boolean | string[] | undefined;
|
|
553
|
+
format?: string | undefined;
|
|
554
|
+
$ref?: string | undefined;
|
|
555
|
+
$namespace?: string | undefined;
|
|
556
|
+
definitions?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
557
|
+
properties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
558
|
+
items?: import("@formily/json-schema").SchemaItems<any, any, any, any, any, any, any, any> | undefined;
|
|
559
|
+
additionalItems?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
560
|
+
patternProperties?: import("@formily/json-schema").SchemaProperties<any, any, any, any, any, any, any, any> | undefined;
|
|
561
|
+
additionalProperties?: import("@formily/json-schema").Stringify<any> | undefined;
|
|
562
|
+
"x-value"?: any;
|
|
563
|
+
"x-index"?: number | undefined;
|
|
564
|
+
"x-pattern"?: any;
|
|
565
|
+
"x-display"?: any;
|
|
566
|
+
"x-validator"?: any;
|
|
567
|
+
"x-decorator"?: any;
|
|
568
|
+
"x-decorator-props"?: any;
|
|
569
|
+
"x-component"?: any;
|
|
570
|
+
"x-component-props"?: any;
|
|
571
|
+
"x-reactions"?: import("@formily/json-schema").SchemaReactions<any> | undefined;
|
|
572
|
+
"x-content"?: any;
|
|
573
|
+
"x-data"?: any;
|
|
574
|
+
"x-visible"?: boolean | undefined;
|
|
575
|
+
"x-hidden"?: boolean | undefined;
|
|
576
|
+
"x-disabled"?: boolean | undefined;
|
|
577
|
+
"x-editable"?: boolean | undefined;
|
|
578
|
+
"x-read-only"?: boolean | undefined;
|
|
579
|
+
"x-read-pretty"?: boolean | undefined;
|
|
580
|
+
"x-compile-omitted"?: string[] | undefined;
|
|
581
|
+
}>>;
|
|
582
|
+
};
|
|
583
|
+
components: {
|
|
584
|
+
type: import("vue").PropType<Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>>;
|
|
585
|
+
default: () => {};
|
|
586
|
+
};
|
|
587
|
+
scope: {
|
|
588
|
+
type: import("vue").PropType<AnyObject>;
|
|
589
|
+
default: () => {};
|
|
590
|
+
};
|
|
591
|
+
annotation: {
|
|
592
|
+
type: import("vue").PropType<AnyObject>;
|
|
593
|
+
};
|
|
594
|
+
consumer: {
|
|
595
|
+
type: BooleanConstructor;
|
|
596
|
+
default: boolean;
|
|
597
|
+
};
|
|
598
|
+
uuid: {
|
|
599
|
+
type: StringConstructor;
|
|
600
|
+
};
|
|
601
|
+
lifeCycle: {
|
|
602
|
+
type: import("vue").PropType<Partial<{
|
|
603
|
+
onSetup(): void;
|
|
604
|
+
beforeRequest(fieldKey: string, params?: AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<AnyObject>;
|
|
605
|
+
afterRequest(fieldKey: string, payload?: any): AnyObject[];
|
|
606
|
+
}>>;
|
|
607
|
+
};
|
|
608
|
+
}>> & {
|
|
609
|
+
onFormChange?: ((...args: any[]) => any) | undefined;
|
|
610
|
+
}, {
|
|
611
|
+
anchor: boolean;
|
|
612
|
+
maxHeight: string | number;
|
|
613
|
+
column: number;
|
|
614
|
+
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
615
|
+
initialData: AnyObject;
|
|
616
|
+
parallelism: number;
|
|
617
|
+
scope: AnyObject;
|
|
618
|
+
consumer: boolean;
|
|
619
|
+
}>;
|
|
620
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
621
|
+
export default _default;
|
|
@@ -8,7 +8,7 @@ import { formRenderLog, mergeDeepProperties } from '../../../utils/index.js';
|
|
|
8
8
|
import { connect, mapProps } from '@formily/vue';
|
|
9
9
|
import { useDebounceFn, isObject } from '@vueuse/core';
|
|
10
10
|
import { NButton, NIcon } from 'naive-ui';
|
|
11
|
-
import
|
|
11
|
+
import FormRender from '../../../FormRender.js';
|
|
12
12
|
import { assignUpdateValue } from '../../../utils/schema.js';
|
|
13
13
|
|
|
14
14
|
const script = defineComponent({
|
|
@@ -129,7 +129,7 @@ const script = defineComponent({
|
|
|
129
129
|
Path.setIn(combinationData.value[idx], fieldKey, value);
|
|
130
130
|
emitChange();
|
|
131
131
|
}
|
|
132
|
-
const FormRenderComponent =
|
|
132
|
+
const FormRenderComponent = FormRender;
|
|
133
133
|
return () => {
|
|
134
134
|
return createVNode("section", {
|
|
135
135
|
"class": "form-render__combination"
|
|
@@ -43,10 +43,10 @@ buttonScript.props = {
|
|
|
43
43
|
content: {}
|
|
44
44
|
};
|
|
45
45
|
const BUTTON = connect(buttonScript, mapProps((props) => {
|
|
46
|
-
var _a;
|
|
46
|
+
var _a, _b, _c;
|
|
47
47
|
return {
|
|
48
48
|
...props,
|
|
49
|
-
content: (_a = props.fieldItem) == null ? void 0 : _a.content
|
|
49
|
+
content: (_c = (_a = props.fieldItem) == null ? void 0 : _a.content) != null ? _c : (_b = props.fieldItem) == null ? void 0 : _b.alias
|
|
50
50
|
};
|
|
51
51
|
}));
|
|
52
52
|
const LINE_BREAKS = () => createVNode("section", {
|
|
@@ -8,11 +8,11 @@ import components from '../components/renderer/index.js';
|
|
|
8
8
|
import { useFormRenderLifeCycle } from './useFormRenderLifeCycle.js';
|
|
9
9
|
import { usePresetScope } from './usePresetScope.js';
|
|
10
10
|
import { injectOrProvide, presetRequestHandler } from '../utils/index.js';
|
|
11
|
-
import { InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectionFormUUID, InjectionAnnotation
|
|
11
|
+
import { InjectAsyncQueue, InjectionSchemaField, InjectionBusinessCollector, InjectionChangeContextCollector, InjectionFormItemDepsCollector, InjectionFormUUID, InjectionAnnotation } from '../constants/index.js';
|
|
12
|
+
import { useAsyncQueue } from './useAsyncQueue.js';
|
|
12
13
|
import { useBusinessBinding } from './useBusinessBinding.js';
|
|
13
14
|
import { useChangeContext } from './useChangeContext.js';
|
|
14
15
|
import { useFormItemDeps } from './useFormItemDeps.js';
|
|
15
|
-
import { useAsyncQueue } from './useAsyncQueue.js';
|
|
16
16
|
|
|
17
17
|
function useFormContext(props, formModel) {
|
|
18
18
|
const { callLifeCycle } = useFormRenderLifeCycle(props);
|