@king-one/form-design 0.0.28 → 0.0.29
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/CHANGELOG.md +6 -0
- package/dist/es/index.mjs +10 -8
- package/dist/es/src/components/form-material.vue.mjs +44 -49
- package/dist/es/src/components/panel/widget/grid.vue2.mjs +1 -1
- package/dist/es/src/components/props/widget/GridProps.vue2.mjs +15 -20
- package/dist/es/src/config/index.mjs +197 -149
- package/dist/es/src/core/FormSchema.mjs +14 -61
- package/dist/es/src/index.mjs +15 -14
- package/dist/es/src/plugins/modules/drag-add.mjs +1 -1
- package/dist/es/src/utils/index.mjs +15 -13
- package/dist/es/src/utils/schema.mjs +29 -0
- package/dist/lib/index.js +1 -1
- package/dist/lib/src/components/form-material.vue.js +1 -1
- package/dist/lib/src/components/panel/widget/grid.vue2.js +1 -1
- package/dist/lib/src/components/props/widget/GridProps.vue2.js +1 -1
- package/dist/lib/src/config/index.js +1 -15
- package/dist/lib/src/core/FormSchema.js +1 -1
- package/dist/lib/src/index.js +1 -1
- package/dist/lib/src/plugins/modules/drag-add.js +1 -1
- package/dist/lib/src/utils/index.js +1 -1
- package/dist/lib/src/utils/schema.js +1 -0
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/types/src/core/Design.d.ts +522 -187
- package/dist/types/src/core/FormSchema.d.ts +235 -64
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/types.d.ts +34 -30
- package/dist/types/src/utils/index.d.ts +1 -0
- package/dist/types/src/utils/schema.d.ts +2 -0
- package/package.json +1 -1
|
@@ -12,250 +12,406 @@ export declare class FormDesign {
|
|
|
12
12
|
checkedField: Ref<{
|
|
13
13
|
title?: string | undefined;
|
|
14
14
|
key?: string | undefined;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
enum?: any[] | undefined;
|
|
18
|
-
format?: string | undefined;
|
|
19
|
-
items?: {
|
|
20
|
-
type: valueType;
|
|
21
|
-
format?: string | undefined;
|
|
15
|
+
id?: string | undefined;
|
|
16
|
+
children?: {
|
|
22
17
|
title?: string | undefined;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
28
|
-
items?: any | any[] | undefined;
|
|
29
|
-
'x-validator'?: any[] | undefined;
|
|
30
|
-
'x-reactions'?: {
|
|
31
|
-
dependencies?: Record<string, any>[] | undefined;
|
|
32
|
-
fulfill?: {
|
|
33
|
-
state?: Record<string, any> | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
} | {
|
|
18
|
+
key?: string | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
children?: any[] | undefined;
|
|
21
|
+
icon?: (string | VNode) | undefined;
|
|
37
22
|
type: valueType;
|
|
38
23
|
format?: string | undefined;
|
|
39
|
-
title?: string | undefined;
|
|
40
24
|
name?: string | undefined;
|
|
41
|
-
'x-component'?: string | undefined;
|
|
42
|
-
'x-component-props'?: Record<string, any> | undefined;
|
|
43
|
-
'x-decorator'?: string | undefined;
|
|
44
|
-
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
45
|
-
items?: any | any[] | undefined;
|
|
46
|
-
'x-validator'?: any[] | undefined;
|
|
47
|
-
'x-reactions'?: {
|
|
48
|
-
dependencies?: Record<string, any>[] | undefined;
|
|
49
|
-
fulfill?: {
|
|
50
|
-
state?: Record<string, any> | undefined;
|
|
51
|
-
} | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
}[] | undefined;
|
|
54
|
-
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
55
|
-
children?: {
|
|
56
|
-
title: string;
|
|
57
|
-
key: string;
|
|
58
|
-
type: valueType;
|
|
59
|
-
'x-component'?: string | undefined;
|
|
60
25
|
enum?: any[] | undefined;
|
|
61
|
-
|
|
26
|
+
required?: boolean | undefined;
|
|
27
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
62
28
|
items?: {
|
|
63
29
|
type: valueType;
|
|
64
30
|
format?: string | undefined;
|
|
65
|
-
title?: string | undefined;
|
|
66
31
|
name?: string | undefined;
|
|
32
|
+
enum?: any[] | undefined;
|
|
33
|
+
required?: boolean | undefined;
|
|
34
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
35
|
+
items?: any | any[] | undefined;
|
|
67
36
|
'x-component'?: string | undefined;
|
|
68
37
|
'x-component-props'?: Record<string, any> | undefined;
|
|
69
38
|
'x-decorator'?: string | undefined;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
39
|
+
'x-decorator-props'?: {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
} | undefined;
|
|
73
42
|
'x-reactions'?: {
|
|
74
|
-
dependencies?:
|
|
43
|
+
dependencies?: {
|
|
44
|
+
property: string;
|
|
45
|
+
type?: string | undefined;
|
|
46
|
+
source: string;
|
|
47
|
+
name: string;
|
|
48
|
+
}[] | undefined;
|
|
75
49
|
fulfill?: {
|
|
76
50
|
state?: Record<string, any> | undefined;
|
|
77
51
|
} | undefined;
|
|
78
52
|
} | undefined;
|
|
53
|
+
'x-design-props'?: {
|
|
54
|
+
[x: string]: any;
|
|
55
|
+
validate?: {
|
|
56
|
+
status: "success" | "error" | "warning" | "";
|
|
57
|
+
message: string;
|
|
58
|
+
} | undefined;
|
|
59
|
+
} | undefined;
|
|
79
60
|
} | {
|
|
80
61
|
type: valueType;
|
|
81
62
|
format?: string | undefined;
|
|
82
|
-
title?: string | undefined;
|
|
83
63
|
name?: string | undefined;
|
|
64
|
+
enum?: any[] | undefined;
|
|
65
|
+
required?: boolean | undefined;
|
|
66
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
67
|
+
items?: any | any[] | undefined;
|
|
84
68
|
'x-component'?: string | undefined;
|
|
85
69
|
'x-component-props'?: Record<string, any> | undefined;
|
|
86
70
|
'x-decorator'?: string | undefined;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
'x-decorator-props'?: {
|
|
72
|
+
[x: string]: any;
|
|
73
|
+
} | undefined;
|
|
90
74
|
'x-reactions'?: {
|
|
91
|
-
dependencies?:
|
|
75
|
+
dependencies?: {
|
|
76
|
+
property: string;
|
|
77
|
+
type?: string | undefined;
|
|
78
|
+
source: string;
|
|
79
|
+
name: string;
|
|
80
|
+
}[] | undefined;
|
|
92
81
|
fulfill?: {
|
|
93
82
|
state?: Record<string, any> | undefined;
|
|
94
83
|
} | undefined;
|
|
95
84
|
} | undefined;
|
|
85
|
+
'x-design-props'?: {
|
|
86
|
+
[x: string]: any;
|
|
87
|
+
validate?: {
|
|
88
|
+
status: "success" | "error" | "warning" | "";
|
|
89
|
+
message: string;
|
|
90
|
+
} | undefined;
|
|
91
|
+
} | undefined;
|
|
96
92
|
}[] | undefined;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
93
|
+
'x-component'?: string | undefined;
|
|
94
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
95
|
+
'x-decorator'?: string | undefined;
|
|
96
|
+
'x-decorator-props'?: {
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
} | undefined;
|
|
99
|
+
'x-reactions'?: {
|
|
100
|
+
dependencies?: {
|
|
101
|
+
property: string;
|
|
102
|
+
type?: string | undefined;
|
|
103
|
+
source: string;
|
|
104
|
+
name: string;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
fulfill?: {
|
|
107
|
+
state?: Record<string, any> | undefined;
|
|
108
|
+
} | undefined;
|
|
109
|
+
} | undefined;
|
|
103
110
|
'x-design-props'?: {
|
|
104
111
|
[x: string]: any;
|
|
105
112
|
validate?: {
|
|
106
113
|
status: "success" | "error" | "warning" | "";
|
|
107
114
|
message: string;
|
|
108
115
|
} | undefined;
|
|
109
|
-
'convert-key'?: ("items" | "properties") | undefined;
|
|
110
|
-
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
111
|
-
} | undefined;
|
|
112
|
-
'x-component-props'?: Record<string, any> | undefined;
|
|
113
|
-
'x-decorator'?: string | undefined;
|
|
114
|
-
'x-decorator-props'?: {
|
|
115
|
-
[x: string]: any;
|
|
116
116
|
} | undefined;
|
|
117
117
|
}[] | undefined;
|
|
118
|
-
required?: boolean | undefined;
|
|
119
|
-
id?: string | undefined;
|
|
120
|
-
name?: string | undefined;
|
|
121
118
|
icon?: (string | VNode) | undefined;
|
|
122
|
-
|
|
123
|
-
[x: string]: any;
|
|
124
|
-
validate?: {
|
|
125
|
-
status: "success" | "error" | "warning" | "";
|
|
126
|
-
message: string;
|
|
127
|
-
} | undefined;
|
|
128
|
-
'convert-key'?: ("items" | "properties") | undefined;
|
|
129
|
-
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
130
|
-
} | undefined;
|
|
131
|
-
'x-component-props'?: Record<string, any> | undefined;
|
|
132
|
-
'x-decorator'?: string | undefined;
|
|
133
|
-
'x-decorator-props'?: {
|
|
134
|
-
[x: string]: any;
|
|
135
|
-
} | undefined;
|
|
136
|
-
}, Partial<FieldSchema> | {
|
|
137
|
-
title?: string | undefined;
|
|
138
|
-
key?: string | undefined;
|
|
139
|
-
type?: string | undefined;
|
|
140
|
-
'x-component'?: string | undefined;
|
|
141
|
-
enum?: any[] | undefined;
|
|
119
|
+
type?: "string" | "number" | "boolean" | "object" | "array" | "void" | undefined;
|
|
142
120
|
format?: string | undefined;
|
|
121
|
+
name?: string | undefined;
|
|
122
|
+
enum?: any[] | undefined;
|
|
123
|
+
required?: boolean | undefined;
|
|
124
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
143
125
|
items?: {
|
|
144
126
|
type: valueType;
|
|
145
127
|
format?: string | undefined;
|
|
146
|
-
title?: string | undefined;
|
|
147
128
|
name?: string | undefined;
|
|
129
|
+
enum?: any[] | undefined;
|
|
130
|
+
required?: boolean | undefined;
|
|
131
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
132
|
+
items?: any | any[] | undefined;
|
|
148
133
|
'x-component'?: string | undefined;
|
|
149
134
|
'x-component-props'?: Record<string, any> | undefined;
|
|
150
135
|
'x-decorator'?: string | undefined;
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
136
|
+
'x-decorator-props'?: {
|
|
137
|
+
[x: string]: any;
|
|
138
|
+
} | undefined;
|
|
154
139
|
'x-reactions'?: {
|
|
155
|
-
dependencies?:
|
|
140
|
+
dependencies?: {
|
|
141
|
+
property: string;
|
|
142
|
+
type?: string | undefined;
|
|
143
|
+
source: string;
|
|
144
|
+
name: string;
|
|
145
|
+
}[] | undefined;
|
|
156
146
|
fulfill?: {
|
|
157
147
|
state?: Record<string, any> | undefined;
|
|
158
148
|
} | undefined;
|
|
159
149
|
} | undefined;
|
|
150
|
+
'x-design-props'?: {
|
|
151
|
+
[x: string]: any;
|
|
152
|
+
validate?: {
|
|
153
|
+
status: "success" | "error" | "warning" | "";
|
|
154
|
+
message: string;
|
|
155
|
+
} | undefined;
|
|
156
|
+
} | undefined;
|
|
160
157
|
} | {
|
|
161
158
|
type: valueType;
|
|
162
159
|
format?: string | undefined;
|
|
163
|
-
title?: string | undefined;
|
|
164
160
|
name?: string | undefined;
|
|
161
|
+
enum?: any[] | undefined;
|
|
162
|
+
required?: boolean | undefined;
|
|
163
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
164
|
+
items?: any | any[] | undefined;
|
|
165
165
|
'x-component'?: string | undefined;
|
|
166
166
|
'x-component-props'?: Record<string, any> | undefined;
|
|
167
167
|
'x-decorator'?: string | undefined;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
'x-decorator-props'?: {
|
|
169
|
+
[x: string]: any;
|
|
170
|
+
} | undefined;
|
|
171
171
|
'x-reactions'?: {
|
|
172
|
-
dependencies?:
|
|
172
|
+
dependencies?: {
|
|
173
|
+
property: string;
|
|
174
|
+
type?: string | undefined;
|
|
175
|
+
source: string;
|
|
176
|
+
name: string;
|
|
177
|
+
}[] | undefined;
|
|
173
178
|
fulfill?: {
|
|
174
179
|
state?: Record<string, any> | undefined;
|
|
175
180
|
} | undefined;
|
|
176
181
|
} | undefined;
|
|
182
|
+
'x-design-props'?: {
|
|
183
|
+
[x: string]: any;
|
|
184
|
+
validate?: {
|
|
185
|
+
status: "success" | "error" | "warning" | "";
|
|
186
|
+
message: string;
|
|
187
|
+
} | undefined;
|
|
188
|
+
} | undefined;
|
|
177
189
|
}[] | undefined;
|
|
178
|
-
|
|
190
|
+
'x-component'?: string | undefined;
|
|
191
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
192
|
+
'x-decorator'?: string | undefined;
|
|
193
|
+
'x-decorator-props'?: {
|
|
194
|
+
[x: string]: any;
|
|
195
|
+
} | undefined;
|
|
196
|
+
'x-reactions'?: {
|
|
197
|
+
dependencies?: {
|
|
198
|
+
property: string;
|
|
199
|
+
type?: string | undefined;
|
|
200
|
+
source: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}[] | undefined;
|
|
203
|
+
fulfill?: {
|
|
204
|
+
state?: Record<string, any> | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
'x-design-props'?: {
|
|
208
|
+
[x: string]: any;
|
|
209
|
+
validate?: {
|
|
210
|
+
status: "success" | "error" | "warning" | "";
|
|
211
|
+
message: string;
|
|
212
|
+
} | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
}, Partial<FieldSchema> | {
|
|
215
|
+
title?: string | undefined;
|
|
216
|
+
key?: string | undefined;
|
|
217
|
+
id?: string | undefined;
|
|
179
218
|
children?: {
|
|
180
|
-
title
|
|
181
|
-
key
|
|
219
|
+
title?: string | undefined;
|
|
220
|
+
key?: string | undefined;
|
|
221
|
+
id?: string | undefined;
|
|
222
|
+
children?: any[] | undefined;
|
|
223
|
+
icon?: (string | VNode) | undefined;
|
|
182
224
|
type: valueType;
|
|
183
|
-
'x-component'?: string | undefined;
|
|
184
|
-
enum?: any[] | undefined;
|
|
185
225
|
format?: string | undefined;
|
|
226
|
+
name?: string | undefined;
|
|
227
|
+
enum?: any[] | undefined;
|
|
228
|
+
required?: boolean | undefined;
|
|
229
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
186
230
|
items?: {
|
|
187
231
|
type: valueType;
|
|
188
232
|
format?: string | undefined;
|
|
189
|
-
title?: string | undefined;
|
|
190
233
|
name?: string | undefined;
|
|
234
|
+
enum?: any[] | undefined;
|
|
235
|
+
required?: boolean | undefined;
|
|
236
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
237
|
+
items?: any | any[] | undefined;
|
|
191
238
|
'x-component'?: string | undefined;
|
|
192
239
|
'x-component-props'?: Record<string, any> | undefined;
|
|
193
240
|
'x-decorator'?: string | undefined;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
241
|
+
'x-decorator-props'?: {
|
|
242
|
+
[x: string]: any;
|
|
243
|
+
} | undefined;
|
|
197
244
|
'x-reactions'?: {
|
|
198
|
-
dependencies?:
|
|
245
|
+
dependencies?: {
|
|
246
|
+
property: string;
|
|
247
|
+
type?: string | undefined;
|
|
248
|
+
source: string;
|
|
249
|
+
name: string;
|
|
250
|
+
}[] | undefined;
|
|
199
251
|
fulfill?: {
|
|
200
252
|
state?: Record<string, any> | undefined;
|
|
201
253
|
} | undefined;
|
|
202
254
|
} | undefined;
|
|
255
|
+
'x-design-props'?: {
|
|
256
|
+
[x: string]: any;
|
|
257
|
+
validate?: {
|
|
258
|
+
status: "success" | "error" | "warning" | "";
|
|
259
|
+
message: string;
|
|
260
|
+
} | undefined;
|
|
261
|
+
} | undefined;
|
|
203
262
|
} | {
|
|
204
263
|
type: valueType;
|
|
205
264
|
format?: string | undefined;
|
|
206
|
-
title?: string | undefined;
|
|
207
265
|
name?: string | undefined;
|
|
266
|
+
enum?: any[] | undefined;
|
|
267
|
+
required?: boolean | undefined;
|
|
268
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
269
|
+
items?: any | any[] | undefined;
|
|
208
270
|
'x-component'?: string | undefined;
|
|
209
271
|
'x-component-props'?: Record<string, any> | undefined;
|
|
210
272
|
'x-decorator'?: string | undefined;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
273
|
+
'x-decorator-props'?: {
|
|
274
|
+
[x: string]: any;
|
|
275
|
+
} | undefined;
|
|
214
276
|
'x-reactions'?: {
|
|
215
|
-
dependencies?:
|
|
277
|
+
dependencies?: {
|
|
278
|
+
property: string;
|
|
279
|
+
type?: string | undefined;
|
|
280
|
+
source: string;
|
|
281
|
+
name: string;
|
|
282
|
+
}[] | undefined;
|
|
216
283
|
fulfill?: {
|
|
217
284
|
state?: Record<string, any> | undefined;
|
|
218
285
|
} | undefined;
|
|
219
286
|
} | undefined;
|
|
287
|
+
'x-design-props'?: {
|
|
288
|
+
[x: string]: any;
|
|
289
|
+
validate?: {
|
|
290
|
+
status: "success" | "error" | "warning" | "";
|
|
291
|
+
message: string;
|
|
292
|
+
} | undefined;
|
|
293
|
+
} | undefined;
|
|
220
294
|
}[] | undefined;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
295
|
+
'x-component'?: string | undefined;
|
|
296
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
297
|
+
'x-decorator'?: string | undefined;
|
|
298
|
+
'x-decorator-props'?: {
|
|
299
|
+
[x: string]: any;
|
|
300
|
+
} | undefined;
|
|
301
|
+
'x-reactions'?: {
|
|
302
|
+
dependencies?: {
|
|
303
|
+
property: string;
|
|
304
|
+
type?: string | undefined;
|
|
305
|
+
source: string;
|
|
306
|
+
name: string;
|
|
307
|
+
}[] | undefined;
|
|
308
|
+
fulfill?: {
|
|
309
|
+
state?: Record<string, any> | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
'x-design-props'?: {
|
|
313
|
+
[x: string]: any;
|
|
314
|
+
validate?: {
|
|
315
|
+
status: "success" | "error" | "warning" | "";
|
|
316
|
+
message: string;
|
|
317
|
+
} | undefined;
|
|
318
|
+
} | undefined;
|
|
319
|
+
}[] | undefined;
|
|
320
|
+
icon?: (string | VNode) | undefined;
|
|
321
|
+
type?: "string" | "number" | "boolean" | "object" | "array" | "void" | undefined;
|
|
322
|
+
format?: string | undefined;
|
|
323
|
+
name?: string | undefined;
|
|
324
|
+
enum?: any[] | undefined;
|
|
325
|
+
required?: boolean | undefined;
|
|
326
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
327
|
+
items?: {
|
|
328
|
+
type: valueType;
|
|
329
|
+
format?: string | undefined;
|
|
225
330
|
name?: string | undefined;
|
|
226
|
-
|
|
331
|
+
enum?: any[] | undefined;
|
|
332
|
+
required?: boolean | undefined;
|
|
333
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
334
|
+
items?: any | any[] | undefined;
|
|
335
|
+
'x-component'?: string | undefined;
|
|
336
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
337
|
+
'x-decorator'?: string | undefined;
|
|
338
|
+
'x-decorator-props'?: {
|
|
339
|
+
[x: string]: any;
|
|
340
|
+
} | undefined;
|
|
341
|
+
'x-reactions'?: {
|
|
342
|
+
dependencies?: {
|
|
343
|
+
property: string;
|
|
344
|
+
type?: string | undefined;
|
|
345
|
+
source: string;
|
|
346
|
+
name: string;
|
|
347
|
+
}[] | undefined;
|
|
348
|
+
fulfill?: {
|
|
349
|
+
state?: Record<string, any> | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
} | undefined;
|
|
227
352
|
'x-design-props'?: {
|
|
228
353
|
[x: string]: any;
|
|
229
354
|
validate?: {
|
|
230
355
|
status: "success" | "error" | "warning" | "";
|
|
231
356
|
message: string;
|
|
232
357
|
} | undefined;
|
|
233
|
-
'convert-key'?: ("items" | "properties") | undefined;
|
|
234
|
-
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
235
358
|
} | undefined;
|
|
359
|
+
} | {
|
|
360
|
+
type: valueType;
|
|
361
|
+
format?: string | undefined;
|
|
362
|
+
name?: string | undefined;
|
|
363
|
+
enum?: any[] | undefined;
|
|
364
|
+
required?: boolean | undefined;
|
|
365
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
366
|
+
items?: any | any[] | undefined;
|
|
367
|
+
'x-component'?: string | undefined;
|
|
236
368
|
'x-component-props'?: Record<string, any> | undefined;
|
|
237
369
|
'x-decorator'?: string | undefined;
|
|
238
370
|
'x-decorator-props'?: {
|
|
239
371
|
[x: string]: any;
|
|
240
372
|
} | undefined;
|
|
373
|
+
'x-reactions'?: {
|
|
374
|
+
dependencies?: {
|
|
375
|
+
property: string;
|
|
376
|
+
type?: string | undefined;
|
|
377
|
+
source: string;
|
|
378
|
+
name: string;
|
|
379
|
+
}[] | undefined;
|
|
380
|
+
fulfill?: {
|
|
381
|
+
state?: Record<string, any> | undefined;
|
|
382
|
+
} | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
'x-design-props'?: {
|
|
385
|
+
[x: string]: any;
|
|
386
|
+
validate?: {
|
|
387
|
+
status: "success" | "error" | "warning" | "";
|
|
388
|
+
message: string;
|
|
389
|
+
} | undefined;
|
|
390
|
+
} | undefined;
|
|
241
391
|
}[] | undefined;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
392
|
+
'x-component'?: string | undefined;
|
|
393
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
394
|
+
'x-decorator'?: string | undefined;
|
|
395
|
+
'x-decorator-props'?: {
|
|
396
|
+
[x: string]: any;
|
|
397
|
+
} | undefined;
|
|
398
|
+
'x-reactions'?: {
|
|
399
|
+
dependencies?: {
|
|
400
|
+
property: string;
|
|
401
|
+
type?: string | undefined;
|
|
402
|
+
source: string;
|
|
403
|
+
name: string;
|
|
404
|
+
}[] | undefined;
|
|
405
|
+
fulfill?: {
|
|
406
|
+
state?: Record<string, any> | undefined;
|
|
407
|
+
} | undefined;
|
|
408
|
+
} | undefined;
|
|
246
409
|
'x-design-props'?: {
|
|
247
410
|
[x: string]: any;
|
|
248
411
|
validate?: {
|
|
249
412
|
status: "success" | "error" | "warning" | "";
|
|
250
413
|
message: string;
|
|
251
414
|
} | undefined;
|
|
252
|
-
'convert-key'?: ("items" | "properties") | undefined;
|
|
253
|
-
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
254
|
-
} | undefined;
|
|
255
|
-
'x-component-props'?: Record<string, any> | undefined;
|
|
256
|
-
'x-decorator'?: string | undefined;
|
|
257
|
-
'x-decorator-props'?: {
|
|
258
|
-
[x: string]: any;
|
|
259
415
|
} | undefined;
|
|
260
416
|
}>;
|
|
261
417
|
shared: {
|
|
@@ -273,11 +429,112 @@ export declare class FormDesign {
|
|
|
273
429
|
getFormSchema(): {
|
|
274
430
|
version: string;
|
|
275
431
|
form: {
|
|
276
|
-
schema: {
|
|
432
|
+
schema: {
|
|
433
|
+
title?: string | undefined;
|
|
434
|
+
key?: string | undefined;
|
|
435
|
+
id?: string | undefined;
|
|
436
|
+
children?: any[] | undefined;
|
|
437
|
+
icon?: (string | VNode) | undefined;
|
|
438
|
+
type: valueType;
|
|
439
|
+
format?: string | undefined;
|
|
440
|
+
name?: string | undefined;
|
|
441
|
+
enum?: any[] | undefined;
|
|
442
|
+
required?: boolean | undefined;
|
|
443
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
444
|
+
items?: {
|
|
445
|
+
type: valueType;
|
|
446
|
+
format?: string | undefined;
|
|
447
|
+
name?: string | undefined;
|
|
448
|
+
enum?: any[] | undefined;
|
|
449
|
+
required?: boolean | undefined;
|
|
450
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
451
|
+
items?: any | any[] | undefined;
|
|
452
|
+
'x-component'?: string | undefined;
|
|
453
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
454
|
+
'x-decorator'?: string | undefined;
|
|
455
|
+
'x-decorator-props'?: {
|
|
456
|
+
[x: string]: any;
|
|
457
|
+
} | undefined;
|
|
458
|
+
'x-reactions'?: {
|
|
459
|
+
dependencies?: {
|
|
460
|
+
property: string;
|
|
461
|
+
type?: string | undefined;
|
|
462
|
+
source: string;
|
|
463
|
+
name: string;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
fulfill?: {
|
|
466
|
+
state?: Record<string, any> | undefined;
|
|
467
|
+
} | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
'x-design-props'?: {
|
|
470
|
+
[x: string]: any;
|
|
471
|
+
validate?: {
|
|
472
|
+
status: "success" | "error" | "warning" | "";
|
|
473
|
+
message: string;
|
|
474
|
+
} | undefined;
|
|
475
|
+
} | undefined;
|
|
476
|
+
} | {
|
|
477
|
+
type: valueType;
|
|
478
|
+
format?: string | undefined;
|
|
479
|
+
name?: string | undefined;
|
|
480
|
+
enum?: any[] | undefined;
|
|
481
|
+
required?: boolean | undefined;
|
|
482
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
483
|
+
items?: any | any[] | undefined;
|
|
484
|
+
'x-component'?: string | undefined;
|
|
485
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
486
|
+
'x-decorator'?: string | undefined;
|
|
487
|
+
'x-decorator-props'?: {
|
|
488
|
+
[x: string]: any;
|
|
489
|
+
} | undefined;
|
|
490
|
+
'x-reactions'?: {
|
|
491
|
+
dependencies?: {
|
|
492
|
+
property: string;
|
|
493
|
+
type?: string | undefined;
|
|
494
|
+
source: string;
|
|
495
|
+
name: string;
|
|
496
|
+
}[] | undefined;
|
|
497
|
+
fulfill?: {
|
|
498
|
+
state?: Record<string, any> | undefined;
|
|
499
|
+
} | undefined;
|
|
500
|
+
} | undefined;
|
|
501
|
+
'x-design-props'?: {
|
|
502
|
+
[x: string]: any;
|
|
503
|
+
validate?: {
|
|
504
|
+
status: "success" | "error" | "warning" | "";
|
|
505
|
+
message: string;
|
|
506
|
+
} | undefined;
|
|
507
|
+
} | undefined;
|
|
508
|
+
}[] | undefined;
|
|
509
|
+
'x-component'?: string | undefined;
|
|
510
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
511
|
+
'x-decorator'?: string | undefined;
|
|
512
|
+
'x-decorator-props'?: {
|
|
513
|
+
[x: string]: any;
|
|
514
|
+
} | undefined;
|
|
515
|
+
'x-reactions'?: {
|
|
516
|
+
dependencies?: {
|
|
517
|
+
property: string;
|
|
518
|
+
type?: string | undefined;
|
|
519
|
+
source: string;
|
|
520
|
+
name: string;
|
|
521
|
+
}[] | undefined;
|
|
522
|
+
fulfill?: {
|
|
523
|
+
state?: Record<string, any> | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
} | undefined;
|
|
526
|
+
'x-design-props'?: {
|
|
527
|
+
[x: string]: any;
|
|
528
|
+
validate?: {
|
|
529
|
+
status: "success" | "error" | "warning" | "";
|
|
530
|
+
message: string;
|
|
531
|
+
} | undefined;
|
|
532
|
+
} | undefined;
|
|
533
|
+
}[];
|
|
277
534
|
};
|
|
278
535
|
};
|
|
279
536
|
getFieldList(): Field[];
|
|
280
|
-
setFields(schema:
|
|
537
|
+
setFields(schema: FieldSchema[]): void;
|
|
281
538
|
clearFields(): never[];
|
|
282
539
|
setCheckedField(field: FieldSchema): void;
|
|
283
540
|
private get lifecycles();
|
|
@@ -287,128 +544,206 @@ export declare class FormDesign {
|
|
|
287
544
|
};
|
|
288
545
|
get dragAddResult(): any[];
|
|
289
546
|
get fields(): Ref<{
|
|
290
|
-
title
|
|
291
|
-
key
|
|
547
|
+
title?: string | undefined;
|
|
548
|
+
key?: string | undefined;
|
|
549
|
+
id?: string | undefined;
|
|
550
|
+
children?: any[] | undefined;
|
|
551
|
+
icon?: (string | VNode) | undefined;
|
|
292
552
|
type: valueType;
|
|
293
|
-
'x-component'?: string | undefined;
|
|
294
|
-
enum?: any[] | undefined;
|
|
295
553
|
format?: string | undefined;
|
|
554
|
+
name?: string | undefined;
|
|
555
|
+
enum?: any[] | undefined;
|
|
556
|
+
required?: boolean | undefined;
|
|
557
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
296
558
|
items?: {
|
|
297
559
|
type: valueType;
|
|
298
560
|
format?: string | undefined;
|
|
299
|
-
title?: string | undefined;
|
|
300
561
|
name?: string | undefined;
|
|
562
|
+
enum?: any[] | undefined;
|
|
563
|
+
required?: boolean | undefined;
|
|
564
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
565
|
+
items?: any | any[] | undefined;
|
|
301
566
|
'x-component'?: string | undefined;
|
|
302
567
|
'x-component-props'?: Record<string, any> | undefined;
|
|
303
568
|
'x-decorator'?: string | undefined;
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
569
|
+
'x-decorator-props'?: {
|
|
570
|
+
[x: string]: any;
|
|
571
|
+
} | undefined;
|
|
307
572
|
'x-reactions'?: {
|
|
308
|
-
dependencies?:
|
|
573
|
+
dependencies?: {
|
|
574
|
+
property: string;
|
|
575
|
+
type?: string | undefined;
|
|
576
|
+
source: string;
|
|
577
|
+
name: string;
|
|
578
|
+
}[] | undefined;
|
|
309
579
|
fulfill?: {
|
|
310
580
|
state?: Record<string, any> | undefined;
|
|
311
581
|
} | undefined;
|
|
312
582
|
} | undefined;
|
|
583
|
+
'x-design-props'?: {
|
|
584
|
+
[x: string]: any;
|
|
585
|
+
validate?: {
|
|
586
|
+
status: "success" | "error" | "warning" | "";
|
|
587
|
+
message: string;
|
|
588
|
+
} | undefined;
|
|
589
|
+
} | undefined;
|
|
313
590
|
} | {
|
|
314
591
|
type: valueType;
|
|
315
592
|
format?: string | undefined;
|
|
316
|
-
title?: string | undefined;
|
|
317
593
|
name?: string | undefined;
|
|
594
|
+
enum?: any[] | undefined;
|
|
595
|
+
required?: boolean | undefined;
|
|
596
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
597
|
+
items?: any | any[] | undefined;
|
|
318
598
|
'x-component'?: string | undefined;
|
|
319
599
|
'x-component-props'?: Record<string, any> | undefined;
|
|
320
600
|
'x-decorator'?: string | undefined;
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
601
|
+
'x-decorator-props'?: {
|
|
602
|
+
[x: string]: any;
|
|
603
|
+
} | undefined;
|
|
324
604
|
'x-reactions'?: {
|
|
325
|
-
dependencies?:
|
|
605
|
+
dependencies?: {
|
|
606
|
+
property: string;
|
|
607
|
+
type?: string | undefined;
|
|
608
|
+
source: string;
|
|
609
|
+
name: string;
|
|
610
|
+
}[] | undefined;
|
|
326
611
|
fulfill?: {
|
|
327
612
|
state?: Record<string, any> | undefined;
|
|
328
613
|
} | undefined;
|
|
329
614
|
} | undefined;
|
|
615
|
+
'x-design-props'?: {
|
|
616
|
+
[x: string]: any;
|
|
617
|
+
validate?: {
|
|
618
|
+
status: "success" | "error" | "warning" | "";
|
|
619
|
+
message: string;
|
|
620
|
+
} | undefined;
|
|
621
|
+
} | undefined;
|
|
330
622
|
}[] | undefined;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
623
|
+
'x-component'?: string | undefined;
|
|
624
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
625
|
+
'x-decorator'?: string | undefined;
|
|
626
|
+
'x-decorator-props'?: {
|
|
627
|
+
[x: string]: any;
|
|
628
|
+
} | undefined;
|
|
629
|
+
'x-reactions'?: {
|
|
630
|
+
dependencies?: {
|
|
631
|
+
property: string;
|
|
632
|
+
type?: string | undefined;
|
|
633
|
+
source: string;
|
|
634
|
+
name: string;
|
|
635
|
+
}[] | undefined;
|
|
636
|
+
fulfill?: {
|
|
637
|
+
state?: Record<string, any> | undefined;
|
|
638
|
+
} | undefined;
|
|
639
|
+
} | undefined;
|
|
337
640
|
'x-design-props'?: {
|
|
338
641
|
[x: string]: any;
|
|
339
642
|
validate?: {
|
|
340
643
|
status: "success" | "error" | "warning" | "";
|
|
341
644
|
message: string;
|
|
342
645
|
} | undefined;
|
|
343
|
-
'convert-key'?: ("items" | "properties") | undefined;
|
|
344
|
-
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
345
|
-
} | undefined;
|
|
346
|
-
'x-component-props'?: Record<string, any> | undefined;
|
|
347
|
-
'x-decorator'?: string | undefined;
|
|
348
|
-
'x-decorator-props'?: {
|
|
349
|
-
[x: string]: any;
|
|
350
646
|
} | undefined;
|
|
351
647
|
}[], FieldSchema[] | {
|
|
352
|
-
title
|
|
353
|
-
key
|
|
648
|
+
title?: string | undefined;
|
|
649
|
+
key?: string | undefined;
|
|
650
|
+
id?: string | undefined;
|
|
651
|
+
children?: any[] | undefined;
|
|
652
|
+
icon?: (string | VNode) | undefined;
|
|
354
653
|
type: valueType;
|
|
355
|
-
'x-component'?: string | undefined;
|
|
356
|
-
enum?: any[] | undefined;
|
|
357
654
|
format?: string | undefined;
|
|
655
|
+
name?: string | undefined;
|
|
656
|
+
enum?: any[] | undefined;
|
|
657
|
+
required?: boolean | undefined;
|
|
658
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
358
659
|
items?: {
|
|
359
660
|
type: valueType;
|
|
360
661
|
format?: string | undefined;
|
|
361
|
-
title?: string | undefined;
|
|
362
662
|
name?: string | undefined;
|
|
663
|
+
enum?: any[] | undefined;
|
|
664
|
+
required?: boolean | undefined;
|
|
665
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
666
|
+
items?: any | any[] | undefined;
|
|
363
667
|
'x-component'?: string | undefined;
|
|
364
668
|
'x-component-props'?: Record<string, any> | undefined;
|
|
365
669
|
'x-decorator'?: string | undefined;
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
670
|
+
'x-decorator-props'?: {
|
|
671
|
+
[x: string]: any;
|
|
672
|
+
} | undefined;
|
|
369
673
|
'x-reactions'?: {
|
|
370
|
-
dependencies?:
|
|
674
|
+
dependencies?: {
|
|
675
|
+
property: string;
|
|
676
|
+
type?: string | undefined;
|
|
677
|
+
source: string;
|
|
678
|
+
name: string;
|
|
679
|
+
}[] | undefined;
|
|
371
680
|
fulfill?: {
|
|
372
681
|
state?: Record<string, any> | undefined;
|
|
373
682
|
} | undefined;
|
|
374
683
|
} | undefined;
|
|
684
|
+
'x-design-props'?: {
|
|
685
|
+
[x: string]: any;
|
|
686
|
+
validate?: {
|
|
687
|
+
status: "success" | "error" | "warning" | "";
|
|
688
|
+
message: string;
|
|
689
|
+
} | undefined;
|
|
690
|
+
} | undefined;
|
|
375
691
|
} | {
|
|
376
692
|
type: valueType;
|
|
377
693
|
format?: string | undefined;
|
|
378
|
-
title?: string | undefined;
|
|
379
694
|
name?: string | undefined;
|
|
695
|
+
enum?: any[] | undefined;
|
|
696
|
+
required?: boolean | undefined;
|
|
697
|
+
properties?: Record<string, BaseFieldSchema> | undefined;
|
|
698
|
+
items?: any | any[] | undefined;
|
|
380
699
|
'x-component'?: string | undefined;
|
|
381
700
|
'x-component-props'?: Record<string, any> | undefined;
|
|
382
701
|
'x-decorator'?: string | undefined;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
702
|
+
'x-decorator-props'?: {
|
|
703
|
+
[x: string]: any;
|
|
704
|
+
} | undefined;
|
|
386
705
|
'x-reactions'?: {
|
|
387
|
-
dependencies?:
|
|
706
|
+
dependencies?: {
|
|
707
|
+
property: string;
|
|
708
|
+
type?: string | undefined;
|
|
709
|
+
source: string;
|
|
710
|
+
name: string;
|
|
711
|
+
}[] | undefined;
|
|
388
712
|
fulfill?: {
|
|
389
713
|
state?: Record<string, any> | undefined;
|
|
390
714
|
} | undefined;
|
|
391
715
|
} | undefined;
|
|
716
|
+
'x-design-props'?: {
|
|
717
|
+
[x: string]: any;
|
|
718
|
+
validate?: {
|
|
719
|
+
status: "success" | "error" | "warning" | "";
|
|
720
|
+
message: string;
|
|
721
|
+
} | undefined;
|
|
722
|
+
} | undefined;
|
|
392
723
|
}[] | undefined;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
724
|
+
'x-component'?: string | undefined;
|
|
725
|
+
'x-component-props'?: Record<string, any> | undefined;
|
|
726
|
+
'x-decorator'?: string | undefined;
|
|
727
|
+
'x-decorator-props'?: {
|
|
728
|
+
[x: string]: any;
|
|
729
|
+
} | undefined;
|
|
730
|
+
'x-reactions'?: {
|
|
731
|
+
dependencies?: {
|
|
732
|
+
property: string;
|
|
733
|
+
type?: string | undefined;
|
|
734
|
+
source: string;
|
|
735
|
+
name: string;
|
|
736
|
+
}[] | undefined;
|
|
737
|
+
fulfill?: {
|
|
738
|
+
state?: Record<string, any> | undefined;
|
|
739
|
+
} | undefined;
|
|
740
|
+
} | undefined;
|
|
399
741
|
'x-design-props'?: {
|
|
400
742
|
[x: string]: any;
|
|
401
743
|
validate?: {
|
|
402
744
|
status: "success" | "error" | "warning" | "";
|
|
403
745
|
message: string;
|
|
404
746
|
} | undefined;
|
|
405
|
-
'convert-key'?: ("items" | "properties") | undefined;
|
|
406
|
-
'convert-type'?: ("base" | "object" | "array") | undefined;
|
|
407
|
-
} | undefined;
|
|
408
|
-
'x-component-props'?: Record<string, any> | undefined;
|
|
409
|
-
'x-decorator'?: string | undefined;
|
|
410
|
-
'x-decorator-props'?: {
|
|
411
|
-
[x: string]: any;
|
|
412
747
|
} | undefined;
|
|
413
748
|
}[]>;
|
|
414
749
|
}
|