@tmagic/form 1.8.0-beta.1 → 1.8.0-beta.3

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/types/index.d.ts CHANGED
@@ -1,12 +1,38 @@
1
- import { FlexLayoutConfig, GroupListConfig, TableConfig } from "@tmagic/form-schema";
2
- import { App, AppContext, Component } from "vue";
1
+ import { App, AppContext, Component, InjectionKey } from "vue";
2
+ import { FlexLayoutConfig, FormItemConfig, GroupListConfig, TableConfig } from "@tmagic/form-schema";
3
3
  export * from "@tmagic/form-schema";
4
4
 
5
5
  //#region \0rolldown/runtime.js
6
6
  declare namespace schema_d_exports {
7
- export { ChangeRecord, ContainerChangeEventData, ValidateError };
7
+ export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, FormLabelSlotProps, FormSlots, ValidateError };
8
8
  }
9
9
  import * as import__tmagic_form_schema from "@tmagic/form-schema";
10
+ /**
11
+ * 对比模式相关配置,由 `MForm` 通过 `provide` 注入,
12
+ * 所有层级的 Container(含嵌套在 fieldset / panel 等容器组件内部的 Container)通过 `inject` 获取,
13
+ * 无需逐层透传 prop。
14
+ */
15
+ interface FormDiffConfig {
16
+ /**
17
+ * 自定义"是否展示对比内容"的判断函数(仅在对比模式下生效)。
18
+ *
19
+ * - 不传:使用默认逻辑 `!isEqual(curValue, lastValue)`;
20
+ * - 传函数:完全以函数返回值为准,返回 `true` 才展示前后两份对比内容。
21
+ */
22
+ showDiff?: (_data: {
23
+ curValue: any;
24
+ lastValue: any;
25
+ config: FormItemConfig;
26
+ }) => boolean;
27
+ /**
28
+ * 自定义「自接管对比」的字段类型(仅在对比模式下生效)。
29
+ *
30
+ * - 传数组:在内置类型基础上「追加」这些类型;
31
+ * - 传函数:入参为内置类型数组,返回值作为「最终」完整类型列表(可完全替换内置项)。
32
+ */
33
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
34
+ }
35
+ declare const FORM_DIFF_CONFIG_KEY: InjectionKey<FormDiffConfig>;
10
36
  interface ValidateError {
11
37
  message: string;
12
38
  field: string;
@@ -19,6 +45,23 @@ interface ContainerChangeEventData {
19
45
  modifyKey?: string;
20
46
  changeRecords?: ChangeRecord[];
21
47
  }
48
+ /** 自定义 label slot 的作用域参数 */
49
+ interface FormLabelSlotProps {
50
+ /** 当前表单项配置 */
51
+ config: FormItemConfig;
52
+ /** 经处理后的类型 */
53
+ type: string;
54
+ /** 经 filterFunction 处理后的 label 文案 */
55
+ text?: string;
56
+ /** 完整字段路径(包含父级前缀) */
57
+ prop: string;
58
+ /** 经 filterFunction 处理后的最终禁用状态 */
59
+ disabled?: boolean;
60
+ }
61
+ /** Form / Container 暴露的具名 slot 定义 */
62
+ interface FormSlots {
63
+ label(_props: FormLabelSlotProps): any;
64
+ }
22
65
  //#endregion
23
66
  //#region temp/packages/form/src/submitForm.d.ts
24
67
  /**
@@ -47,6 +90,11 @@ interface SubmitFormOptions {
47
90
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
48
91
  /** 透传给 Form.submitForm 的参数:是否直接返回原始响应式 values */
49
92
  native?: boolean;
93
+ /**
94
+ * 是否在 resolve 结果中携带 changeRecords(变更记录)。
95
+ * 开启后 resolve 的结果为 `{ values, changeRecords }`,否则仅 resolve values。
96
+ */
97
+ returnChangeRecords?: boolean;
50
98
  /**
51
99
  * 父级应用上下文,用于继承全局组件、指令、provide 等。
52
100
  * 通常通过 `app._context` 或 `getCurrentInstance()?.appContext` 获取。
@@ -55,6 +103,15 @@ interface SubmitFormOptions {
55
103
  /** 等待表单初始化的最长时间(毫秒),超时将以错误 reject。默认 10000ms */
56
104
  timeout?: number;
57
105
  }
106
+ /**
107
+ * 开启 `returnChangeRecords` 时 submitForm 的返回结果
108
+ */
109
+ interface SubmitFormResult {
110
+ /** 校验通过后的表单值 */
111
+ values: any;
112
+ /** 表单变更记录 */
113
+ changeRecords: ChangeRecord[];
114
+ }
58
115
  /**
59
116
  * 以命令式方式调用 Form.vue 完成一次表单校验/提交。
60
117
  *
@@ -75,6 +132,13 @@ interface SubmitFormOptions {
75
132
  * } catch (e) {
76
133
  * console.error(e);
77
134
  * }
135
+ *
136
+ * // 需要同时获取变更记录时:
137
+ * const { values, changeRecords } = await submitForm({
138
+ * config: [...],
139
+ * initValues: { name: 'foo' },
140
+ * returnChangeRecords: true,
141
+ * });
78
142
  * ```
79
143
  */
80
144
  declare const submitForm: (options: SubmitFormOptions) => Promise<any>;
