@tmagic/form 1.5.16 → 1.5.18
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/tmagic-form.js +11 -2
- package/dist/tmagic-form.umd.cjs +20 -6
- package/package.json +4 -3
- package/src/Form.vue +1 -1
- package/src/containers/Panel.vue +2 -2
- package/src/containers/Row.vue +1 -1
- package/src/containers/Step.vue +1 -1
- package/src/containers/Tabs.vue +1 -1
- package/src/fields/Select.vue +8 -0
- package/src/schema.ts +1 -767
- package/types/index.d.ts +80 -692
package/types/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
3
|
+
import * as _tmagic_form_schema from '@tmagic/form-schema';
|
|
4
|
+
import { FormState, FormConfig, TabPaneConfig, FormValue, FilterFunction, Rule, ChildConfig, FieldsetConfig, PanelConfig, RowConfig, TabConfig, TableConfig, SortProp, TableColumnConfig, GroupListConfig, FieldProps, TextConfig, NumberConfig, NumberRangeConfig, TextareaConfig, HiddenConfig, DateConfig, DateTimeConfig, TimeConfig, CheckboxConfig, SwitchConfig, DaterangeConfig, ColorPickConfig, CheckboxGroupConfig, RadioGroupConfig, DisplayConfig, LinkConfig, SelectConfig, CascaderConfig, DynamicFieldConfig } from '@tmagic/form-schema';
|
|
5
|
+
export * from '@tmagic/form-schema';
|
|
5
6
|
import * as _tmagic_editor from '@tmagic/editor';
|
|
7
|
+
import * as _tmagic_design from '@tmagic/design';
|
|
8
|
+
import { TMagicButton, TMagicCol, TMagicDialog, TMagicRow, TMagicDrawer, TMagicScrollbar, TMagicCard, TMagicPagination, TMagicTable, TMagicTableColumn, TMagicTooltip, TMagicUpload } from '@tmagic/design';
|
|
6
9
|
import * as _vue_reactivity from '@vue/reactivity';
|
|
7
10
|
import { CaretBottom, CaretRight, ArrowDown, ArrowUp, Delete, DocumentCopy, FullScreen, Grid } from '@element-plus/icons-vue';
|
|
8
11
|
|
|
@@ -18,621 +21,6 @@ interface ContainerChangeEventData {
|
|
|
18
21
|
modifyKey?: string;
|
|
19
22
|
changeRecords?: ChangeRecord[];
|
|
20
23
|
}
|
|
21
|
-
interface FieldProps<T = any> {
|
|
22
|
-
config: T;
|
|
23
|
-
model: any;
|
|
24
|
-
initValues?: any;
|
|
25
|
-
values?: any;
|
|
26
|
-
name: string;
|
|
27
|
-
prop: string;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
size?: 'large' | 'default' | 'small';
|
|
30
|
-
lastValues?: Record<string, any>;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* 整个表单的数据,会注入到各个组件中去
|
|
34
|
-
*/
|
|
35
|
-
type FormState = {
|
|
36
|
-
config: FormConfig;
|
|
37
|
-
popperClass?: string;
|
|
38
|
-
initValues: FormValue;
|
|
39
|
-
lastValues: FormValue;
|
|
40
|
-
isCompare: boolean;
|
|
41
|
-
values: FormValue;
|
|
42
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
43
|
-
keyProp?: string;
|
|
44
|
-
parentValues?: FormValue;
|
|
45
|
-
setField: (prop: string, field: any) => void;
|
|
46
|
-
getField: (prop: string) => any;
|
|
47
|
-
deleteField: (prop: string) => any;
|
|
48
|
-
$messageBox: TMagicMessageBox;
|
|
49
|
-
$message: TMagicMessage;
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* 排序配置
|
|
54
|
-
*/
|
|
55
|
-
interface SortProp {
|
|
56
|
-
/** 跟该值排序 */
|
|
57
|
-
prop: string;
|
|
58
|
-
order: 'ascending' | 'descending';
|
|
59
|
-
}
|
|
60
|
-
interface FormItem {
|
|
61
|
-
/** vnode的key值,默认是遍历数组时的index */
|
|
62
|
-
__key?: string | number;
|
|
63
|
-
/** 表单域标签的的宽度,例如 '50px'。支持 auto。 */
|
|
64
|
-
labelWidth?: string;
|
|
65
|
-
/** label 标签的title属性 */
|
|
66
|
-
labelTitle?: string;
|
|
67
|
-
className?: string;
|
|
68
|
-
/** 表单组件类型 */
|
|
69
|
-
type?: string | TypeFunction;
|
|
70
|
-
/** 字段名 */
|
|
71
|
-
name?: string | number;
|
|
72
|
-
/** 额外的提示信息,和 help 类似,当提示文案同时出现时,可以使用这个。 */
|
|
73
|
-
extra?: string | FilterFunction<string>;
|
|
74
|
-
/** 配置提示信息 */
|
|
75
|
-
tooltip?: string | FilterFunction<string>;
|
|
76
|
-
/** 是否置灰 */
|
|
77
|
-
disabled?: boolean | FilterFunction;
|
|
78
|
-
/** 使用表单中的值作为key,例如配置了text,则使用model.text作为key */
|
|
79
|
-
key?: string;
|
|
80
|
-
/** 是否显示 */
|
|
81
|
-
display?: boolean | 'expand' | FilterFunction<boolean | 'expand'>;
|
|
82
|
-
/** 值发生改变时调用的方法 */
|
|
83
|
-
onChange?: OnChangeHandler;
|
|
84
|
-
/** label 标签的文本 */
|
|
85
|
-
text?: string | FilterFunction<string>;
|
|
86
|
-
/** 右侧感叹号 */
|
|
87
|
-
tip?: string;
|
|
88
|
-
filter?: 'number' | OnChangeHandler;
|
|
89
|
-
/** 是否去除首尾空格 */
|
|
90
|
-
trim?: boolean;
|
|
91
|
-
/** 默认值 */
|
|
92
|
-
defaultValue?: any | DefaultValueFunction;
|
|
93
|
-
/** 表单验证规则 */
|
|
94
|
-
rules?: Rule[];
|
|
95
|
-
extensible?: boolean;
|
|
96
|
-
dynamicKey?: string;
|
|
97
|
-
/** 是否需要显示`展开更多配置` */
|
|
98
|
-
expand?: boolean;
|
|
99
|
-
[key: string]: any;
|
|
100
|
-
}
|
|
101
|
-
interface ContainerCommonConfig {
|
|
102
|
-
items: FormConfig;
|
|
103
|
-
onInitValue?: (mForm: FormState | undefined, data: {
|
|
104
|
-
formValue: FormValue;
|
|
105
|
-
initValue: FormValue;
|
|
106
|
-
}) => FormValue;
|
|
107
|
-
extensible?: boolean;
|
|
108
|
-
}
|
|
109
|
-
interface Rule {
|
|
110
|
-
message?: string;
|
|
111
|
-
/** 系统提供的验证器类型。有:string,number,boolean,method,regexp,integer,float,array,object,enum,date,url,hex,email,any */
|
|
112
|
-
type?: string;
|
|
113
|
-
/** 是否必填 */
|
|
114
|
-
required?: boolean;
|
|
115
|
-
trigger?: string;
|
|
116
|
-
/** 自定义验证器 */
|
|
117
|
-
validator?: (options: {
|
|
118
|
-
rule: string;
|
|
119
|
-
value: any;
|
|
120
|
-
callback: Function;
|
|
121
|
-
source: Object;
|
|
122
|
-
options: {
|
|
123
|
-
messages: string;
|
|
124
|
-
};
|
|
125
|
-
}, data: {
|
|
126
|
-
/** 表单的初始值 */
|
|
127
|
-
values: FormValue;
|
|
128
|
-
/** 当前作用域下的值 */
|
|
129
|
-
model: FormValue;
|
|
130
|
-
parent: FormValue;
|
|
131
|
-
/** 整个表单的值 */
|
|
132
|
-
formValue: FormValue;
|
|
133
|
-
prop: string;
|
|
134
|
-
config: any;
|
|
135
|
-
}, mForm: FormState | undefined) => void;
|
|
136
|
-
}
|
|
137
|
-
interface Input {
|
|
138
|
-
/** 输入框没有内容时显示的文案 */
|
|
139
|
-
placeholder?: string;
|
|
140
|
-
}
|
|
141
|
-
type TypeFunction = (mForm: FormState | undefined, data: {
|
|
142
|
-
model: FormValue;
|
|
143
|
-
}) => string;
|
|
144
|
-
type FilterFunction<T = boolean> = (mForm: FormState | undefined, data: {
|
|
145
|
-
model: FormValue;
|
|
146
|
-
values: FormValue;
|
|
147
|
-
parent?: FormValue;
|
|
148
|
-
formValue: FormValue;
|
|
149
|
-
prop: string;
|
|
150
|
-
config: any;
|
|
151
|
-
index?: number;
|
|
152
|
-
}) => T;
|
|
153
|
-
interface OnChangeHandlerData {
|
|
154
|
-
model: FormValue;
|
|
155
|
-
values?: FormValue;
|
|
156
|
-
parent?: FormValue;
|
|
157
|
-
formValue?: FormValue;
|
|
158
|
-
config: any;
|
|
159
|
-
prop: string;
|
|
160
|
-
changeRecords: ChangeRecord[];
|
|
161
|
-
setModel: (prop: string, value: any) => void;
|
|
162
|
-
}
|
|
163
|
-
type OnChangeHandler = (mForm: FormState | undefined, value: any, data: OnChangeHandlerData) => any;
|
|
164
|
-
type DefaultValueFunction = (mForm: FormState | undefined) => any;
|
|
165
|
-
/**
|
|
166
|
-
* 下拉选择器选项配置
|
|
167
|
-
*/
|
|
168
|
-
interface SelectConfigOption {
|
|
169
|
-
/** 选项的标签 */
|
|
170
|
-
text: string | SelectOptionTextFunction;
|
|
171
|
-
/** 选项的值 */
|
|
172
|
-
value: any | SelectOptionValueFunction;
|
|
173
|
-
/** 是否禁用该选项 */
|
|
174
|
-
disabled?: boolean;
|
|
175
|
-
}
|
|
176
|
-
interface SelectOption {
|
|
177
|
-
/** 选项的标签 */
|
|
178
|
-
text: string;
|
|
179
|
-
/** 选项的值 */
|
|
180
|
-
value: any;
|
|
181
|
-
/** 是否禁用该选项 */
|
|
182
|
-
disabled?: boolean;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* 下拉选择器分组选项配置
|
|
186
|
-
*/
|
|
187
|
-
interface SelectConfigGroupOption {
|
|
188
|
-
/** 分组的组名 */
|
|
189
|
-
label: string;
|
|
190
|
-
/** 是否禁用该选项组 */
|
|
191
|
-
disabled: boolean;
|
|
192
|
-
options: {
|
|
193
|
-
/** 选项的标签 */
|
|
194
|
-
label: string | SelectOptionTextFunction;
|
|
195
|
-
/** 选项的值 */
|
|
196
|
-
value: any | SelectOptionValueFunction;
|
|
197
|
-
/** 是否禁用该选项 */
|
|
198
|
-
disabled?: boolean;
|
|
199
|
-
}[];
|
|
200
|
-
}
|
|
201
|
-
interface SelectGroupOption {
|
|
202
|
-
/** 分组的组名 */
|
|
203
|
-
label: string;
|
|
204
|
-
/** 是否禁用该选项组 */
|
|
205
|
-
disabled: boolean;
|
|
206
|
-
options: {
|
|
207
|
-
/** 选项的标签 */
|
|
208
|
-
label?: string;
|
|
209
|
-
text?: string;
|
|
210
|
-
/** 选项的值 */
|
|
211
|
-
value: any;
|
|
212
|
-
/** 是否禁用该选项 */
|
|
213
|
-
disabled?: boolean;
|
|
214
|
-
}[];
|
|
215
|
-
}
|
|
216
|
-
type SelectOptionFunction = (mForm: FormState | undefined, data: {
|
|
217
|
-
model: any;
|
|
218
|
-
prop?: string;
|
|
219
|
-
formValues: any;
|
|
220
|
-
formValue: any;
|
|
221
|
-
config: any;
|
|
222
|
-
}) => SelectOption[] | SelectGroupOption[];
|
|
223
|
-
type RemoteSelectOptionBodyFunction = (mForm: FormState | undefined, data: {
|
|
224
|
-
model: any;
|
|
225
|
-
formValue: any;
|
|
226
|
-
formValues: any;
|
|
227
|
-
config: any;
|
|
228
|
-
}) => Record<string, any>;
|
|
229
|
-
type RemoteSelectOptionRequestFunction = (mForm: FormState | undefined, res: any, data: {
|
|
230
|
-
model: any;
|
|
231
|
-
formValue: any;
|
|
232
|
-
formValues: any;
|
|
233
|
-
config: any;
|
|
234
|
-
postOptions: Record<string, any>;
|
|
235
|
-
}) => any;
|
|
236
|
-
type RemoteSelectOptionItemFunction = (optionsData: Record<string, any>) => SelectOption[] | SelectGroupOption[];
|
|
237
|
-
type SelectOptionValueFunction = (item: Record<string, any>) => any;
|
|
238
|
-
type SelectOptionTextFunction = (item: Record<string, any>) => string;
|
|
239
|
-
interface CascaderOption {
|
|
240
|
-
/** 指定选项的值为选项对象的某个属性值 */
|
|
241
|
-
value: any;
|
|
242
|
-
/** 指定选项标签为选项对象的某个属性值 */
|
|
243
|
-
label: string;
|
|
244
|
-
/** 指定选项的子选项为选项对象的某个属性值 */
|
|
245
|
-
children?: CascaderOption[];
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* 日期范围
|
|
249
|
-
*/
|
|
250
|
-
interface DaterangeConfig extends FormItem {
|
|
251
|
-
type: 'daterange';
|
|
252
|
-
defaultTime?: Date[];
|
|
253
|
-
names?: string[];
|
|
254
|
-
valueFormat?: string;
|
|
255
|
-
dateFormat?: string;
|
|
256
|
-
timeFormat?: string;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* html编辑器
|
|
260
|
-
*/
|
|
261
|
-
interface HtmlField extends FormItem {
|
|
262
|
-
type: 'html';
|
|
263
|
-
/** 是否异步加载编辑的内容 */
|
|
264
|
-
asyncLoad?: {
|
|
265
|
-
name: string | number;
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
/** 展示文本,不可编辑 */
|
|
269
|
-
interface DisplayConfig extends FormItem {
|
|
270
|
-
type: 'display';
|
|
271
|
-
initValue?: string | number | boolean;
|
|
272
|
-
}
|
|
273
|
-
/** 文本输入框 */
|
|
274
|
-
interface TextConfig extends FormItem, Input {
|
|
275
|
-
type?: 'text';
|
|
276
|
-
tooltip?: string;
|
|
277
|
-
/** 后置元素,一般为标签或按钮 */
|
|
278
|
-
append?: string | {
|
|
279
|
-
text: string;
|
|
280
|
-
value?: 0 | 1;
|
|
281
|
-
type: 'button';
|
|
282
|
-
handler?: (mForm: FormState | undefined, data: {
|
|
283
|
-
model: any;
|
|
284
|
-
values: any;
|
|
285
|
-
}) => void;
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* 文本域
|
|
290
|
-
*/
|
|
291
|
-
interface TextareaConfig extends FormItem {
|
|
292
|
-
type: 'textarea';
|
|
293
|
-
placeholder?: string;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* 计数器
|
|
297
|
-
*/
|
|
298
|
-
interface NumberConfig extends FormItem {
|
|
299
|
-
type?: 'number';
|
|
300
|
-
tooltip?: string;
|
|
301
|
-
min?: number;
|
|
302
|
-
max?: number;
|
|
303
|
-
step?: number;
|
|
304
|
-
placeholder?: string;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* 数值范围
|
|
308
|
-
*/
|
|
309
|
-
interface NumberRangeConfig extends FormItem {
|
|
310
|
-
type?: 'number-range';
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* 隐藏域
|
|
314
|
-
*/
|
|
315
|
-
interface HiddenConfig extends FormItem {
|
|
316
|
-
type: 'hidden';
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* 日期选择器
|
|
320
|
-
*/
|
|
321
|
-
interface DateConfig extends FormItem, Input {
|
|
322
|
-
type: 'date';
|
|
323
|
-
format?: 'YYYY-MM-dd HH:mm:ss' | string;
|
|
324
|
-
valueFormat?: 'YYYY-MM-dd HH:mm:ss' | string;
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* 日期时间选择器
|
|
328
|
-
*/
|
|
329
|
-
interface DateTimeConfig extends FormItem, Input {
|
|
330
|
-
type: 'datetime';
|
|
331
|
-
defaultTime?: Date[];
|
|
332
|
-
format?: 'YYYY-MM-dd HH:mm:ss' | string;
|
|
333
|
-
valueFormat?: 'YYYY-MM-dd HH:mm:ss' | string;
|
|
334
|
-
}
|
|
335
|
-
/**
|
|
336
|
-
* 时间选择器
|
|
337
|
-
*/
|
|
338
|
-
interface TimeConfig extends FormItem, Input {
|
|
339
|
-
type: 'time';
|
|
340
|
-
format?: 'HH:mm:ss' | string;
|
|
341
|
-
valueFormat?: 'HH:mm:ss' | string;
|
|
342
|
-
}
|
|
343
|
-
/**
|
|
344
|
-
* 单个多选框
|
|
345
|
-
*/
|
|
346
|
-
interface CheckboxConfig extends FormItem {
|
|
347
|
-
type: 'checkbox';
|
|
348
|
-
activeValue?: number | string;
|
|
349
|
-
inactiveValue?: number | string;
|
|
350
|
-
}
|
|
351
|
-
/**
|
|
352
|
-
* 开关
|
|
353
|
-
*/
|
|
354
|
-
interface SwitchConfig extends FormItem {
|
|
355
|
-
type: 'switch';
|
|
356
|
-
activeValue?: boolean | number | string;
|
|
357
|
-
inactiveValue?: boolean | number | string;
|
|
358
|
-
}
|
|
359
|
-
/**
|
|
360
|
-
* 单选框
|
|
361
|
-
*/
|
|
362
|
-
interface RadioGroupConfig extends FormItem {
|
|
363
|
-
type: 'radio-group';
|
|
364
|
-
childType?: 'default' | 'button';
|
|
365
|
-
options: {
|
|
366
|
-
value: string | number | boolean;
|
|
367
|
-
text: string;
|
|
368
|
-
icon?: any;
|
|
369
|
-
tooltip?: string;
|
|
370
|
-
}[];
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* 颜色选择器
|
|
374
|
-
*/
|
|
375
|
-
interface ColorPickConfig extends FormItem {
|
|
376
|
-
type: 'colorPicker';
|
|
377
|
-
}
|
|
378
|
-
interface CheckboxGroupOption {
|
|
379
|
-
value: any;
|
|
380
|
-
text: string;
|
|
381
|
-
disabled?: boolean;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* 多选框组
|
|
385
|
-
*/
|
|
386
|
-
interface CheckboxGroupConfig extends FormItem {
|
|
387
|
-
type: 'checkbox-group';
|
|
388
|
-
options: CheckboxGroupOption[] | FilterFunction<CheckboxGroupOption[]>;
|
|
389
|
-
}
|
|
390
|
-
/**
|
|
391
|
-
* 下拉选择器
|
|
392
|
-
*/
|
|
393
|
-
interface SelectConfig extends FormItem, Input {
|
|
394
|
-
type: 'select';
|
|
395
|
-
clearable?: boolean;
|
|
396
|
-
multiple?: boolean;
|
|
397
|
-
valueKey?: string;
|
|
398
|
-
allowCreate?: boolean;
|
|
399
|
-
filterable?: boolean;
|
|
400
|
-
group?: boolean;
|
|
401
|
-
options?: SelectConfigOption[] | SelectConfigGroupOption[] | SelectOptionFunction;
|
|
402
|
-
remote?: true;
|
|
403
|
-
option?: {
|
|
404
|
-
url: string | ((mForm: FormState | undefined, data: {
|
|
405
|
-
model: any;
|
|
406
|
-
formValue: any;
|
|
407
|
-
}) => string);
|
|
408
|
-
initUrl?: string | ((mForm: FormState | undefined, data: {
|
|
409
|
-
model: any;
|
|
410
|
-
formValue: any;
|
|
411
|
-
}) => string);
|
|
412
|
-
method?: 'jsonp' | string;
|
|
413
|
-
cache?: boolean;
|
|
414
|
-
timeout?: number;
|
|
415
|
-
mode?: string;
|
|
416
|
-
headers?: {
|
|
417
|
-
[key: string]: string;
|
|
418
|
-
};
|
|
419
|
-
json?: false | boolean;
|
|
420
|
-
body?: Record<string, any> | RemoteSelectOptionBodyFunction;
|
|
421
|
-
initBody?: Record<string, any> | RemoteSelectOptionBodyFunction;
|
|
422
|
-
jsonpCallback?: 'callback' | string;
|
|
423
|
-
afterRequest?: RemoteSelectOptionRequestFunction;
|
|
424
|
-
afterInitRequest?: RemoteSelectOptionRequestFunction;
|
|
425
|
-
beforeRequest?: (mForm: FormState | undefined, postOptions: Record<string, any>, data: any) => Record<string, any>;
|
|
426
|
-
beforeInitRequest?: (mForm: FormState | undefined, postOptions: Record<string, any>, data: any) => Record<string, any>;
|
|
427
|
-
root?: string;
|
|
428
|
-
totalKey?: string;
|
|
429
|
-
initRoot?: string;
|
|
430
|
-
item?: RemoteSelectOptionItemFunction;
|
|
431
|
-
value?: string | SelectOptionValueFunction;
|
|
432
|
-
text?: string | SelectOptionTextFunction;
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* 链接
|
|
437
|
-
*/
|
|
438
|
-
interface LinkConfig extends FormItem {
|
|
439
|
-
type: 'link';
|
|
440
|
-
href?: string | ((model: Record<string, any>) => string);
|
|
441
|
-
css?: {
|
|
442
|
-
[key: string]: string | number;
|
|
443
|
-
};
|
|
444
|
-
disabledCss?: {
|
|
445
|
-
[key: string]: string | number;
|
|
446
|
-
};
|
|
447
|
-
formTitle?: string;
|
|
448
|
-
formWidth?: number | string;
|
|
449
|
-
displayText?: ((mForm: FormState | undefined, data: {
|
|
450
|
-
model: Record<any, any>;
|
|
451
|
-
}) => string) | string;
|
|
452
|
-
form: FormConfig | ((mForm: FormState | undefined, data: {
|
|
453
|
-
model: Record<any, any>;
|
|
454
|
-
values: Record<any, any>;
|
|
455
|
-
}) => FormConfig);
|
|
456
|
-
fullscreen?: boolean;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* 级联选择器
|
|
460
|
-
*/
|
|
461
|
-
interface CascaderConfig extends FormItem, Input {
|
|
462
|
-
type: 'cascader';
|
|
463
|
-
remote?: boolean;
|
|
464
|
-
/** 在选中节点改变时,是否返回由该节点所在的各级菜单的值所组成的数组,若设置 false,则只返回该节点的值,默认 true */
|
|
465
|
-
emitPath?: boolean;
|
|
466
|
-
/** 是否多选,默认 false */
|
|
467
|
-
multiple?: boolean;
|
|
468
|
-
/** 是否严格的遵守父子节点不互相关联,默认 false */
|
|
469
|
-
checkStrictly?: boolean | FilterFunction<boolean>;
|
|
470
|
-
/** 弹出内容的自定义类名 */
|
|
471
|
-
popperClass?: string;
|
|
472
|
-
/** 合并成字符串时的分隔符 */
|
|
473
|
-
valueSeparator?: string | FilterFunction<string>;
|
|
474
|
-
options?: ((mForm: FormState | undefined, data: {
|
|
475
|
-
model: Record<any, any>;
|
|
476
|
-
prop: string;
|
|
477
|
-
formValue: Record<any, any>;
|
|
478
|
-
}) => CascaderOption[]) | CascaderOption[];
|
|
479
|
-
option?: {
|
|
480
|
-
url: string;
|
|
481
|
-
cache?: boolean;
|
|
482
|
-
timeout?: number;
|
|
483
|
-
body?: Record<string, any> | RemoteSelectOptionBodyFunction;
|
|
484
|
-
root: 'string';
|
|
485
|
-
item: (optionsData: Record<string, any>) => CascaderOption[];
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
interface DynamicFieldConfig extends FormItem {
|
|
489
|
-
type: 'dynamic-field';
|
|
490
|
-
returnFields: (config: DynamicFieldConfig, model: Record<any, any>, request: Object) => {
|
|
491
|
-
name: string;
|
|
492
|
-
label: string;
|
|
493
|
-
defaultValue: string;
|
|
494
|
-
}[];
|
|
495
|
-
dynamicKey: string;
|
|
496
|
-
}
|
|
497
|
-
/**
|
|
498
|
-
* 分组容器
|
|
499
|
-
*/
|
|
500
|
-
interface RowConfig extends FormItem, ContainerCommonConfig {
|
|
501
|
-
type: 'row';
|
|
502
|
-
span: number;
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* 标签页容器
|
|
506
|
-
*/
|
|
507
|
-
interface TabPaneConfig {
|
|
508
|
-
status?: string;
|
|
509
|
-
title: string;
|
|
510
|
-
lazy?: boolean;
|
|
511
|
-
labelWidth?: string;
|
|
512
|
-
items: FormConfig;
|
|
513
|
-
onTabClick?: (mForm: FormState | undefined, tab: any, data: any) => void;
|
|
514
|
-
[key: string]: any;
|
|
515
|
-
}
|
|
516
|
-
interface TabConfig extends FormItem, ContainerCommonConfig {
|
|
517
|
-
type: 'tab' | 'dynamic-tab';
|
|
518
|
-
tabType?: string;
|
|
519
|
-
editable?: boolean;
|
|
520
|
-
dynamic?: boolean;
|
|
521
|
-
tabPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
522
|
-
items: TabPaneConfig[];
|
|
523
|
-
onChange?: (mForm: FormState | undefined, data: any) => void;
|
|
524
|
-
onTabAdd?: (mForm: FormState | undefined, data: any) => void;
|
|
525
|
-
onTabRemove?: (mForm: FormState | undefined, tabName: string, data: any) => void;
|
|
526
|
-
onTabClick?: (mForm: FormState | undefined, tab: any, data: any) => void;
|
|
527
|
-
activeChange?: (mForm: FormState | undefined, tabName: string, data: any) => void;
|
|
528
|
-
}
|
|
529
|
-
/**
|
|
530
|
-
* 分组
|
|
531
|
-
*/
|
|
532
|
-
interface FieldsetConfig extends FormItem, ContainerCommonConfig {
|
|
533
|
-
type: 'fieldset';
|
|
534
|
-
checkbox?: boolean;
|
|
535
|
-
expand?: boolean;
|
|
536
|
-
legend?: string;
|
|
537
|
-
schematic?: string;
|
|
538
|
-
}
|
|
539
|
-
/**
|
|
540
|
-
* 面板容器
|
|
541
|
-
*/
|
|
542
|
-
interface PanelConfig extends FormItem, ContainerCommonConfig {
|
|
543
|
-
type: 'panel';
|
|
544
|
-
expand?: boolean;
|
|
545
|
-
title?: string;
|
|
546
|
-
schematic?: string;
|
|
547
|
-
}
|
|
548
|
-
interface TableColumnConfig extends FormItem {
|
|
549
|
-
name?: string;
|
|
550
|
-
label: string;
|
|
551
|
-
width?: string | number;
|
|
552
|
-
sortable?: boolean;
|
|
553
|
-
[key: string]: any;
|
|
554
|
-
}
|
|
555
|
-
/**
|
|
556
|
-
* 表格容器
|
|
557
|
-
*/
|
|
558
|
-
interface TableConfig extends FormItem {
|
|
559
|
-
type: 'table' | 'groupList' | 'group-list';
|
|
560
|
-
items: TableColumnConfig[];
|
|
561
|
-
tableItems?: TableColumnConfig[];
|
|
562
|
-
groupItems?: TableColumnConfig[];
|
|
563
|
-
enableToggleMode?: boolean;
|
|
564
|
-
/** 最大行数 */
|
|
565
|
-
max?: number;
|
|
566
|
-
/** 最大高度 */
|
|
567
|
-
maxHeight?: number | string;
|
|
568
|
-
border?: boolean;
|
|
569
|
-
/** 显示行号 */
|
|
570
|
-
showIndex?: boolean;
|
|
571
|
-
/** 操作栏宽度 */
|
|
572
|
-
operateColWidth?: number | string;
|
|
573
|
-
pagination?: boolean;
|
|
574
|
-
enum?: any[];
|
|
575
|
-
/** 是否显示添加按钮 */
|
|
576
|
-
addable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
|
|
577
|
-
/** 是否显示删除按钮 */
|
|
578
|
-
delete?: (model: any, index: number, values: any) => boolean | boolean;
|
|
579
|
-
copyable?: (model: any, data: any) => boolean | boolean;
|
|
580
|
-
/** 是否显示导入按钮 */
|
|
581
|
-
importable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
|
|
582
|
-
/** 是否显示checkbox */
|
|
583
|
-
selection?: (mForm: FormState | undefined, data: any) => boolean | boolean | 'single';
|
|
584
|
-
/** 新增的默认行 */
|
|
585
|
-
defaultAdd?: (mForm: FormState | undefined, data: any) => any;
|
|
586
|
-
onSelect?: (mForm: FormState | undefined, data: any) => any;
|
|
587
|
-
defautSort?: SortProp;
|
|
588
|
-
defaultSort?: SortProp;
|
|
589
|
-
dropSort?: boolean;
|
|
590
|
-
/** 是否显示全屏按钮 */
|
|
591
|
-
enableFullscreen?: boolean;
|
|
592
|
-
fixed?: boolean;
|
|
593
|
-
itemExtra?: string | FilterFunction<string>;
|
|
594
|
-
rowKey?: string;
|
|
595
|
-
/** table 新增行时前置回调 */
|
|
596
|
-
beforeAddRow?: (mForm: FormState | undefined, data: any) => boolean;
|
|
597
|
-
}
|
|
598
|
-
interface GroupListConfig extends FormItem {
|
|
599
|
-
type: 'table' | 'groupList' | 'group-list';
|
|
600
|
-
span?: number;
|
|
601
|
-
enableToggleMode?: boolean;
|
|
602
|
-
items: FormConfig;
|
|
603
|
-
groupItems?: FormConfig;
|
|
604
|
-
tableItems?: FormConfig;
|
|
605
|
-
titleKey?: string;
|
|
606
|
-
titlePrefix?: string;
|
|
607
|
-
title?: string | FilterFunction<string>;
|
|
608
|
-
itemExtra?: string | FilterFunction<string>;
|
|
609
|
-
expandAll?: boolean;
|
|
610
|
-
addable?: (mForm: FormState | undefined, data: any) => boolean | 'undefined' | boolean;
|
|
611
|
-
defaultAdd?: (mForm: FormState | undefined, data: any) => any;
|
|
612
|
-
delete?: (model: any, index: number | string | symbol, values: any) => boolean | boolean;
|
|
613
|
-
copyable?: FilterFunction<boolean>;
|
|
614
|
-
movable?: (mForm: FormState | undefined, index: number | string | symbol, model: any, groupModel: any) => boolean | boolean;
|
|
615
|
-
moveSpecifyLocation?: boolean;
|
|
616
|
-
[key: string]: any;
|
|
617
|
-
}
|
|
618
|
-
interface StepItemConfig extends FormItem, ContainerCommonConfig {
|
|
619
|
-
title: string;
|
|
620
|
-
}
|
|
621
|
-
interface StepConfig extends FormItem {
|
|
622
|
-
type: 'step';
|
|
623
|
-
/** 每个 step 的间距,不填写将自适应间距。支持百分比。 */
|
|
624
|
-
space?: string | number;
|
|
625
|
-
items: StepItemConfig[];
|
|
626
|
-
}
|
|
627
|
-
interface ComponentConfig extends FormItem {
|
|
628
|
-
type: 'component';
|
|
629
|
-
id: string;
|
|
630
|
-
extend: any;
|
|
631
|
-
display: any;
|
|
632
|
-
}
|
|
633
|
-
type ChildConfig = FormItem | TabConfig | RowConfig | FieldsetConfig | PanelConfig | TableConfig | GroupListConfig | StepConfig | DisplayConfig | TextConfig | HiddenConfig | LinkConfig | DaterangeConfig | SelectConfig | CascaderConfig | HtmlField | DateConfig | ColorPickConfig | TimeConfig | DateTimeConfig | CheckboxConfig | SwitchConfig | RadioGroupConfig | TextareaConfig | DynamicFieldConfig | ComponentConfig;
|
|
634
|
-
type FormConfig = ChildConfig[];
|
|
635
|
-
type FormValue = Record<string | number, any>;
|
|
636
24
|
|
|
637
25
|
declare const createValues: (mForm: FormState | undefined, config?: FormConfig | TabPaneConfig[], initValue?: FormValue, value?: FormValue) => FormValue;
|
|
638
26
|
declare const filterFunction: <T = any>(mForm: FormState | undefined, config: T | FilterFunction<T> | undefined, props: any) => T | undefined;
|
|
@@ -695,13 +83,13 @@ declare const _default$v: vue.DefineComponent<__VLS_Props$u, {
|
|
|
695
83
|
inline: boolean;
|
|
696
84
|
labelPosition: string;
|
|
697
85
|
config: FormConfig;
|
|
86
|
+
height: string;
|
|
698
87
|
initValues: Record<string, any>;
|
|
699
88
|
lastValues: Record<string, any>;
|
|
700
89
|
isCompare: boolean;
|
|
701
90
|
keyProp: string;
|
|
702
91
|
parentValues: Record<string, any>;
|
|
703
92
|
stepActive: string | number;
|
|
704
|
-
height: string;
|
|
705
93
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
706
94
|
|
|
707
95
|
type __VLS_Props$t = {
|
|
@@ -736,7 +124,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
736
124
|
keyProp?: string;
|
|
737
125
|
popperClass?: string;
|
|
738
126
|
preventSubmitDefault?: boolean;
|
|
739
|
-
extendState?: (_state:
|
|
127
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
740
128
|
}> & Readonly<{
|
|
741
129
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
742
130
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -746,7 +134,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
746
134
|
}>, {
|
|
747
135
|
values: vue.Ref<FormValue, FormValue>;
|
|
748
136
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
749
|
-
formState:
|
|
137
|
+
formState: _tmagic_form_schema.FormState;
|
|
750
138
|
initialized: vue.Ref<boolean, boolean>;
|
|
751
139
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
752
140
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -764,13 +152,13 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
764
152
|
inline: boolean;
|
|
765
153
|
labelPosition: string;
|
|
766
154
|
config: FormConfig;
|
|
155
|
+
height: string;
|
|
767
156
|
initValues: Record<string, any>;
|
|
768
157
|
lastValues: Record<string, any>;
|
|
769
158
|
isCompare: boolean;
|
|
770
159
|
keyProp: string;
|
|
771
160
|
parentValues: Record<string, any>;
|
|
772
161
|
stepActive: string | number;
|
|
773
|
-
height: string;
|
|
774
162
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
775
163
|
P: {};
|
|
776
164
|
B: {};
|
|
@@ -794,7 +182,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
794
182
|
keyProp?: string;
|
|
795
183
|
popperClass?: string;
|
|
796
184
|
preventSubmitDefault?: boolean;
|
|
797
|
-
extendState?: (_state:
|
|
185
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
798
186
|
}> & Readonly<{
|
|
799
187
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
800
188
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -804,7 +192,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
804
192
|
}>, {
|
|
805
193
|
values: vue.Ref<FormValue, FormValue>;
|
|
806
194
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
807
|
-
formState:
|
|
195
|
+
formState: _tmagic_form_schema.FormState;
|
|
808
196
|
initialized: vue.Ref<boolean, boolean>;
|
|
809
197
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
810
198
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -816,13 +204,13 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
816
204
|
inline: boolean;
|
|
817
205
|
labelPosition: string;
|
|
818
206
|
config: FormConfig;
|
|
207
|
+
height: string;
|
|
819
208
|
initValues: Record<string, any>;
|
|
820
209
|
lastValues: Record<string, any>;
|
|
821
210
|
isCompare: boolean;
|
|
822
211
|
keyProp: string;
|
|
823
212
|
parentValues: Record<string, any>;
|
|
824
213
|
stepActive: string | number;
|
|
825
|
-
height: string;
|
|
826
214
|
}> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
827
215
|
config: FormConfig;
|
|
828
216
|
initValues: Record<string, any>;
|
|
@@ -839,7 +227,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
839
227
|
keyProp?: string;
|
|
840
228
|
popperClass?: string;
|
|
841
229
|
preventSubmitDefault?: boolean;
|
|
842
|
-
extendState?: (_state:
|
|
230
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
843
231
|
}> & Readonly<{
|
|
844
232
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
845
233
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -849,7 +237,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
849
237
|
}>, {
|
|
850
238
|
values: vue.Ref<FormValue, FormValue>;
|
|
851
239
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
852
|
-
formState:
|
|
240
|
+
formState: _tmagic_form_schema.FormState;
|
|
853
241
|
initialized: vue.Ref<boolean, boolean>;
|
|
854
242
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
855
243
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -867,13 +255,13 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
867
255
|
inline: boolean;
|
|
868
256
|
labelPosition: string;
|
|
869
257
|
config: FormConfig;
|
|
258
|
+
height: string;
|
|
870
259
|
initValues: Record<string, any>;
|
|
871
260
|
lastValues: Record<string, any>;
|
|
872
261
|
isCompare: boolean;
|
|
873
262
|
keyProp: string;
|
|
874
263
|
parentValues: Record<string, any>;
|
|
875
264
|
stepActive: string | number;
|
|
876
|
-
height: string;
|
|
877
265
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
878
266
|
P: {};
|
|
879
267
|
B: {};
|
|
@@ -897,7 +285,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
897
285
|
keyProp?: string;
|
|
898
286
|
popperClass?: string;
|
|
899
287
|
preventSubmitDefault?: boolean;
|
|
900
|
-
extendState?: (_state:
|
|
288
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
901
289
|
}> & Readonly<{
|
|
902
290
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
903
291
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -907,7 +295,7 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
907
295
|
}>, {
|
|
908
296
|
values: vue.Ref<FormValue, FormValue>;
|
|
909
297
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
910
|
-
formState:
|
|
298
|
+
formState: _tmagic_form_schema.FormState;
|
|
911
299
|
initialized: vue.Ref<boolean, boolean>;
|
|
912
300
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
913
301
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -919,13 +307,13 @@ declare const form$2: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
919
307
|
inline: boolean;
|
|
920
308
|
labelPosition: string;
|
|
921
309
|
config: FormConfig;
|
|
310
|
+
height: string;
|
|
922
311
|
initValues: Record<string, any>;
|
|
923
312
|
lastValues: Record<string, any>;
|
|
924
313
|
isCompare: boolean;
|
|
925
314
|
keyProp: string;
|
|
926
315
|
parentValues: Record<string, any>;
|
|
927
316
|
stepActive: string | number;
|
|
928
|
-
height: string;
|
|
929
317
|
}> | undefined>;
|
|
930
318
|
declare const dialogVisible: vue.Ref<boolean, boolean>;
|
|
931
319
|
declare const saveFetch$2: vue.Ref<boolean, boolean>;
|
|
@@ -1001,7 +389,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1001
389
|
keyProp?: string;
|
|
1002
390
|
popperClass?: string;
|
|
1003
391
|
preventSubmitDefault?: boolean;
|
|
1004
|
-
extendState?: (_state:
|
|
392
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1005
393
|
}> & Readonly<{
|
|
1006
394
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1007
395
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1011,7 +399,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1011
399
|
}>, {
|
|
1012
400
|
values: vue.Ref<FormValue, FormValue>;
|
|
1013
401
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1014
|
-
formState:
|
|
402
|
+
formState: _tmagic_form_schema.FormState;
|
|
1015
403
|
initialized: vue.Ref<boolean, boolean>;
|
|
1016
404
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1017
405
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1029,13 +417,13 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1029
417
|
inline: boolean;
|
|
1030
418
|
labelPosition: string;
|
|
1031
419
|
config: FormConfig;
|
|
420
|
+
height: string;
|
|
1032
421
|
initValues: Record<string, any>;
|
|
1033
422
|
lastValues: Record<string, any>;
|
|
1034
423
|
isCompare: boolean;
|
|
1035
424
|
keyProp: string;
|
|
1036
425
|
parentValues: Record<string, any>;
|
|
1037
426
|
stepActive: string | number;
|
|
1038
|
-
height: string;
|
|
1039
427
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1040
428
|
P: {};
|
|
1041
429
|
B: {};
|
|
@@ -1059,7 +447,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1059
447
|
keyProp?: string;
|
|
1060
448
|
popperClass?: string;
|
|
1061
449
|
preventSubmitDefault?: boolean;
|
|
1062
|
-
extendState?: (_state:
|
|
450
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1063
451
|
}> & Readonly<{
|
|
1064
452
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1065
453
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1069,7 +457,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1069
457
|
}>, {
|
|
1070
458
|
values: vue.Ref<FormValue, FormValue>;
|
|
1071
459
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1072
|
-
formState:
|
|
460
|
+
formState: _tmagic_form_schema.FormState;
|
|
1073
461
|
initialized: vue.Ref<boolean, boolean>;
|
|
1074
462
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1075
463
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1081,13 +469,13 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1081
469
|
inline: boolean;
|
|
1082
470
|
labelPosition: string;
|
|
1083
471
|
config: FormConfig;
|
|
472
|
+
height: string;
|
|
1084
473
|
initValues: Record<string, any>;
|
|
1085
474
|
lastValues: Record<string, any>;
|
|
1086
475
|
isCompare: boolean;
|
|
1087
476
|
keyProp: string;
|
|
1088
477
|
parentValues: Record<string, any>;
|
|
1089
478
|
stepActive: string | number;
|
|
1090
|
-
height: string;
|
|
1091
479
|
}> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1092
480
|
config: FormConfig;
|
|
1093
481
|
initValues: Record<string, any>;
|
|
@@ -1104,7 +492,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1104
492
|
keyProp?: string;
|
|
1105
493
|
popperClass?: string;
|
|
1106
494
|
preventSubmitDefault?: boolean;
|
|
1107
|
-
extendState?: (_state:
|
|
495
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1108
496
|
}> & Readonly<{
|
|
1109
497
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1110
498
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1114,7 +502,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1114
502
|
}>, {
|
|
1115
503
|
values: vue.Ref<FormValue, FormValue>;
|
|
1116
504
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1117
|
-
formState:
|
|
505
|
+
formState: _tmagic_form_schema.FormState;
|
|
1118
506
|
initialized: vue.Ref<boolean, boolean>;
|
|
1119
507
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1120
508
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1132,13 +520,13 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1132
520
|
inline: boolean;
|
|
1133
521
|
labelPosition: string;
|
|
1134
522
|
config: FormConfig;
|
|
523
|
+
height: string;
|
|
1135
524
|
initValues: Record<string, any>;
|
|
1136
525
|
lastValues: Record<string, any>;
|
|
1137
526
|
isCompare: boolean;
|
|
1138
527
|
keyProp: string;
|
|
1139
528
|
parentValues: Record<string, any>;
|
|
1140
529
|
stepActive: string | number;
|
|
1141
|
-
height: string;
|
|
1142
530
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1143
531
|
P: {};
|
|
1144
532
|
B: {};
|
|
@@ -1162,7 +550,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1162
550
|
keyProp?: string;
|
|
1163
551
|
popperClass?: string;
|
|
1164
552
|
preventSubmitDefault?: boolean;
|
|
1165
|
-
extendState?: (_state:
|
|
553
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1166
554
|
}> & Readonly<{
|
|
1167
555
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1168
556
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1172,7 +560,7 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1172
560
|
}>, {
|
|
1173
561
|
values: vue.Ref<FormValue, FormValue>;
|
|
1174
562
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1175
|
-
formState:
|
|
563
|
+
formState: _tmagic_form_schema.FormState;
|
|
1176
564
|
initialized: vue.Ref<boolean, boolean>;
|
|
1177
565
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1178
566
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1184,13 +572,13 @@ declare const __VLS_component$4: vue.DefineComponent<__VLS_Props$t, {
|
|
|
1184
572
|
inline: boolean;
|
|
1185
573
|
labelPosition: string;
|
|
1186
574
|
config: FormConfig;
|
|
575
|
+
height: string;
|
|
1187
576
|
initValues: Record<string, any>;
|
|
1188
577
|
lastValues: Record<string, any>;
|
|
1189
578
|
isCompare: boolean;
|
|
1190
579
|
keyProp: string;
|
|
1191
580
|
parentValues: Record<string, any>;
|
|
1192
581
|
stepActive: string | number;
|
|
1193
|
-
height: string;
|
|
1194
582
|
}> | undefined>;
|
|
1195
583
|
saveFetch: vue.Ref<boolean, boolean>;
|
|
1196
584
|
dialogVisible: vue.Ref<boolean, boolean>;
|
|
@@ -1418,7 +806,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1418
806
|
keyProp?: string;
|
|
1419
807
|
popperClass?: string;
|
|
1420
808
|
preventSubmitDefault?: boolean;
|
|
1421
|
-
extendState?: (_state:
|
|
809
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1422
810
|
}> & Readonly<{
|
|
1423
811
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1424
812
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1428,7 +816,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1428
816
|
}>, {
|
|
1429
817
|
values: vue.Ref<FormValue, FormValue>;
|
|
1430
818
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1431
|
-
formState:
|
|
819
|
+
formState: _tmagic_form_schema.FormState;
|
|
1432
820
|
initialized: vue.Ref<boolean, boolean>;
|
|
1433
821
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1434
822
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1446,13 +834,13 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1446
834
|
inline: boolean;
|
|
1447
835
|
labelPosition: string;
|
|
1448
836
|
config: FormConfig;
|
|
837
|
+
height: string;
|
|
1449
838
|
initValues: Record<string, any>;
|
|
1450
839
|
lastValues: Record<string, any>;
|
|
1451
840
|
isCompare: boolean;
|
|
1452
841
|
keyProp: string;
|
|
1453
842
|
parentValues: Record<string, any>;
|
|
1454
843
|
stepActive: string | number;
|
|
1455
|
-
height: string;
|
|
1456
844
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1457
845
|
P: {};
|
|
1458
846
|
B: {};
|
|
@@ -1476,7 +864,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1476
864
|
keyProp?: string;
|
|
1477
865
|
popperClass?: string;
|
|
1478
866
|
preventSubmitDefault?: boolean;
|
|
1479
|
-
extendState?: (_state:
|
|
867
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1480
868
|
}> & Readonly<{
|
|
1481
869
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1482
870
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1486,7 +874,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1486
874
|
}>, {
|
|
1487
875
|
values: vue.Ref<FormValue, FormValue>;
|
|
1488
876
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1489
|
-
formState:
|
|
877
|
+
formState: _tmagic_form_schema.FormState;
|
|
1490
878
|
initialized: vue.Ref<boolean, boolean>;
|
|
1491
879
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1492
880
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1498,13 +886,13 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1498
886
|
inline: boolean;
|
|
1499
887
|
labelPosition: string;
|
|
1500
888
|
config: FormConfig;
|
|
889
|
+
height: string;
|
|
1501
890
|
initValues: Record<string, any>;
|
|
1502
891
|
lastValues: Record<string, any>;
|
|
1503
892
|
isCompare: boolean;
|
|
1504
893
|
keyProp: string;
|
|
1505
894
|
parentValues: Record<string, any>;
|
|
1506
895
|
stepActive: string | number;
|
|
1507
|
-
height: string;
|
|
1508
896
|
}> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1509
897
|
config: FormConfig;
|
|
1510
898
|
initValues: Record<string, any>;
|
|
@@ -1521,7 +909,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1521
909
|
keyProp?: string;
|
|
1522
910
|
popperClass?: string;
|
|
1523
911
|
preventSubmitDefault?: boolean;
|
|
1524
|
-
extendState?: (_state:
|
|
912
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1525
913
|
}> & Readonly<{
|
|
1526
914
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1527
915
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1531,7 +919,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1531
919
|
}>, {
|
|
1532
920
|
values: vue.Ref<FormValue, FormValue>;
|
|
1533
921
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1534
|
-
formState:
|
|
922
|
+
formState: _tmagic_form_schema.FormState;
|
|
1535
923
|
initialized: vue.Ref<boolean, boolean>;
|
|
1536
924
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1537
925
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1549,13 +937,13 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1549
937
|
inline: boolean;
|
|
1550
938
|
labelPosition: string;
|
|
1551
939
|
config: FormConfig;
|
|
940
|
+
height: string;
|
|
1552
941
|
initValues: Record<string, any>;
|
|
1553
942
|
lastValues: Record<string, any>;
|
|
1554
943
|
isCompare: boolean;
|
|
1555
944
|
keyProp: string;
|
|
1556
945
|
parentValues: Record<string, any>;
|
|
1557
946
|
stepActive: string | number;
|
|
1558
|
-
height: string;
|
|
1559
947
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1560
948
|
P: {};
|
|
1561
949
|
B: {};
|
|
@@ -1579,7 +967,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1579
967
|
keyProp?: string;
|
|
1580
968
|
popperClass?: string;
|
|
1581
969
|
preventSubmitDefault?: boolean;
|
|
1582
|
-
extendState?: (_state:
|
|
970
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1583
971
|
}> & Readonly<{
|
|
1584
972
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1585
973
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1589,7 +977,7 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1589
977
|
}>, {
|
|
1590
978
|
values: vue.Ref<FormValue, FormValue>;
|
|
1591
979
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1592
|
-
formState:
|
|
980
|
+
formState: _tmagic_form_schema.FormState;
|
|
1593
981
|
initialized: vue.Ref<boolean, boolean>;
|
|
1594
982
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1595
983
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1601,13 +989,13 @@ declare const form$1: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readon
|
|
|
1601
989
|
inline: boolean;
|
|
1602
990
|
labelPosition: string;
|
|
1603
991
|
config: FormConfig;
|
|
992
|
+
height: string;
|
|
1604
993
|
initValues: Record<string, any>;
|
|
1605
994
|
lastValues: Record<string, any>;
|
|
1606
995
|
isCompare: boolean;
|
|
1607
996
|
keyProp: string;
|
|
1608
997
|
parentValues: Record<string, any>;
|
|
1609
998
|
stepActive: string | number;
|
|
1610
|
-
height: string;
|
|
1611
999
|
}> | undefined>;
|
|
1612
1000
|
declare const drawerBody: vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
1613
1001
|
declare const visible: vue.Ref<boolean, boolean>;
|
|
@@ -1688,7 +1076,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1688
1076
|
keyProp?: string;
|
|
1689
1077
|
popperClass?: string;
|
|
1690
1078
|
preventSubmitDefault?: boolean;
|
|
1691
|
-
extendState?: (_state:
|
|
1079
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1692
1080
|
}> & Readonly<{
|
|
1693
1081
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1694
1082
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1698,7 +1086,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1698
1086
|
}>, {
|
|
1699
1087
|
values: vue.Ref<FormValue, FormValue>;
|
|
1700
1088
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1701
|
-
formState:
|
|
1089
|
+
formState: _tmagic_form_schema.FormState;
|
|
1702
1090
|
initialized: vue.Ref<boolean, boolean>;
|
|
1703
1091
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1704
1092
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1716,13 +1104,13 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1716
1104
|
inline: boolean;
|
|
1717
1105
|
labelPosition: string;
|
|
1718
1106
|
config: FormConfig;
|
|
1107
|
+
height: string;
|
|
1719
1108
|
initValues: Record<string, any>;
|
|
1720
1109
|
lastValues: Record<string, any>;
|
|
1721
1110
|
isCompare: boolean;
|
|
1722
1111
|
keyProp: string;
|
|
1723
1112
|
parentValues: Record<string, any>;
|
|
1724
1113
|
stepActive: string | number;
|
|
1725
|
-
height: string;
|
|
1726
1114
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1727
1115
|
P: {};
|
|
1728
1116
|
B: {};
|
|
@@ -1746,7 +1134,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1746
1134
|
keyProp?: string;
|
|
1747
1135
|
popperClass?: string;
|
|
1748
1136
|
preventSubmitDefault?: boolean;
|
|
1749
|
-
extendState?: (_state:
|
|
1137
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1750
1138
|
}> & Readonly<{
|
|
1751
1139
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1752
1140
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1756,7 +1144,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1756
1144
|
}>, {
|
|
1757
1145
|
values: vue.Ref<FormValue, FormValue>;
|
|
1758
1146
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1759
|
-
formState:
|
|
1147
|
+
formState: _tmagic_form_schema.FormState;
|
|
1760
1148
|
initialized: vue.Ref<boolean, boolean>;
|
|
1761
1149
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1762
1150
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1768,13 +1156,13 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1768
1156
|
inline: boolean;
|
|
1769
1157
|
labelPosition: string;
|
|
1770
1158
|
config: FormConfig;
|
|
1159
|
+
height: string;
|
|
1771
1160
|
initValues: Record<string, any>;
|
|
1772
1161
|
lastValues: Record<string, any>;
|
|
1773
1162
|
isCompare: boolean;
|
|
1774
1163
|
keyProp: string;
|
|
1775
1164
|
parentValues: Record<string, any>;
|
|
1776
1165
|
stepActive: string | number;
|
|
1777
|
-
height: string;
|
|
1778
1166
|
}> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1779
1167
|
config: FormConfig;
|
|
1780
1168
|
initValues: Record<string, any>;
|
|
@@ -1791,7 +1179,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1791
1179
|
keyProp?: string;
|
|
1792
1180
|
popperClass?: string;
|
|
1793
1181
|
preventSubmitDefault?: boolean;
|
|
1794
|
-
extendState?: (_state:
|
|
1182
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1795
1183
|
}> & Readonly<{
|
|
1796
1184
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1797
1185
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1801,7 +1189,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1801
1189
|
}>, {
|
|
1802
1190
|
values: vue.Ref<FormValue, FormValue>;
|
|
1803
1191
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1804
|
-
formState:
|
|
1192
|
+
formState: _tmagic_form_schema.FormState;
|
|
1805
1193
|
initialized: vue.Ref<boolean, boolean>;
|
|
1806
1194
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1807
1195
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1819,13 +1207,13 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1819
1207
|
inline: boolean;
|
|
1820
1208
|
labelPosition: string;
|
|
1821
1209
|
config: FormConfig;
|
|
1210
|
+
height: string;
|
|
1822
1211
|
initValues: Record<string, any>;
|
|
1823
1212
|
lastValues: Record<string, any>;
|
|
1824
1213
|
isCompare: boolean;
|
|
1825
1214
|
keyProp: string;
|
|
1826
1215
|
parentValues: Record<string, any>;
|
|
1827
1216
|
stepActive: string | number;
|
|
1828
|
-
height: string;
|
|
1829
1217
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1830
1218
|
P: {};
|
|
1831
1219
|
B: {};
|
|
@@ -1849,7 +1237,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1849
1237
|
keyProp?: string;
|
|
1850
1238
|
popperClass?: string;
|
|
1851
1239
|
preventSubmitDefault?: boolean;
|
|
1852
|
-
extendState?: (_state:
|
|
1240
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1853
1241
|
}> & Readonly<{
|
|
1854
1242
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1855
1243
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1859,7 +1247,7 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1859
1247
|
}>, {
|
|
1860
1248
|
values: vue.Ref<FormValue, FormValue>;
|
|
1861
1249
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1862
|
-
formState:
|
|
1250
|
+
formState: _tmagic_form_schema.FormState;
|
|
1863
1251
|
initialized: vue.Ref<boolean, boolean>;
|
|
1864
1252
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1865
1253
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1871,13 +1259,13 @@ declare const __VLS_component$3: vue.DefineComponent<__VLS_Props$s, {
|
|
|
1871
1259
|
inline: boolean;
|
|
1872
1260
|
labelPosition: string;
|
|
1873
1261
|
config: FormConfig;
|
|
1262
|
+
height: string;
|
|
1874
1263
|
initValues: Record<string, any>;
|
|
1875
1264
|
lastValues: Record<string, any>;
|
|
1876
1265
|
isCompare: boolean;
|
|
1877
1266
|
keyProp: string;
|
|
1878
1267
|
parentValues: Record<string, any>;
|
|
1879
1268
|
stepActive: string | number;
|
|
1880
|
-
height: string;
|
|
1881
1269
|
}> | undefined>;
|
|
1882
1270
|
saveFetch: vue.Ref<boolean, boolean>;
|
|
1883
1271
|
bodyHeight: vue.Ref<number, number>;
|
|
@@ -1949,7 +1337,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
1949
1337
|
keyProp?: string;
|
|
1950
1338
|
popperClass?: string;
|
|
1951
1339
|
preventSubmitDefault?: boolean;
|
|
1952
|
-
extendState?: (_state:
|
|
1340
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
1953
1341
|
}> & Readonly<{
|
|
1954
1342
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
1955
1343
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -1959,7 +1347,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
1959
1347
|
}>, {
|
|
1960
1348
|
values: vue.Ref<FormValue, FormValue>;
|
|
1961
1349
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
1962
|
-
formState:
|
|
1350
|
+
formState: _tmagic_form_schema.FormState;
|
|
1963
1351
|
initialized: vue.Ref<boolean, boolean>;
|
|
1964
1352
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
1965
1353
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -1977,13 +1365,13 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
1977
1365
|
inline: boolean;
|
|
1978
1366
|
labelPosition: string;
|
|
1979
1367
|
config: FormConfig;
|
|
1368
|
+
height: string;
|
|
1980
1369
|
initValues: Record<string, any>;
|
|
1981
1370
|
lastValues: Record<string, any>;
|
|
1982
1371
|
isCompare: boolean;
|
|
1983
1372
|
keyProp: string;
|
|
1984
1373
|
parentValues: Record<string, any>;
|
|
1985
1374
|
stepActive: string | number;
|
|
1986
|
-
height: string;
|
|
1987
1375
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
1988
1376
|
P: {};
|
|
1989
1377
|
B: {};
|
|
@@ -2007,7 +1395,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2007
1395
|
keyProp?: string;
|
|
2008
1396
|
popperClass?: string;
|
|
2009
1397
|
preventSubmitDefault?: boolean;
|
|
2010
|
-
extendState?: (_state:
|
|
1398
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2011
1399
|
}> & Readonly<{
|
|
2012
1400
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2013
1401
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2017,7 +1405,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2017
1405
|
}>, {
|
|
2018
1406
|
values: vue.Ref<FormValue, FormValue>;
|
|
2019
1407
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2020
|
-
formState:
|
|
1408
|
+
formState: _tmagic_form_schema.FormState;
|
|
2021
1409
|
initialized: vue.Ref<boolean, boolean>;
|
|
2022
1410
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2023
1411
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2029,13 +1417,13 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2029
1417
|
inline: boolean;
|
|
2030
1418
|
labelPosition: string;
|
|
2031
1419
|
config: FormConfig;
|
|
1420
|
+
height: string;
|
|
2032
1421
|
initValues: Record<string, any>;
|
|
2033
1422
|
lastValues: Record<string, any>;
|
|
2034
1423
|
isCompare: boolean;
|
|
2035
1424
|
keyProp: string;
|
|
2036
1425
|
parentValues: Record<string, any>;
|
|
2037
1426
|
stepActive: string | number;
|
|
2038
|
-
height: string;
|
|
2039
1427
|
}> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2040
1428
|
config: FormConfig;
|
|
2041
1429
|
initValues: Record<string, any>;
|
|
@@ -2052,7 +1440,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2052
1440
|
keyProp?: string;
|
|
2053
1441
|
popperClass?: string;
|
|
2054
1442
|
preventSubmitDefault?: boolean;
|
|
2055
|
-
extendState?: (_state:
|
|
1443
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2056
1444
|
}> & Readonly<{
|
|
2057
1445
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2058
1446
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2062,7 +1450,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2062
1450
|
}>, {
|
|
2063
1451
|
values: vue.Ref<FormValue, FormValue>;
|
|
2064
1452
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2065
|
-
formState:
|
|
1453
|
+
formState: _tmagic_form_schema.FormState;
|
|
2066
1454
|
initialized: vue.Ref<boolean, boolean>;
|
|
2067
1455
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2068
1456
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2080,13 +1468,13 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2080
1468
|
inline: boolean;
|
|
2081
1469
|
labelPosition: string;
|
|
2082
1470
|
config: FormConfig;
|
|
1471
|
+
height: string;
|
|
2083
1472
|
initValues: Record<string, any>;
|
|
2084
1473
|
lastValues: Record<string, any>;
|
|
2085
1474
|
isCompare: boolean;
|
|
2086
1475
|
keyProp: string;
|
|
2087
1476
|
parentValues: Record<string, any>;
|
|
2088
1477
|
stepActive: string | number;
|
|
2089
|
-
height: string;
|
|
2090
1478
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
2091
1479
|
P: {};
|
|
2092
1480
|
B: {};
|
|
@@ -2110,7 +1498,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2110
1498
|
keyProp?: string;
|
|
2111
1499
|
popperClass?: string;
|
|
2112
1500
|
preventSubmitDefault?: boolean;
|
|
2113
|
-
extendState?: (_state:
|
|
1501
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2114
1502
|
}> & Readonly<{
|
|
2115
1503
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2116
1504
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2120,7 +1508,7 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2120
1508
|
}>, {
|
|
2121
1509
|
values: vue.Ref<FormValue, FormValue>;
|
|
2122
1510
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2123
|
-
formState:
|
|
1511
|
+
formState: _tmagic_form_schema.FormState;
|
|
2124
1512
|
initialized: vue.Ref<boolean, boolean>;
|
|
2125
1513
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2126
1514
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2132,13 +1520,13 @@ declare const form: vue.Ref<vue.CreateComponentPublicInstanceWithMixins<Readonly
|
|
|
2132
1520
|
inline: boolean;
|
|
2133
1521
|
labelPosition: string;
|
|
2134
1522
|
config: FormConfig;
|
|
1523
|
+
height: string;
|
|
2135
1524
|
initValues: Record<string, any>;
|
|
2136
1525
|
lastValues: Record<string, any>;
|
|
2137
1526
|
isCompare: boolean;
|
|
2138
1527
|
keyProp: string;
|
|
2139
1528
|
parentValues: Record<string, any>;
|
|
2140
1529
|
stepActive: string | number;
|
|
2141
|
-
height: string;
|
|
2142
1530
|
}> | undefined>;
|
|
2143
1531
|
declare const saveFetch: vue.Ref<boolean, boolean>;
|
|
2144
1532
|
declare const bodyHeight: vue.Ref<number, number>;
|
|
@@ -2196,7 +1584,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2196
1584
|
keyProp?: string;
|
|
2197
1585
|
popperClass?: string;
|
|
2198
1586
|
preventSubmitDefault?: boolean;
|
|
2199
|
-
extendState?: (_state:
|
|
1587
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2200
1588
|
}> & Readonly<{
|
|
2201
1589
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2202
1590
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2206,7 +1594,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2206
1594
|
}>, {
|
|
2207
1595
|
values: vue.Ref<FormValue, FormValue>;
|
|
2208
1596
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2209
|
-
formState:
|
|
1597
|
+
formState: _tmagic_form_schema.FormState;
|
|
2210
1598
|
initialized: vue.Ref<boolean, boolean>;
|
|
2211
1599
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2212
1600
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2224,13 +1612,13 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2224
1612
|
inline: boolean;
|
|
2225
1613
|
labelPosition: string;
|
|
2226
1614
|
config: FormConfig;
|
|
1615
|
+
height: string;
|
|
2227
1616
|
initValues: Record<string, any>;
|
|
2228
1617
|
lastValues: Record<string, any>;
|
|
2229
1618
|
isCompare: boolean;
|
|
2230
1619
|
keyProp: string;
|
|
2231
1620
|
parentValues: Record<string, any>;
|
|
2232
1621
|
stepActive: string | number;
|
|
2233
|
-
height: string;
|
|
2234
1622
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
2235
1623
|
P: {};
|
|
2236
1624
|
B: {};
|
|
@@ -2254,7 +1642,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2254
1642
|
keyProp?: string;
|
|
2255
1643
|
popperClass?: string;
|
|
2256
1644
|
preventSubmitDefault?: boolean;
|
|
2257
|
-
extendState?: (_state:
|
|
1645
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2258
1646
|
}> & Readonly<{
|
|
2259
1647
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2260
1648
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2264,7 +1652,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2264
1652
|
}>, {
|
|
2265
1653
|
values: vue.Ref<FormValue, FormValue>;
|
|
2266
1654
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2267
|
-
formState:
|
|
1655
|
+
formState: _tmagic_form_schema.FormState;
|
|
2268
1656
|
initialized: vue.Ref<boolean, boolean>;
|
|
2269
1657
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2270
1658
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2276,13 +1664,13 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2276
1664
|
inline: boolean;
|
|
2277
1665
|
labelPosition: string;
|
|
2278
1666
|
config: FormConfig;
|
|
1667
|
+
height: string;
|
|
2279
1668
|
initValues: Record<string, any>;
|
|
2280
1669
|
lastValues: Record<string, any>;
|
|
2281
1670
|
isCompare: boolean;
|
|
2282
1671
|
keyProp: string;
|
|
2283
1672
|
parentValues: Record<string, any>;
|
|
2284
1673
|
stepActive: string | number;
|
|
2285
|
-
height: string;
|
|
2286
1674
|
}> | undefined, vue.CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
2287
1675
|
config: FormConfig;
|
|
2288
1676
|
initValues: Record<string, any>;
|
|
@@ -2299,7 +1687,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2299
1687
|
keyProp?: string;
|
|
2300
1688
|
popperClass?: string;
|
|
2301
1689
|
preventSubmitDefault?: boolean;
|
|
2302
|
-
extendState?: (_state:
|
|
1690
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2303
1691
|
}> & Readonly<{
|
|
2304
1692
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2305
1693
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2309,7 +1697,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2309
1697
|
}>, {
|
|
2310
1698
|
values: vue.Ref<FormValue, FormValue>;
|
|
2311
1699
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2312
|
-
formState:
|
|
1700
|
+
formState: _tmagic_form_schema.FormState;
|
|
2313
1701
|
initialized: vue.Ref<boolean, boolean>;
|
|
2314
1702
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2315
1703
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2327,13 +1715,13 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2327
1715
|
inline: boolean;
|
|
2328
1716
|
labelPosition: string;
|
|
2329
1717
|
config: FormConfig;
|
|
1718
|
+
height: string;
|
|
2330
1719
|
initValues: Record<string, any>;
|
|
2331
1720
|
lastValues: Record<string, any>;
|
|
2332
1721
|
isCompare: boolean;
|
|
2333
1722
|
keyProp: string;
|
|
2334
1723
|
parentValues: Record<string, any>;
|
|
2335
1724
|
stepActive: string | number;
|
|
2336
|
-
height: string;
|
|
2337
1725
|
}, false, {}, {}, vue.GlobalComponents, vue.GlobalDirectives, string, {}, any, vue.ComponentProvideOptions, {
|
|
2338
1726
|
P: {};
|
|
2339
1727
|
B: {};
|
|
@@ -2357,7 +1745,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2357
1745
|
keyProp?: string;
|
|
2358
1746
|
popperClass?: string;
|
|
2359
1747
|
preventSubmitDefault?: boolean;
|
|
2360
|
-
extendState?: (_state:
|
|
1748
|
+
extendState?: (_state: _tmagic_form_schema.FormState) => Record<string, any> | Promise<Record<string, any>>;
|
|
2361
1749
|
}> & Readonly<{
|
|
2362
1750
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
2363
1751
|
onError?: ((...args: any[]) => any) | undefined;
|
|
@@ -2367,7 +1755,7 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2367
1755
|
}>, {
|
|
2368
1756
|
values: vue.Ref<FormValue, FormValue>;
|
|
2369
1757
|
lastValuesProcessed: vue.Ref<FormValue, FormValue>;
|
|
2370
|
-
formState:
|
|
1758
|
+
formState: _tmagic_form_schema.FormState;
|
|
2371
1759
|
initialized: vue.Ref<boolean, boolean>;
|
|
2372
1760
|
changeRecords: vue.ShallowRef<_tmagic_editor.ChangeRecord[], _tmagic_editor.ChangeRecord[]>;
|
|
2373
1761
|
changeHandler: (v: FormValue, eventData: ContainerChangeEventData) => void;
|
|
@@ -2379,13 +1767,13 @@ declare const __VLS_component$2: vue.DefineComponent<__VLS_Props$r, {
|
|
|
2379
1767
|
inline: boolean;
|
|
2380
1768
|
labelPosition: string;
|
|
2381
1769
|
config: FormConfig;
|
|
1770
|
+
height: string;
|
|
2382
1771
|
initValues: Record<string, any>;
|
|
2383
1772
|
lastValues: Record<string, any>;
|
|
2384
1773
|
isCompare: boolean;
|
|
2385
1774
|
keyProp: string;
|
|
2386
1775
|
parentValues: Record<string, any>;
|
|
2387
1776
|
stepActive: string | number;
|
|
2388
|
-
height: string;
|
|
2389
1777
|
}> | undefined>;
|
|
2390
1778
|
saveFetch: vue.Ref<boolean, boolean>;
|
|
2391
1779
|
show: () => void;
|
|
@@ -2477,7 +1865,7 @@ type __VLS_Props$o = {
|
|
|
2477
1865
|
};
|
|
2478
1866
|
declare const mForm$1: FormState | undefined;
|
|
2479
1867
|
declare const expand: vue.Ref<boolean, boolean>;
|
|
2480
|
-
declare const items: vue.ComputedRef<
|
|
1868
|
+
declare const items: vue.ComputedRef<_tmagic_form_schema.FormConfig>;
|
|
2481
1869
|
declare const filter: (config: any) => any;
|
|
2482
1870
|
declare const changeHandler$1: (v: any, eventData: ContainerChangeEventData) => void;
|
|
2483
1871
|
declare const onAddDiffCount$1: () => void;
|
|
@@ -3089,4 +2477,4 @@ declare const _default: {
|
|
|
3089
2477
|
};
|
|
3090
2478
|
|
|
3091
2479
|
export { _default$2 as MCascader, _default$c as MCheckbox, _default$7 as MCheckboxGroup, _default$8 as MColorPicker, _default$r as MContainer, _default$f as MDate, _default$e as MDateTime, _default$a as MDaterange, _default$5 as MDisplay, _default$1 as MDynamicField, _default$q as MFieldset, _default$v as MForm, _default$s as MFormBox, _default$u as MFormDialog, _default$t as MFormDrawer, _default$l as MGroupList, _default$g as MHidden, _default$4 as MLink, _default$j as MNumber, _default$i as MNumberRange, _default$p as MPanel, _default$6 as MRadioGroup, _default$o as MRow, _default$3 as MSelect, _default$b as MSwitch, _default$m as MTable, _default$n as MTabs, _default$k as MText, _default$h as MTextarea, _default$d as MTime, _default$9 as MTimerange, createForm, createValues, datetimeFormatter, _default as default, display$1 as display, filterFunction, getRules, initValue, useAddField };
|
|
3092
|
-
export type {
|
|
2480
|
+
export type { ChangeRecord, ContainerChangeEventData, FormInstallOptions, ValidateError };
|