@@ -104,6 +168,7 @@ declare const createObjectProp: (prop: string, key: string, name?: string | numb
104
168
  declare const useAddField: (prop?: string) => void;
105
169
  //#endregion
106
170
  //#region temp/packages/form/src/Form.vue.d.ts
171
+ type __VLS_Slots$5 = FormSlots;
107
172
  type __VLS_Props$30 = {
108
173
  /** 表单配置 */config: schema_d_exports.FormConfig; /** 表单值 */
109
174
  initValues: Record<string, any>; /** 需对比的值(开启对比模式时传入) */
@@ -121,8 +186,39 @@ type __VLS_Props$30 = {
121
186
  popperClass?: string;
122
187
  preventSubmitDefault?: boolean;
123
188
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
189
+ /**
190
+ * 自定义"是否展示对比内容"的判断函数(仅在 `isCompare === true` 时生效)。
191
+ *
192
+ * - 不传:使用默认逻辑 `!isEqual(curValue, lastValue)`;
193
+ * - 传函数:完全以函数返回值为准,返回 `true` 才展示前后两份对比内容。
194
+ *
195
+ * 通过 provide 下发给所有层级的 Container(含嵌套在容器组件内部的 Container),
196
+ * 调用方只需在 MForm 这一层传一次即可对整棵表单生效。
197
+ *
198
+ * 典型场景:某些字段语义上相等但结构不同(例如 `code-select` 字段中 `''` 与
199
+ * `{ hookType: 'code', hookData: [] }` 应视为相等),调用方在此处显式声明,
200
+ * 避免被 lodash `isEqual` 误判为差异。
201
+ */
202
+ showDiff?: (_data: {
203
+ curValue: any;
204
+ lastValue: any;
205
+ config: any;
206
+ }) => boolean;
207
+ /**
208
+ * 自定义「自接管对比」的字段类型(仅在对比模式下生效)。
209
+ *
210
+ * 自接管对比的字段不会渲染前后两份独立组件,而是只渲染一次并由字段组件内部展示前后差异
211
+ * (如 vs-code 使用 monaco diff 编辑器;event-select / code-select-col 等复合字段逐项展示差异)。
212
+ *
213
+ * 支持两种形式:
214
+ * - 传数组:在内置类型基础上「追加」这些类型;
215
+ * - 传函数:入参为内置类型数组,返回值作为「最终」完整列表(可完全替换内置项)。
216
+ *
217
+ * 通过 provide 下发,对整棵表单的所有层级 Container 生效,只需在 MForm 这一层传一次。
218
+ */
219
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
124
220
  };
125
- declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {
221
+ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Props$30, {
126
222
  values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
127
223
  lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
128
224
  formState: schema_d_exports.FormState;
@@ -158,7 +254,13 @@ declare const __VLS_export$30: import("@vue/runtime-core").DefineComponent<__VLS
158
254
  parentValues: Record<string, any>;
159
255
  stepActive: string | number;
160
256
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
257
+ declare const __VLS_export$30: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
161
258
  declare const _default$12: typeof __VLS_export$30;
259
+ type __VLS_WithSlots$5<T, S> = T & {
260
+ new (): {
261
+ $slots: S;
262
+ };
263
+ };
162
264
  //#endregion
163
265
  //#region temp/packages/form/src/FormDialog.vue.d.ts
164
266
  type __VLS_Props$29 = {
@@ -184,54 +286,137 @@ type __VLS_Props$29 = {
184
286
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
185
287
  };
186
288
  declare var __VLS_19: {}, __VLS_34: {}, __VLS_42: {};
187
- type __VLS_Slots$3 = {} & {
289
+ type __VLS_Slots$4 = {} & {
188
290
  default?: (props: typeof __VLS_19) => any;
189
291
  } & {
190
292
  left?: (props: typeof __VLS_34) => any;
191
293
  } & {
192
294
  footer?: (props: typeof __VLS_42) => any;
193
295
  };
194
- declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {
195
- form: import("@vue/reactivity").Ref<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
196
- config: schema_d_exports.FormConfig;
197
- initValues: Record<string, any>;
198
- lastValues?: Record<string, any>;
199
- isCompare?: boolean;
200
- parentValues?: Record<string, any>;
201
- labelWidth?: string;
202
- disabled?: boolean;
203
- height?: string;
204
- stepActive?: string | number;
205
- size?: "small" | "default" | "large";
206
- inline?: boolean;
207
- labelPosition?: string;
208
- keyProp?: string;
209
- popperClass?: string;
210
- preventSubmitDefault?: boolean;
211
- extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
212
- }> & Readonly<{
213
- onError?: ((...args: any[]) => any) | undefined;
214
- onChange?: ((...args: any[]) => any) | undefined;
215
- "onField-input"?: ((...args: any[]) => any) | undefined;
216
- "onField-change"?: ((...args: any[]) => any) | undefined;
217
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
218
- }>, {
219
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
220
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
221
- formState: schema_d_exports.FormState;
222
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
223
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
224
- changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
225
- resetForm: () => void;
226
- submitForm: (native?: boolean) => Promise<any>;
227
- getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
228
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
229
- error: (...args: any[]) => void;
230
- change: (...args: any[]) => void;
231
- "field-input": (...args: any[]) => void;
232
- "field-change": (...args: any[]) => void;
233
- "update:stepActive": (...args: any[]) => void;
234
- }, import("@vue/runtime-core").PublicProps, {
296
+ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Props$29, {
297
+ form: import("@vue/reactivity").Ref<({
298
+ $: import("@vue/runtime-core").ComponentInternalInstance;
299
+ $data: {};
300
+ $props: {
301
+ readonly config: schema_d_exports.FormConfig;
302
+ readonly initValues: Record<string, any>;
303
+ readonly lastValues?: Record<string, any> | undefined;
304
+ readonly isCompare?: boolean | undefined;
305
+ readonly parentValues?: Record<string, any> | undefined;
306
+ readonly labelWidth?: string | undefined;
307
+ readonly disabled?: boolean | undefined;
308
+ readonly height?: string | undefined;
309
+ readonly stepActive?: string | number | undefined;
310
+ readonly size?: "small" | "default" | "large" | undefined;
311
+ readonly inline?: boolean | undefined;
312
+ readonly labelPosition?: string | undefined;
313
+ readonly keyProp?: string | undefined;
314
+ readonly popperClass?: string | undefined;
315
+ readonly preventSubmitDefault?: boolean | undefined;
316
+ readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
317
+ readonly showDiff?: ((_data: {
318
+ curValue: any;
319
+ lastValue: any;
320
+ config: any;
321
+ }) => boolean) | undefined;
322
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
323
+ readonly onError?: ((...args: any[]) => any) | undefined;
324
+ readonly onChange?: ((...args: any[]) => any) | undefined;
325
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
326
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
327
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
328
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
329
+ $attrs: import("@vue/runtime-core").Attrs;
330
+ $refs: {
331
+ [x: string]: unknown;
332
+ };
333
+ $slots: Readonly<{
334
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
335
+ }>;
336
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
337
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
338
+ $host: Element | null;
339
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
340
+ $el: any;
341
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
342
+ config: schema_d_exports.FormConfig;
343
+ initValues: Record<string, any>;
344
+ lastValues?: Record<string, any>;
345
+ isCompare?: boolean;
346
+ parentValues?: Record<string, any>;
347
+ labelWidth?: string;
348
+ disabled?: boolean;
349
+ height?: string;
350
+ stepActive?: string | number;
351
+ size?: "small" | "default" | "large";
352
+ inline?: boolean;
353
+ labelPosition?: string;
354
+ keyProp?: string;
355
+ popperClass?: string;
356
+ preventSubmitDefault?: boolean;
357
+ extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
358
+ showDiff?: (_data: {
359
+ curValue: any;
360
+ lastValue: any;
361
+ config: any;
362
+ }) => boolean;
363
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
364
+ }> & Readonly<{
365
+ onError?: ((...args: any[]) => any) | undefined;
366
+ onChange?: ((...args: any[]) => any) | undefined;
367
+ "onField-input"?: ((...args: any[]) => any) | undefined;
368
+ "onField-change"?: ((...args: any[]) => any) | undefined;
369
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
370
+ }>, {
371
+ values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
372
+ lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
373
+ formState: schema_d_exports.FormState;
374
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
375
+ changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
376
+ changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
377
+ resetForm: () => void;
378
+ submitForm: (native?: boolean) => Promise<any>;
379
+ getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
380
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
381
+ error: (...args: any[]) => void;
382
+ change: (...args: any[]) => void;
383
+ "field-input": (...args: any[]) => void;
384
+ "field-change": (...args: any[]) => void;
385
+ "update:stepActive": (...args: any[]) => void;
386
+ }, string, {
387
+ disabled: boolean;
388
+ labelWidth: string;
389
+ inline: boolean;
390
+ labelPosition: string;
391
+ config: schema_d_exports.FormConfig;
392
+ height: string;
393
+ initValues: Record<string, any>;
394
+ lastValues: Record<string, any>;
395
+ isCompare: boolean;
396
+ keyProp: string;
397
+ parentValues: Record<string, any>;
398
+ stepActive: string | number;
399
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
400
+ beforeCreate?: (() => void) | (() => void)[];
401
+ created?: (() => void) | (() => void)[];
402
+ beforeMount?: (() => void) | (() => void)[];
403
+ mounted?: (() => void) | (() => void)[];
404
+ beforeUpdate?: (() => void) | (() => void)[];
405
+ updated?: (() => void) | (() => void)[];
406
+ activated?: (() => void) | (() => void)[];
407
+ deactivated?: (() => void) | (() => void)[];
408
+ beforeDestroy?: (() => void) | (() => void)[];
409
+ beforeUnmount?: (() => void) | (() => void)[];
410
+ destroyed?: (() => void) | (() => void)[];
411
+ unmounted?: (() => void) | (() => void)[];
412
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
413
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
414
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
415
+ };
416
+ $forceUpdate: () => void;
417
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
418
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
419
+ } & Readonly<{
235
420
  disabled: boolean;
236
421
  labelWidth: string;
237
422
  inline: boolean;
@@ -244,14 +429,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
244
429
  keyProp: string;
245
430
  parentValues: Record<string, any>;
246
431
  stepActive: string | number;
247
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
248
- P: {};
249
- B: {};
250
- D: {};
251
- C: {};
252
- M: {};
253
- Defaults: {};
254
- }, Readonly<{
432
+ }> & Omit<Readonly<{
255
433
  config: schema_d_exports.FormConfig;
256
434
  initValues: Record<string, any>;
257
435
  lastValues?: Record<string, any>;
@@ -268,23 +446,153 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
268
446
  popperClass?: string;
269
447
  preventSubmitDefault?: boolean;
270
448
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
449
+ showDiff?: (_data: {
450
+ curValue: any;
451
+ lastValue: any;
452
+ config: any;
453
+ }) => boolean;
454
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
271
455
  }> & Readonly<{
272
456
  onError?: ((...args: any[]) => any) | undefined;
273
457
  onChange?: ((...args: any[]) => any) | undefined;
274
458
  "onField-input"?: ((...args: any[]) => any) | undefined;
275
459
  "onField-change"?: ((...args: any[]) => any) | undefined;
276
460
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
277
- }>, {
278
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
279
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
461
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
462
+ values: schema_d_exports.FormValue;
463
+ lastValuesProcessed: schema_d_exports.FormValue;
280
464
  formState: schema_d_exports.FormState;
281
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
282
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
465
+ initialized: boolean;
466
+ changeRecords: import("@tmagic/editor").ChangeRecord[];
283
467
  changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
284
468
  resetForm: () => void;
285
469
  submitForm: (native?: boolean) => Promise<any>;
286
470
  getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
287
- }, {}, {}, {}, {
471
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
472
+ $slots: import("@tmagic/editor").FormSlots;
473
+ }) | undefined, ({
474
+ $: import("@vue/runtime-core").ComponentInternalInstance;
475
+ $data: {};
476
+ $props: {
477
+ readonly config: schema_d_exports.FormConfig;
478
+ readonly initValues: Record<string, any>;
479
+ readonly lastValues?: Record<string, any> | undefined;
480
+ readonly isCompare?: boolean | undefined;
481
+ readonly parentValues?: Record<string, any> | undefined;
482
+ readonly labelWidth?: string | undefined;
483
+ readonly disabled?: boolean | undefined;
484
+ readonly height?: string | undefined;
485
+ readonly stepActive?: string | number | undefined;
486
+ readonly size?: "small" | "default" | "large" | undefined;
487
+ readonly inline?: boolean | undefined;
488
+ readonly labelPosition?: string | undefined;
489
+ readonly keyProp?: string | undefined;
490
+ readonly popperClass?: string | undefined;
491
+ readonly preventSubmitDefault?: boolean | undefined;
492
+ readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
493
+ readonly showDiff?: ((_data: {
494
+ curValue: any;
495
+ lastValue: any;
496
+ config: any;
497
+ }) => boolean) | undefined;
498
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
499
+ readonly onError?: ((...args: any[]) => any) | undefined;
500
+ readonly onChange?: ((...args: any[]) => any) | undefined;
501
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
502
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
503
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
504
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
505
+ $attrs: import("@vue/runtime-core").Attrs;
506
+ $refs: {
507
+ [x: string]: unknown;
508
+ };
509
+ $slots: Readonly<{
510
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
511
+ }>;
512
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
513
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
514
+ $host: Element | null;
515
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
516
+ $el: any;
517
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
518
+ config: schema_d_exports.FormConfig;
519
+ initValues: Record<string, any>;
520
+ lastValues?: Record<string, any>;
521
+ isCompare?: boolean;
522
+ parentValues?: Record<string, any>;
523
+ labelWidth?: string;
524
+ disabled?: boolean;
525
+ height?: string;
526
+ stepActive?: string | number;
527
+ size?: "small" | "default" | "large";
528
+ inline?: boolean;
529
+ labelPosition?: string;
530
+ keyProp?: string;
531
+ popperClass?: string;
532
+ preventSubmitDefault?: boolean;
533
+ extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
534
+ showDiff?: (_data: {
535
+ curValue: any;
536
+ lastValue: any;
537
+ config: any;
538
+ }) => boolean;
539
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
540
+ }> & Readonly<{
541
+ onError?: ((...args: any[]) => any) | undefined;
542
+ onChange?: ((...args: any[]) => any) | undefined;
543
+ "onField-input"?: ((...args: any[]) => any) | undefined;
544
+ "onField-change"?: ((...args: any[]) => any) | undefined;
545
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
546
+ }>, {
547
+ values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
548
+ lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
549
+ formState: schema_d_exports.FormState;
550
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
551
+ changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
552
+ changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
553
+ resetForm: () => void;
554
+ submitForm: (native?: boolean) => Promise<any>;
555
+ getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
556
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
557
+ error: (...args: any[]) => void;
558
+ change: (...args: any[]) => void;
559
+ "field-input": (...args: any[]) => void;
560
+ "field-change": (...args: any[]) => void;
561
+ "update:stepActive": (...args: any[]) => void;
562
+ }, string, {
563
+ disabled: boolean;
564
+ labelWidth: string;
565
+ inline: boolean;
566
+ labelPosition: string;
567
+ config: schema_d_exports.FormConfig;
568
+ height: string;
569
+ initValues: Record<string, any>;
570
+ lastValues: Record<string, any>;
571
+ isCompare: boolean;
572
+ keyProp: string;
573
+ parentValues: Record<string, any>;
574
+ stepActive: string | number;
575
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
576
+ beforeCreate?: (() => void) | (() => void)[];
577
+ created?: (() => void) | (() => void)[];
578
+ beforeMount?: (() => void) | (() => void)[];
579
+ mounted?: (() => void) | (() => void)[];
580
+ beforeUpdate?: (() => void) | (() => void)[];
581
+ updated?: (() => void) | (() => void)[];
582
+ activated?: (() => void) | (() => void)[];
583
+ deactivated?: (() => void) | (() => void)[];
584
+ beforeDestroy?: (() => void) | (() => void)[];
585
+ beforeUnmount?: (() => void) | (() => void)[];
586
+ destroyed?: (() => void) | (() => void)[];
587
+ unmounted?: (() => void) | (() => void)[];
588
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
589
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
590
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
591
+ };
592
+ $forceUpdate: () => void;
593
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
594
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
595
+ } & Readonly<{
288
596
  disabled: boolean;
289
597
  labelWidth: string;
290
598
  inline: boolean;
@@ -297,7 +605,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
297
605
  keyProp: string;
298
606
  parentValues: Record<string, any>;
299
607
  stepActive: string | number;
300
- }> | undefined, import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
608
+ }> & Omit<Readonly<{
301
609
  config: schema_d_exports.FormConfig;
302
610
  initValues: Record<string, any>;
303
611
  lastValues?: Record<string, any>;
@@ -314,95 +622,31 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
314
622
  popperClass?: string;
315
623
  preventSubmitDefault?: boolean;
316
624
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
625
+ showDiff?: (_data: {
626
+ curValue: any;
627
+ lastValue: any;
628
+ config: any;
629
+ }) => boolean;
630
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
317
631
  }> & Readonly<{
318
632
  onError?: ((...args: any[]) => any) | undefined;
319
633
  onChange?: ((...args: any[]) => any) | undefined;
320
634
  "onField-input"?: ((...args: any[]) => any) | undefined;
321
635
  "onField-change"?: ((...args: any[]) => any) | undefined;
322
636
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
323
- }>, {
324
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
325
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
637
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
638
+ values: schema_d_exports.FormValue;
639
+ lastValuesProcessed: schema_d_exports.FormValue;
326
640
  formState: schema_d_exports.FormState;
327
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
328
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
641
+ initialized: boolean;
642
+ changeRecords: import("@tmagic/editor").ChangeRecord[];
329
643
  changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
330
644
  resetForm: () => void;
331
645
  submitForm: (native?: boolean) => Promise<any>;
332
646
  getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
333
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
334
- error: (...args: any[]) => void;
335
- change: (...args: any[]) => void;
336
- "field-input": (...args: any[]) => void;
337
- "field-change": (...args: any[]) => void;
338
- "update:stepActive": (...args: any[]) => void;
339
- }, import("@vue/runtime-core").PublicProps, {
340
- disabled: boolean;
341
- labelWidth: string;
342
- inline: boolean;
343
- labelPosition: string;
344
- config: schema_d_exports.FormConfig;
345
- height: string;
346
- initValues: Record<string, any>;
347
- lastValues: Record<string, any>;
348
- isCompare: boolean;
349
- keyProp: string;
350
- parentValues: Record<string, any>;
351
- stepActive: string | number;
352
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
353
- P: {};
354
- B: {};
355
- D: {};
356
- C: {};
357
- M: {};
358
- Defaults: {};
359
- }, Readonly<{
360
- config: schema_d_exports.FormConfig;
361
- initValues: Record<string, any>;
362
- lastValues?: Record<string, any>;
363
- isCompare?: boolean;
364
- parentValues?: Record<string, any>;
365
- labelWidth?: string;
366
- disabled?: boolean;
367
- height?: string;
368
- stepActive?: string | number;
369
- size?: "small" | "default" | "large";
370
- inline?: boolean;
371
- labelPosition?: string;
372
- keyProp?: string;
373
- popperClass?: string;
374
- preventSubmitDefault?: boolean;
375
- extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
376
- }> & Readonly<{
377
- onError?: ((...args: any[]) => any) | undefined;
378
- onChange?: ((...args: any[]) => any) | undefined;
379
- "onField-input"?: ((...args: any[]) => any) | undefined;
380
- "onField-change"?: ((...args: any[]) => any) | undefined;
381
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
382
- }>, {
383
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
384
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
385
- formState: schema_d_exports.FormState;
386
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
387
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
388
- changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
389
- resetForm: () => void;
390
- submitForm: (native?: boolean) => Promise<any>;
391
- getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
392
- }, {}, {}, {}, {
393
- disabled: boolean;
394
- labelWidth: string;
395
- inline: boolean;
396
- labelPosition: string;
397
- config: schema_d_exports.FormConfig;
398
- height: string;
399
- initValues: Record<string, any>;
400
- lastValues: Record<string, any>;
401
- isCompare: boolean;
402
- keyProp: string;
403
- parentValues: Record<string, any>;
404
- stepActive: string | number;
405
- }> | undefined>;
647
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
648
+ $slots: import("@tmagic/editor").FormSlots;
649
+ }) | undefined>;
406
650
  saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
407
651
  dialogVisible: import("@vue/reactivity").Ref<boolean, boolean>;
408
652
  cancel: () => void;
@@ -429,9 +673,9 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
429
673
  confirmText: string;
430
674
  showCancel: boolean;
431
675
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
432
- declare const __VLS_export$29: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
676
+ declare const __VLS_export$29: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
433
677
  declare const _default$14: typeof __VLS_export$29;
434
- type __VLS_WithSlots$3<T, S> = T & {
678
+ type __VLS_WithSlots$4<T, S> = T & {
435
679
  new (): {
436
680
  $slots: S;
437
681
  };
@@ -457,54 +701,137 @@ type __VLS_Props$28 = {
457
701
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
458
702
  };
459
703
  declare var __VLS_23: {}, __VLS_38: {}, __VLS_46: {};
460
- type __VLS_Slots$2 = {} & {
704
+ type __VLS_Slots$3 = {} & {
461
705
  default?: (props: typeof __VLS_23) => any;
462
706
  } & {
463
707
  left?: (props: typeof __VLS_38) => any;
464
708
  } & {
465
709
  footer?: (props: typeof __VLS_46) => any;
466
710
  };
467
- declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Props$28, {
468
- form: import("@vue/reactivity").Ref<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
469
- config: schema_d_exports.FormConfig;
470
- initValues: Record<string, any>;
471
- lastValues?: Record<string, any>;
472
- isCompare?: boolean;
473
- parentValues?: Record<string, any>;
474
- labelWidth?: string;
475
- disabled?: boolean;
476
- height?: string;
477
- stepActive?: string | number;
478
- size?: "small" | "default" | "large";
479
- inline?: boolean;
480
- labelPosition?: string;
481
- keyProp?: string;
482
- popperClass?: string;
483
- preventSubmitDefault?: boolean;
484
- extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
485
- }> & Readonly<{
486
- onError?: ((...args: any[]) => any) | undefined;
487
- onChange?: ((...args: any[]) => any) | undefined;
488
- "onField-input"?: ((...args: any[]) => any) | undefined;
489
- "onField-change"?: ((...args: any[]) => any) | undefined;
490
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
491
- }>, {
492
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
493
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
494
- formState: schema_d_exports.FormState;
495
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
496
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
497
- changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
498
- resetForm: () => void;
499
- submitForm: (native?: boolean) => Promise<any>;
500
- getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
501
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
502
- error: (...args: any[]) => void;
503
- change: (...args: any[]) => void;
504
- "field-input": (...args: any[]) => void;
505
- "field-change": (...args: any[]) => void;
506
- "update:stepActive": (...args: any[]) => void;
507
- }, import("@vue/runtime-core").PublicProps, {
711
+ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Props$28, {
712
+ form: import("@vue/reactivity").Ref<({
713
+ $: import("@vue/runtime-core").ComponentInternalInstance;
714
+ $data: {};
715
+ $props: {
716
+ readonly config: schema_d_exports.FormConfig;
717
+ readonly initValues: Record<string, any>;
718
+ readonly lastValues?: Record<string, any> | undefined;
719
+ readonly isCompare?: boolean | undefined;
720
+ readonly parentValues?: Record<string, any> | undefined;
721
+ readonly labelWidth?: string | undefined;
722
+ readonly disabled?: boolean | undefined;
723
+ readonly height?: string | undefined;
724
+ readonly stepActive?: string | number | undefined;
725
+ readonly size?: "small" | "default" | "large" | undefined;
726
+ readonly inline?: boolean | undefined;
727
+ readonly labelPosition?: string | undefined;
728
+ readonly keyProp?: string | undefined;
729
+ readonly popperClass?: string | undefined;
730
+ readonly preventSubmitDefault?: boolean | undefined;
731
+ readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
732
+ readonly showDiff?: ((_data: {
733
+ curValue: any;
734
+ lastValue: any;
735
+ config: any;
736
+ }) => boolean) | undefined;
737
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
738
+ readonly onError?: ((...args: any[]) => any) | undefined;
739
+ readonly onChange?: ((...args: any[]) => any) | undefined;
740
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
741
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
742
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
743
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
744
+ $attrs: import("@vue/runtime-core").Attrs;
745
+ $refs: {
746
+ [x: string]: unknown;
747
+ };
748
+ $slots: Readonly<{
749
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
750
+ }>;
751
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
752
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
753
+ $host: Element | null;
754
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
755
+ $el: any;
756
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
757
+ config: schema_d_exports.FormConfig;
758
+ initValues: Record<string, any>;
759
+ lastValues?: Record<string, any>;
760
+ isCompare?: boolean;
761
+ parentValues?: Record<string, any>;
762
+ labelWidth?: string;
763
+ disabled?: boolean;
764
+ height?: string;
765
+ stepActive?: string | number;
766
+ size?: "small" | "default" | "large";
767
+ inline?: boolean;
768
+ labelPosition?: string;
769
+ keyProp?: string;
770
+ popperClass?: string;
771
+ preventSubmitDefault?: boolean;
772
+ extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
773
+ showDiff?: (_data: {
774
+ curValue: any;
775
+ lastValue: any;
776
+ config: any;
777
+ }) => boolean;
778
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
779
+ }> & Readonly<{
780
+ onError?: ((...args: any[]) => any) | undefined;
781
+ onChange?: ((...args: any[]) => any) | undefined;
782
+ "onField-input"?: ((...args: any[]) => any) | undefined;
783
+ "onField-change"?: ((...args: any[]) => any) | undefined;
784
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
785
+ }>, {
786
+ values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
787
+ lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
788
+ formState: schema_d_exports.FormState;
789
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
790
+ changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
791
+ changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
792
+ resetForm: () => void;
793
+ submitForm: (native?: boolean) => Promise<any>;
794
+ getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
795
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
796
+ error: (...args: any[]) => void;
797
+ change: (...args: any[]) => void;
798
+ "field-input": (...args: any[]) => void;
799
+ "field-change": (...args: any[]) => void;
800
+ "update:stepActive": (...args: any[]) => void;
801
+ }, string, {
802
+ disabled: boolean;
803
+ labelWidth: string;
804
+ inline: boolean;
805
+ labelPosition: string;
806
+ config: schema_d_exports.FormConfig;
807
+ height: string;
808
+ initValues: Record<string, any>;
809
+ lastValues: Record<string, any>;
810
+ isCompare: boolean;
811
+ keyProp: string;
812
+ parentValues: Record<string, any>;
813
+ stepActive: string | number;
814
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
815
+ beforeCreate?: (() => void) | (() => void)[];
816
+ created?: (() => void) | (() => void)[];
817
+ beforeMount?: (() => void) | (() => void)[];
818
+ mounted?: (() => void) | (() => void)[];
819
+ beforeUpdate?: (() => void) | (() => void)[];
820
+ updated?: (() => void) | (() => void)[];
821
+ activated?: (() => void) | (() => void)[];
822
+ deactivated?: (() => void) | (() => void)[];
823
+ beforeDestroy?: (() => void) | (() => void)[];
824
+ beforeUnmount?: (() => void) | (() => void)[];
825
+ destroyed?: (() => void) | (() => void)[];
826
+ unmounted?: (() => void) | (() => void)[];
827
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
828
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
829
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
830
+ };
831
+ $forceUpdate: () => void;
832
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
833
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
834
+ } & Readonly<{
508
835
  disabled: boolean;
509
836
  labelWidth: string;
510
837
  inline: boolean;
@@ -517,14 +844,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
517
844
  keyProp: string;
518
845
  parentValues: Record<string, any>;
519
846
  stepActive: string | number;
520
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
521
- P: {};
522
- B: {};
523
- D: {};
524
- C: {};
525
- M: {};
526
- Defaults: {};
527
- }, Readonly<{
847
+ }> & Omit<Readonly<{
528
848
  config: schema_d_exports.FormConfig;
529
849
  initValues: Record<string, any>;
530
850
  lastValues?: Record<string, any>;
@@ -541,23 +861,153 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
541
861
  popperClass?: string;
542
862
  preventSubmitDefault?: boolean;
543
863
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
864
+ showDiff?: (_data: {
865
+ curValue: any;
866
+ lastValue: any;
867
+ config: any;
868
+ }) => boolean;
869
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
544
870
  }> & Readonly<{
545
871
  onError?: ((...args: any[]) => any) | undefined;
546
872
  onChange?: ((...args: any[]) => any) | undefined;
547
873
  "onField-input"?: ((...args: any[]) => any) | undefined;
548
874
  "onField-change"?: ((...args: any[]) => any) | undefined;
549
875
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
550
- }>, {
551
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
552
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
876
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
877
+ values: schema_d_exports.FormValue;
878
+ lastValuesProcessed: schema_d_exports.FormValue;
553
879
  formState: schema_d_exports.FormState;
554
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
555
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
880
+ initialized: boolean;
881
+ changeRecords: import("@tmagic/editor").ChangeRecord[];
556
882
  changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
557
883
  resetForm: () => void;
558
884
  submitForm: (native?: boolean) => Promise<any>;
559
885
  getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
560
- }, {}, {}, {}, {
886
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
887
+ $slots: import("@tmagic/editor").FormSlots;
888
+ }) | undefined, ({
889
+ $: import("@vue/runtime-core").ComponentInternalInstance;
890
+ $data: {};
891
+ $props: {
892
+ readonly config: schema_d_exports.FormConfig;
893
+ readonly initValues: Record<string, any>;
894
+ readonly lastValues?: Record<string, any> | undefined;
895
+ readonly isCompare?: boolean | undefined;
896
+ readonly parentValues?: Record<string, any> | undefined;
897
+ readonly labelWidth?: string | undefined;
898
+ readonly disabled?: boolean | undefined;
899
+ readonly height?: string | undefined;
900
+ readonly stepActive?: string | number | undefined;
901
+ readonly size?: "small" | "default" | "large" | undefined;
902
+ readonly inline?: boolean | undefined;
903
+ readonly labelPosition?: string | undefined;
904
+ readonly keyProp?: string | undefined;
905
+ readonly popperClass?: string | undefined;
906
+ readonly preventSubmitDefault?: boolean | undefined;
907
+ readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
908
+ readonly showDiff?: ((_data: {
909
+ curValue: any;
910
+ lastValue: any;
911
+ config: any;
912
+ }) => boolean) | undefined;
913
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
914
+ readonly onError?: ((...args: any[]) => any) | undefined;
915
+ readonly onChange?: ((...args: any[]) => any) | undefined;
916
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
917
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
918
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
919
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
920
+ $attrs: import("@vue/runtime-core").Attrs;
921
+ $refs: {
922
+ [x: string]: unknown;
923
+ };
924
+ $slots: Readonly<{
925
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
926
+ }>;
927
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
928
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
929
+ $host: Element | null;
930
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
931
+ $el: any;
932
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
933
+ config: schema_d_exports.FormConfig;
934
+ initValues: Record<string, any>;
935
+ lastValues?: Record<string, any>;
936
+ isCompare?: boolean;
937
+ parentValues?: Record<string, any>;
938
+ labelWidth?: string;
939
+ disabled?: boolean;
940
+ height?: string;
941
+ stepActive?: string | number;
942
+ size?: "small" | "default" | "large";
943
+ inline?: boolean;
944
+ labelPosition?: string;
945
+ keyProp?: string;
946
+ popperClass?: string;
947
+ preventSubmitDefault?: boolean;
948
+ extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
949
+ showDiff?: (_data: {
950
+ curValue: any;
951
+ lastValue: any;
952
+ config: any;
953
+ }) => boolean;
954
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
955
+ }> & Readonly<{
956
+ onError?: ((...args: any[]) => any) | undefined;
957
+ onChange?: ((...args: any[]) => any) | undefined;
958
+ "onField-input"?: ((...args: any[]) => any) | undefined;
959
+ "onField-change"?: ((...args: any[]) => any) | undefined;
960
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
961
+ }>, {
962
+ values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
963
+ lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
964
+ formState: schema_d_exports.FormState;
965
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
966
+ changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
967
+ changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
968
+ resetForm: () => void;
969
+ submitForm: (native?: boolean) => Promise<any>;
970
+ getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
971
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
972
+ error: (...args: any[]) => void;
973
+ change: (...args: any[]) => void;
974
+ "field-input": (...args: any[]) => void;
975
+ "field-change": (...args: any[]) => void;
976
+ "update:stepActive": (...args: any[]) => void;
977
+ }, string, {
978
+ disabled: boolean;
979
+ labelWidth: string;
980
+ inline: boolean;
981
+ labelPosition: string;
982
+ config: schema_d_exports.FormConfig;
983
+ height: string;
984
+ initValues: Record<string, any>;
985
+ lastValues: Record<string, any>;
986
+ isCompare: boolean;
987
+ keyProp: string;
988
+ parentValues: Record<string, any>;
989
+ stepActive: string | number;
990
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
991
+ beforeCreate?: (() => void) | (() => void)[];
992
+ created?: (() => void) | (() => void)[];
993
+ beforeMount?: (() => void) | (() => void)[];
994
+ mounted?: (() => void) | (() => void)[];
995
+ beforeUpdate?: (() => void) | (() => void)[];
996
+ updated?: (() => void) | (() => void)[];
997
+ activated?: (() => void) | (() => void)[];
998
+ deactivated?: (() => void) | (() => void)[];
999
+ beforeDestroy?: (() => void) | (() => void)[];
1000
+ beforeUnmount?: (() => void) | (() => void)[];
1001
+ destroyed?: (() => void) | (() => void)[];
1002
+ unmounted?: (() => void) | (() => void)[];
1003
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
1004
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
1005
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
1006
+ };
1007
+ $forceUpdate: () => void;
1008
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
1009
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
1010
+ } & Readonly<{
561
1011
  disabled: boolean;
562
1012
  labelWidth: string;
563
1013
  inline: boolean;
@@ -570,7 +1020,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
570
1020
  keyProp: string;
571
1021
  parentValues: Record<string, any>;
572
1022
  stepActive: string | number;
573
- }> | undefined, import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
1023
+ }> & Omit<Readonly<{
574
1024
  config: schema_d_exports.FormConfig;
575
1025
  initValues: Record<string, any>;
576
1026
  lastValues?: Record<string, any>;
@@ -587,95 +1037,31 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
587
1037
  popperClass?: string;
588
1038
  preventSubmitDefault?: boolean;
589
1039
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
1040
+ showDiff?: (_data: {
1041
+ curValue: any;
1042
+ lastValue: any;
1043
+ config: any;
1044
+ }) => boolean;
1045
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
590
1046
  }> & Readonly<{
591
1047
  onError?: ((...args: any[]) => any) | undefined;
592
1048
  onChange?: ((...args: any[]) => any) | undefined;
593
1049
  "onField-input"?: ((...args: any[]) => any) | undefined;
594
1050
  "onField-change"?: ((...args: any[]) => any) | undefined;
595
1051
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
596
- }>, {
597
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
598
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1052
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
1053
+ values: schema_d_exports.FormValue;
1054
+ lastValuesProcessed: schema_d_exports.FormValue;
599
1055
  formState: schema_d_exports.FormState;
600
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
601
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
1056
+ initialized: boolean;
1057
+ changeRecords: import("@tmagic/editor").ChangeRecord[];
602
1058
  changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
603
1059
  resetForm: () => void;
604
1060
  submitForm: (native?: boolean) => Promise<any>;
605
1061
  getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
606
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
607
- error: (...args: any[]) => void;
608
- change: (...args: any[]) => void;
609
- "field-input": (...args: any[]) => void;
610
- "field-change": (...args: any[]) => void;
611
- "update:stepActive": (...args: any[]) => void;
612
- }, import("@vue/runtime-core").PublicProps, {
613
- disabled: boolean;
614
- labelWidth: string;
615
- inline: boolean;
616
- labelPosition: string;
617
- config: schema_d_exports.FormConfig;
618
- height: string;
619
- initValues: Record<string, any>;
620
- lastValues: Record<string, any>;
621
- isCompare: boolean;
622
- keyProp: string;
623
- parentValues: Record<string, any>;
624
- stepActive: string | number;
625
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
626
- P: {};
627
- B: {};
628
- D: {};
629
- C: {};
630
- M: {};
631
- Defaults: {};
632
- }, Readonly<{
633
- config: schema_d_exports.FormConfig;
634
- initValues: Record<string, any>;
635
- lastValues?: Record<string, any>;
636
- isCompare?: boolean;
637
- parentValues?: Record<string, any>;
638
- labelWidth?: string;
639
- disabled?: boolean;
640
- height?: string;
641
- stepActive?: string | number;
642
- size?: "small" | "default" | "large";
643
- inline?: boolean;
644
- labelPosition?: string;
645
- keyProp?: string;
646
- popperClass?: string;
647
- preventSubmitDefault?: boolean;
648
- extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
649
- }> & Readonly<{
650
- onError?: ((...args: any[]) => any) | undefined;
651
- onChange?: ((...args: any[]) => any) | undefined;
652
- "onField-input"?: ((...args: any[]) => any) | undefined;
653
- "onField-change"?: ((...args: any[]) => any) | undefined;
654
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
655
- }>, {
656
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
657
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
658
- formState: schema_d_exports.FormState;
659
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
660
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
661
- changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
662
- resetForm: () => void;
663
- submitForm: (native?: boolean) => Promise<any>;
664
- getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
665
- }, {}, {}, {}, {
666
- disabled: boolean;
667
- labelWidth: string;
668
- inline: boolean;
669
- labelPosition: string;
670
- config: schema_d_exports.FormConfig;
671
- height: string;
672
- initValues: Record<string, any>;
673
- lastValues: Record<string, any>;
674
- isCompare: boolean;
675
- keyProp: string;
676
- parentValues: Record<string, any>;
677
- stepActive: string | number;
678
- }> | undefined>;
1062
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
1063
+ $slots: import("@tmagic/editor").FormSlots;
1064
+ }) | undefined>;
679
1065
  saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
680
1066
  bodyHeight: import("@vue/reactivity").Ref<number, number>;
681
1067
  show: () => void;
@@ -703,9 +1089,9 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
703
1089
  config: schema_d_exports.FormConfig;
704
1090
  confirmText: string;
705
1091
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
706
- declare const __VLS_export$28: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
1092
+ declare const __VLS_export$28: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
707
1093
  declare const _default$15: typeof __VLS_export$28;
708
- type __VLS_WithSlots$2<T, S> = T & {
1094
+ type __VLS_WithSlots$3<T, S> = T & {
709
1095
  new (): {
710
1096
  $slots: S;
711
1097
  };
@@ -728,107 +1114,137 @@ type __VLS_Props$27 = {
728
1114
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
729
1115
  };
730
1116
  declare var __VLS_16$1: {}, __VLS_18$1: {}, __VLS_20: {};
731
- type __VLS_Slots$1 = {} & {
1117
+ type __VLS_Slots$2 = {} & {
732
1118
  default?: (props: typeof __VLS_16$1) => any;
733
1119
  } & {
734
1120
  left?: (props: typeof __VLS_18$1) => any;
735
1121
  } & {
736
1122
  footer?: (props: typeof __VLS_20) => any;
737
1123
  };
738
- declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {
739
- form: import("@vue/reactivity").Ref<import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
740
- config: schema_d_exports.FormConfig;
741
- initValues: Record<string, any>;
742
- lastValues?: Record<string, any>;
743
- isCompare?: boolean;
744
- parentValues?: Record<string, any>;
745
- labelWidth?: string;
746
- disabled?: boolean;
747
- height?: string;
748
- stepActive?: string | number;
749
- size?: "small" | "default" | "large";
750
- inline?: boolean;
751
- labelPosition?: string;
752
- keyProp?: string;
753
- popperClass?: string;
754
- preventSubmitDefault?: boolean;
755
- extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
756
- }> & Readonly<{
757
- onError?: ((...args: any[]) => any) | undefined;
758
- onChange?: ((...args: any[]) => any) | undefined;
759
- "onField-input"?: ((...args: any[]) => any) | undefined;
760
- "onField-change"?: ((...args: any[]) => any) | undefined;
761
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
762
- }>, {
763
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
764
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
765
- formState: schema_d_exports.FormState;
766
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
767
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
768
- changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
769
- resetForm: () => void;
770
- submitForm: (native?: boolean) => Promise<any>;
771
- getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
772
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
773
- error: (...args: any[]) => void;
774
- change: (...args: any[]) => void;
775
- "field-input": (...args: any[]) => void;
776
- "field-change": (...args: any[]) => void;
777
- "update:stepActive": (...args: any[]) => void;
778
- }, import("@vue/runtime-core").PublicProps, {
779
- disabled: boolean;
780
- labelWidth: string;
781
- inline: boolean;
782
- labelPosition: string;
783
- config: schema_d_exports.FormConfig;
784
- height: string;
785
- initValues: Record<string, any>;
786
- lastValues: Record<string, any>;
787
- isCompare: boolean;
788
- keyProp: string;
789
- parentValues: Record<string, any>;
790
- stepActive: string | number;
791
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
792
- P: {};
793
- B: {};
794
- D: {};
795
- C: {};
796
- M: {};
797
- Defaults: {};
798
- }, Readonly<{
799
- config: schema_d_exports.FormConfig;
800
- initValues: Record<string, any>;
801
- lastValues?: Record<string, any>;
802
- isCompare?: boolean;
803
- parentValues?: Record<string, any>;
804
- labelWidth?: string;
805
- disabled?: boolean;
806
- height?: string;
807
- stepActive?: string | number;
808
- size?: "small" | "default" | "large";
809
- inline?: boolean;
810
- labelPosition?: string;
811
- keyProp?: string;
812
- popperClass?: string;
813
- preventSubmitDefault?: boolean;
814
- extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
815
- }> & Readonly<{
816
- onError?: ((...args: any[]) => any) | undefined;
817
- onChange?: ((...args: any[]) => any) | undefined;
818
- "onField-input"?: ((...args: any[]) => any) | undefined;
819
- "onField-change"?: ((...args: any[]) => any) | undefined;
820
- "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
821
- }>, {
822
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
823
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
824
- formState: schema_d_exports.FormState;
825
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
826
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
827
- changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
828
- resetForm: () => void;
829
- submitForm: (native?: boolean) => Promise<any>;
830
- getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
831
- }, {}, {}, {}, {
1124
+ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Props$27, {
1125
+ form: import("@vue/reactivity").Ref<({
1126
+ $: import("@vue/runtime-core").ComponentInternalInstance;
1127
+ $data: {};
1128
+ $props: {
1129
+ readonly config: schema_d_exports.FormConfig;
1130
+ readonly initValues: Record<string, any>;
1131
+ readonly lastValues?: Record<string, any> | undefined;
1132
+ readonly isCompare?: boolean | undefined;
1133
+ readonly parentValues?: Record<string, any> | undefined;
1134
+ readonly labelWidth?: string | undefined;
1135
+ readonly disabled?: boolean | undefined;
1136
+ readonly height?: string | undefined;
1137
+ readonly stepActive?: string | number | undefined;
1138
+ readonly size?: "small" | "default" | "large" | undefined;
1139
+ readonly inline?: boolean | undefined;
1140
+ readonly labelPosition?: string | undefined;
1141
+ readonly keyProp?: string | undefined;
1142
+ readonly popperClass?: string | undefined;
1143
+ readonly preventSubmitDefault?: boolean | undefined;
1144
+ readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
1145
+ readonly showDiff?: ((_data: {
1146
+ curValue: any;
1147
+ lastValue: any;
1148
+ config: any;
1149
+ }) => boolean) | undefined;
1150
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
1151
+ readonly onError?: ((...args: any[]) => any) | undefined;
1152
+ readonly onChange?: ((...args: any[]) => any) | undefined;
1153
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
1154
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
1155
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1156
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
1157
+ $attrs: import("@vue/runtime-core").Attrs;
1158
+ $refs: {
1159
+ [x: string]: unknown;
1160
+ };
1161
+ $slots: Readonly<{
1162
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
1163
+ }>;
1164
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
1165
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
1166
+ $host: Element | null;
1167
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
1168
+ $el: any;
1169
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
1170
+ config: schema_d_exports.FormConfig;
1171
+ initValues: Record<string, any>;
1172
+ lastValues?: Record<string, any>;
1173
+ isCompare?: boolean;
1174
+ parentValues?: Record<string, any>;
1175
+ labelWidth?: string;
1176
+ disabled?: boolean;
1177
+ height?: string;
1178
+ stepActive?: string | number;
1179
+ size?: "small" | "default" | "large";
1180
+ inline?: boolean;
1181
+ labelPosition?: string;
1182
+ keyProp?: string;
1183
+ popperClass?: string;
1184
+ preventSubmitDefault?: boolean;
1185
+ extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
1186
+ showDiff?: (_data: {
1187
+ curValue: any;
1188
+ lastValue: any;
1189
+ config: any;
1190
+ }) => boolean;
1191
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
1192
+ }> & Readonly<{
1193
+ onError?: ((...args: any[]) => any) | undefined;
1194
+ onChange?: ((...args: any[]) => any) | undefined;
1195
+ "onField-input"?: ((...args: any[]) => any) | undefined;
1196
+ "onField-change"?: ((...args: any[]) => any) | undefined;
1197
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1198
+ }>, {
1199
+ values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1200
+ lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1201
+ formState: schema_d_exports.FormState;
1202
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
1203
+ changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
1204
+ changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
1205
+ resetForm: () => void;
1206
+ submitForm: (native?: boolean) => Promise<any>;
1207
+ getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
1208
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
1209
+ error: (...args: any[]) => void;
1210
+ change: (...args: any[]) => void;
1211
+ "field-input": (...args: any[]) => void;
1212
+ "field-change": (...args: any[]) => void;
1213
+ "update:stepActive": (...args: any[]) => void;
1214
+ }, string, {
1215
+ disabled: boolean;
1216
+ labelWidth: string;
1217
+ inline: boolean;
1218
+ labelPosition: string;
1219
+ config: schema_d_exports.FormConfig;
1220
+ height: string;
1221
+ initValues: Record<string, any>;
1222
+ lastValues: Record<string, any>;
1223
+ isCompare: boolean;
1224
+ keyProp: string;
1225
+ parentValues: Record<string, any>;
1226
+ stepActive: string | number;
1227
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
1228
+ beforeCreate?: (() => void) | (() => void)[];
1229
+ created?: (() => void) | (() => void)[];
1230
+ beforeMount?: (() => void) | (() => void)[];
1231
+ mounted?: (() => void) | (() => void)[];
1232
+ beforeUpdate?: (() => void) | (() => void)[];
1233
+ updated?: (() => void) | (() => void)[];
1234
+ activated?: (() => void) | (() => void)[];
1235
+ deactivated?: (() => void) | (() => void)[];
1236
+ beforeDestroy?: (() => void) | (() => void)[];
1237
+ beforeUnmount?: (() => void) | (() => void)[];
1238
+ destroyed?: (() => void) | (() => void)[];
1239
+ unmounted?: (() => void) | (() => void)[];
1240
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
1241
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
1242
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
1243
+ };
1244
+ $forceUpdate: () => void;
1245
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
1246
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
1247
+ } & Readonly<{
832
1248
  disabled: boolean;
833
1249
  labelWidth: string;
834
1250
  inline: boolean;
@@ -841,7 +1257,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
841
1257
  keyProp: string;
842
1258
  parentValues: Record<string, any>;
843
1259
  stepActive: string | number;
844
- }> | undefined, import("@vue/runtime-core").CreateComponentPublicInstanceWithMixins<Readonly<{
1260
+ }> & Omit<Readonly<{
845
1261
  config: schema_d_exports.FormConfig;
846
1262
  initValues: Record<string, any>;
847
1263
  lastValues?: Record<string, any>;
@@ -858,29 +1274,153 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
858
1274
  popperClass?: string;
859
1275
  preventSubmitDefault?: boolean;
860
1276
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
1277
+ showDiff?: (_data: {
1278
+ curValue: any;
1279
+ lastValue: any;
1280
+ config: any;
1281
+ }) => boolean;
1282
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
861
1283
  }> & Readonly<{
862
1284
  onError?: ((...args: any[]) => any) | undefined;
863
1285
  onChange?: ((...args: any[]) => any) | undefined;
864
1286
  "onField-input"?: ((...args: any[]) => any) | undefined;
865
1287
  "onField-change"?: ((...args: any[]) => any) | undefined;
866
1288
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
867
- }>, {
868
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
869
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1289
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
1290
+ values: schema_d_exports.FormValue;
1291
+ lastValuesProcessed: schema_d_exports.FormValue;
870
1292
  formState: schema_d_exports.FormState;
871
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
872
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
1293
+ initialized: boolean;
1294
+ changeRecords: import("@tmagic/editor").ChangeRecord[];
873
1295
  changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
874
1296
  resetForm: () => void;
875
1297
  submitForm: (native?: boolean) => Promise<any>;
876
1298
  getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
877
- }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
878
- error: (...args: any[]) => void;
879
- change: (...args: any[]) => void;
880
- "field-input": (...args: any[]) => void;
881
- "field-change": (...args: any[]) => void;
882
- "update:stepActive": (...args: any[]) => void;
883
- }, import("@vue/runtime-core").PublicProps, {
1299
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
1300
+ $slots: import("@tmagic/editor").FormSlots;
1301
+ }) | undefined, ({
1302
+ $: import("@vue/runtime-core").ComponentInternalInstance;
1303
+ $data: {};
1304
+ $props: {
1305
+ readonly config: schema_d_exports.FormConfig;
1306
+ readonly initValues: Record<string, any>;
1307
+ readonly lastValues?: Record<string, any> | undefined;
1308
+ readonly isCompare?: boolean | undefined;
1309
+ readonly parentValues?: Record<string, any> | undefined;
1310
+ readonly labelWidth?: string | undefined;
1311
+ readonly disabled?: boolean | undefined;
1312
+ readonly height?: string | undefined;
1313
+ readonly stepActive?: string | number | undefined;
1314
+ readonly size?: "small" | "default" | "large" | undefined;
1315
+ readonly inline?: boolean | undefined;
1316
+ readonly labelPosition?: string | undefined;
1317
+ readonly keyProp?: string | undefined;
1318
+ readonly popperClass?: string | undefined;
1319
+ readonly preventSubmitDefault?: boolean | undefined;
1320
+ readonly extendState?: ((_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>) | undefined;
1321
+ readonly showDiff?: ((_data: {
1322
+ curValue: any;
1323
+ lastValue: any;
1324
+ config: any;
1325
+ }) => boolean) | undefined;
1326
+ readonly selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]) | undefined;
1327
+ readonly onError?: ((...args: any[]) => any) | undefined;
1328
+ readonly onChange?: ((...args: any[]) => any) | undefined;
1329
+ readonly "onField-input"?: ((...args: any[]) => any) | undefined;
1330
+ readonly "onField-change"?: ((...args: any[]) => any) | undefined;
1331
+ readonly "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1332
+ } & import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps;
1333
+ $attrs: import("@vue/runtime-core").Attrs;
1334
+ $refs: {
1335
+ [x: string]: unknown;
1336
+ };
1337
+ $slots: Readonly<{
1338
+ [name: string]: import("@vue/runtime-core").Slot<any> | undefined;
1339
+ }>;
1340
+ $root: import("@vue/runtime-core").ComponentPublicInstance | null;
1341
+ $parent: import("@vue/runtime-core").ComponentPublicInstance | null;
1342
+ $host: Element | null;
1343
+ $emit: ((event: "error", ...args: any[]) => void) & ((event: "change", ...args: any[]) => void) & ((event: "field-input", ...args: any[]) => void) & ((event: "field-change", ...args: any[]) => void) & ((event: "update:stepActive", ...args: any[]) => void);
1344
+ $el: any;
1345
+ $options: import("@vue/runtime-core").ComponentOptionsBase<Readonly<{
1346
+ config: schema_d_exports.FormConfig;
1347
+ initValues: Record<string, any>;
1348
+ lastValues?: Record<string, any>;
1349
+ isCompare?: boolean;
1350
+ parentValues?: Record<string, any>;
1351
+ labelWidth?: string;
1352
+ disabled?: boolean;
1353
+ height?: string;
1354
+ stepActive?: string | number;
1355
+ size?: "small" | "default" | "large";
1356
+ inline?: boolean;
1357
+ labelPosition?: string;
1358
+ keyProp?: string;
1359
+ popperClass?: string;
1360
+ preventSubmitDefault?: boolean;
1361
+ extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
1362
+ showDiff?: (_data: {
1363
+ curValue: any;
1364
+ lastValue: any;
1365
+ config: any;
1366
+ }) => boolean;
1367
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
1368
+ }> & Readonly<{
1369
+ onError?: ((...args: any[]) => any) | undefined;
1370
+ onChange?: ((...args: any[]) => any) | undefined;
1371
+ "onField-input"?: ((...args: any[]) => any) | undefined;
1372
+ "onField-change"?: ((...args: any[]) => any) | undefined;
1373
+ "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1374
+ }>, {
1375
+ values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1376
+ lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1377
+ formState: schema_d_exports.FormState;
1378
+ initialized: import("@vue/reactivity").Ref<boolean, boolean>;
1379
+ changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
1380
+ changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
1381
+ resetForm: () => void;
1382
+ submitForm: (native?: boolean) => Promise<any>;
1383
+ getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
1384
+ }, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
1385
+ error: (...args: any[]) => void;
1386
+ change: (...args: any[]) => void;
1387
+ "field-input": (...args: any[]) => void;
1388
+ "field-change": (...args: any[]) => void;
1389
+ "update:stepActive": (...args: any[]) => void;
1390
+ }, string, {
1391
+ disabled: boolean;
1392
+ labelWidth: string;
1393
+ inline: boolean;
1394
+ labelPosition: string;
1395
+ config: schema_d_exports.FormConfig;
1396
+ height: string;
1397
+ initValues: Record<string, any>;
1398
+ lastValues: Record<string, any>;
1399
+ isCompare: boolean;
1400
+ keyProp: string;
1401
+ parentValues: Record<string, any>;
1402
+ stepActive: string | number;
1403
+ }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
1404
+ beforeCreate?: (() => void) | (() => void)[];
1405
+ created?: (() => void) | (() => void)[];
1406
+ beforeMount?: (() => void) | (() => void)[];
1407
+ mounted?: (() => void) | (() => void)[];
1408
+ beforeUpdate?: (() => void) | (() => void)[];
1409
+ updated?: (() => void) | (() => void)[];
1410
+ activated?: (() => void) | (() => void)[];
1411
+ deactivated?: (() => void) | (() => void)[];
1412
+ beforeDestroy?: (() => void) | (() => void)[];
1413
+ beforeUnmount?: (() => void) | (() => void)[];
1414
+ destroyed?: (() => void) | (() => void)[];
1415
+ unmounted?: (() => void) | (() => void)[];
1416
+ renderTracked?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
1417
+ renderTriggered?: ((e: import("@vue/reactivity").DebuggerEvent) => void) | ((e: import("@vue/reactivity").DebuggerEvent) => void)[];
1418
+ errorCaptured?: ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("@vue/runtime-core").ComponentPublicInstance | null, info: string) => boolean | void)[];
1419
+ };
1420
+ $forceUpdate: () => void;
1421
+ $nextTick: typeof import("@vue/runtime-core").nextTick;
1422
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends ((...args: any) => infer R) ? (...args: [R, R, import("@vue/reactivity").OnCleanup]) => any : (...args: [any, any, import("@vue/reactivity").OnCleanup]) => any, options?: import("@vue/runtime-core").WatchOptions): import("@vue/reactivity").WatchStopHandle;
1423
+ } & Readonly<{
884
1424
  disabled: boolean;
885
1425
  labelWidth: string;
886
1426
  inline: boolean;
@@ -893,14 +1433,7 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
893
1433
  keyProp: string;
894
1434
  parentValues: Record<string, any>;
895
1435
  stepActive: string | number;
896
- }, false, {}, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, {}, any, import("@vue/runtime-core").ComponentProvideOptions, {
897
- P: {};
898
- B: {};
899
- D: {};
900
- C: {};
901
- M: {};
902
- Defaults: {};
903
- }, Readonly<{
1436
+ }> & Omit<Readonly<{
904
1437
  config: schema_d_exports.FormConfig;
905
1438
  initValues: Record<string, any>;
906
1439
  lastValues?: Record<string, any>;
@@ -917,36 +1450,31 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
917
1450
  popperClass?: string;
918
1451
  preventSubmitDefault?: boolean;
919
1452
  extendState?: (_state: schema_d_exports.FormState) => Record<string, any> | Promise<Record<string, any>>;
1453
+ showDiff?: (_data: {
1454
+ curValue: any;
1455
+ lastValue: any;
1456
+ config: any;
1457
+ }) => boolean;
1458
+ selfDiffFieldTypes?: string[] | ((_defaultTypes: string[]) => string[]);
920
1459
  }> & Readonly<{
921
1460
  onError?: ((...args: any[]) => any) | undefined;
922
1461
  onChange?: ((...args: any[]) => any) | undefined;
923
1462
  "onField-input"?: ((...args: any[]) => any) | undefined;
924
1463
  "onField-change"?: ((...args: any[]) => any) | undefined;
925
1464
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
926
- }>, {
927
- values: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
928
- lastValuesProcessed: import("@vue/reactivity").Ref<schema_d_exports.FormValue, schema_d_exports.FormValue>;
1465
+ }>, "values" | "changeHandler" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive")> & {
1466
+ values: schema_d_exports.FormValue;
1467
+ lastValuesProcessed: schema_d_exports.FormValue;
929
1468
  formState: schema_d_exports.FormState;
930
- initialized: import("@vue/reactivity").Ref<boolean, boolean>;
931
- changeRecords: import("@vue/reactivity").ShallowRef<import("@tmagic/editor").ChangeRecord[], import("@tmagic/editor").ChangeRecord[]>;
1469
+ initialized: boolean;
1470
+ changeRecords: import("@tmagic/editor").ChangeRecord[];
932
1471
  changeHandler: (v: schema_d_exports.FormValue, eventData: ContainerChangeEventData) => void;
933
1472
  resetForm: () => void;
934
1473
  submitForm: (native?: boolean) => Promise<any>;
935
1474
  getTextByName: (name: string, config?: schema_d_exports.FormConfig) => string | undefined;
936
- }, {}, {}, {}, {
937
- disabled: boolean;
938
- labelWidth: string;
939
- inline: boolean;
940
- labelPosition: string;
941
- config: schema_d_exports.FormConfig;
942
- height: string;
943
- initValues: Record<string, any>;
944
- lastValues: Record<string, any>;
945
- isCompare: boolean;
946
- keyProp: string;
947
- parentValues: Record<string, any>;
948
- stepActive: string | number;
949
- }> | undefined>;
1475
+ } & {} & import("@vue/runtime-core").ComponentCustomProperties & {} & {
1476
+ $slots: import("@tmagic/editor").FormSlots;
1477
+ }) | undefined>;
950
1478
  saveFetch: import("@vue/reactivity").Ref<boolean, boolean>;
951
1479
  show: () => void;
952
1480
  hide: () => void;
@@ -963,15 +1491,16 @@ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Pr
963
1491
  config: schema_d_exports.FormConfig;
964
1492
  confirmText: string;
965
1493
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
966
- declare const __VLS_export$27: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
1494
+ declare const __VLS_export$27: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
967
1495
  declare const _default$13: typeof __VLS_export$27;
968
- type __VLS_WithSlots$1<T, S> = T & {
1496
+ type __VLS_WithSlots$2<T, S> = T & {
969
1497
  new (): {
970
1498
  $slots: S;
971
1499
  };
972
1500
  };
973
1501
  //#endregion
974
1502
  //#region temp/packages/form/src/containers/Container.vue.d.ts
1503
+ type __VLS_Slots$1 = FormSlots;
975
1504
  type __VLS_Props$26 = {
976
1505
  /** 表单值 */model: schema_d_exports.FormValue; /** 需对比的值(开启对比模式时传入) */
977
1506
  lastValues?: schema_d_exports.FormValue;
@@ -984,7 +1513,7 @@ type __VLS_Props$26 = {
984
1513
  size?: string; /** 是否开启对比模式 */
985
1514
  isCompare?: boolean;
986
1515
  };
987
- declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
1516
+ declare const __VLS_base$1: import("@vue/runtime-core").DefineComponent<__VLS_Props$26, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {
988
1517
  change: (v: any, eventData: ContainerChangeEventData) => any;
989
1518
  addDiffCount: () => any;
990
1519
  }, string, import("@vue/runtime-core").PublicProps, Readonly<__VLS_Props$26> & Readonly<{
@@ -997,7 +1526,13 @@ declare const __VLS_export$26: import("@vue/runtime-core").DefineComponent<__VLS
997
1526
  isCompare: boolean;
998
1527
  expandMore: boolean;
999
1528
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
1529
+ declare const __VLS_export$26: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
1000
1530
  declare const _default$4: typeof __VLS_export$26;
1531
+ type __VLS_WithSlots$1<T, S> = T & {
1532
+ new (): {
1533
+ $slots: S;
1534
+ };
1535
+ };
1001
1536
  //#endregion
1002
1537
  //#region temp/packages/form/src/containers/Fieldset.vue.d.ts
1003
1538
  type __VLS_Props$25 = {
@@ -1383,8 +1918,8 @@ declare const _default$31: {
1383
1918
  install(app: App, opt?: FormInstallOptions): void;
1384
1919
  };
1385
1920
  declare namespace index_d_exports {
1386
- export { ChangeRecord, ContainerChangeEventData, FormInstallOptions, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
1921
+ export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$16 as MTable, _default$16 as MTableGroupList, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
1387
1922
  }
1388
1923
  declare const createForm: <T extends [] = []>(config: schema_d_exports.FormConfig | T) => schema_d_exports.FormConfig | T;
1389
1924
  //#endregion
1390
- export { ChangeRecord, ContainerChangeEventData, type FormInstallOptions, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };
1925
+ export { ChangeRecord, ContainerChangeEventData, FORM_DIFF_CONFIG_KEY, FormDiffConfig, type FormInstallOptions, FormLabelSlotProps, FormSlots, _default as MCascader, _default$1 as MCheckbox, _default$2 as MCheckboxGroup, _default$3 as MColorPicker, _default$4 as MContainer, _default$5 as MDate, _default$6 as MDateTime, _default$7 as MDaterange, _default$8 as MDisplay, _default$9 as MDynamicField, _default$10 as MFieldset, _default$11 as MFlexLayout, _default$12 as MForm, _default$13 as MFormBox, _default$14 as MFormDialog, _default$15 as MFormDrawer, _default$16 as MGroupList, _default$16 as MTable, _default$16 as MTableGroupList, _default$17 as MHidden, _default$18 as MLink, _default$19 as MNumber, _default$20 as MNumberRange, _default$21 as MPanel, _default$22 as MRadioGroup, _default$23 as MRow, _default$24 as MSelect, _default$25 as MSwitch, _default$26 as MTabs, _default$27 as MText, _default$28 as MTextarea, _default$29 as MTime, _default$30 as MTimerange, SubmitFormOptions, SubmitFormResult, ValidateError, createForm, createObjectProp, createValues, datetimeFormatter, _default$31 as default, deleteField as deleteFormField, display, filterFunction, getDataByPage, getField as getFormField, getRules, initValue, registerField as registerFormField, sortArray, sortChange, submitForm, useAddField };