@tmagic/form 1.8.0-beta.18 → 1.8.0-beta.19

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.
@@ -21,6 +21,10 @@ var Form_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
21
21
  parentValues: { default: () => ({}) },
22
22
  labelWidth: { default: "200px" },
23
23
  typeMatchValid: { type: Boolean },
24
+ validateOnInit: {
25
+ type: Boolean,
26
+ default: false
27
+ },
24
28
  disabled: {
25
29
  type: Boolean,
26
30
  default: false
@@ -218,7 +222,7 @@ var Form_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCompo
218
222
  }).then((value) => {
219
223
  values.value = value;
220
224
  initialized.value = !props.isCompare;
221
- nextTick(() => {
225
+ if (props.validateOnInit) nextTick(() => {
222
226
  tMagicFormRef.value?.validate();
223
227
  });
224
228
  });
@@ -14,6 +14,10 @@ var FormBox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
14
14
  height: {},
15
15
  labelWidth: {},
16
16
  typeMatchValid: { type: Boolean },
17
+ validateOnInit: {
18
+ type: Boolean,
19
+ default: false
20
+ },
17
21
  disabled: { type: Boolean },
18
22
  size: {},
19
23
  confirmText: { default: "确定" },
@@ -90,6 +94,7 @@ var FormBox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
90
94
  "use-field-text-in-error": __props.useFieldTextInError,
91
95
  "extend-state": __props.extendState,
92
96
  "type-match-valid": __props.typeMatchValid,
97
+ "validate-on-init": __props.validateOnInit,
93
98
  onChange: changeHandler
94
99
  }, null, 8, [
95
100
  "size",
@@ -103,7 +108,8 @@ var FormBox_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
103
108
  "prevent-submit-default",
104
109
  "use-field-text-in-error",
105
110
  "extend-state",
106
- "type-match-valid"
111
+ "type-match-valid",
112
+ "validate-on-init"
107
113
  ]), renderSlot(_ctx.$slots, "default")]),
108
114
  _: 3
109
115
  })], 4), createElementVNode("div", {
@@ -13,6 +13,10 @@ var FormDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
13
13
  width: {},
14
14
  labelWidth: {},
15
15
  typeMatchValid: { type: Boolean },
16
+ validateOnInit: {
17
+ type: Boolean,
18
+ default: false
19
+ },
16
20
  fullscreen: { type: Boolean },
17
21
  disabled: { type: Boolean },
18
22
  title: {},
@@ -203,6 +207,7 @@ var FormDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
203
207
  "prevent-submit-default": __props.preventSubmitDefault,
204
208
  "use-field-text-in-error": __props.useFieldTextInError,
205
209
  "type-match-valid": __props.typeMatchValid,
210
+ "validate-on-init": __props.validateOnInit,
206
211
  "extend-state": __props.extendState,
207
212
  theme: effectiveTheme.value,
208
213
  onChange: changeHandler
@@ -219,6 +224,7 @@ var FormDialog_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
219
224
  "prevent-submit-default",
220
225
  "use-field-text-in-error",
221
226
  "type-match-valid",
227
+ "validate-on-init",
222
228
  "extend-state",
223
229
  "theme"
224
230
  ]), renderSlot(_ctx.$slots, "default")], 4)) : createCommentVNode("v-if", true)]),
@@ -13,6 +13,10 @@ var FormDrawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
13
13
  width: {},
14
14
  labelWidth: {},
15
15
  typeMatchValid: { type: Boolean },
16
+ validateOnInit: {
17
+ type: Boolean,
18
+ default: false
19
+ },
16
20
  disabled: { type: Boolean },
17
21
  closeOnPressEscape: {
18
22
  type: Boolean,
@@ -180,6 +184,7 @@ var FormDrawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
180
184
  "prevent-submit-default": __props.preventSubmitDefault,
181
185
  "use-field-text-in-error": __props.useFieldTextInError,
182
186
  "type-match-valid": __props.typeMatchValid,
187
+ "validate-on-init": __props.validateOnInit,
183
188
  "extend-state": __props.extendState,
184
189
  theme: effectiveTheme.value,
185
190
  onChange: changeHandler
@@ -195,6 +200,7 @@ var FormDrawer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
195
200
  "prevent-submit-default",
196
201
  "use-field-text-in-error",
197
202
  "type-match-valid",
203
+ "validate-on-init",
198
204
  "extend-state",
199
205
  "theme"
200
206
  ]), renderSlot(_ctx.$slots, "default")], 512)) : createCommentVNode("v-if", true)]),
@@ -4125,6 +4125,10 @@
4125
4125
  parentValues: { default: () => ({}) },
4126
4126
  labelWidth: { default: "200px" },
4127
4127
  typeMatchValid: { type: Boolean },
4128
+ validateOnInit: {
4129
+ type: Boolean,
4130
+ default: false
4131
+ },
4128
4132
  disabled: {
4129
4133
  type: Boolean,
4130
4134
  default: false
@@ -4322,7 +4326,7 @@
4322
4326
  }).then((value) => {
4323
4327
  values.value = value;
4324
4328
  initialized.value = !props.isCompare;
4325
- (0, vue.nextTick)(() => {
4329
+ if (props.validateOnInit) (0, vue.nextTick)(() => {
4326
4330
  tMagicFormRef.value?.validate();
4327
4331
  });
4328
4332
  });
@@ -4952,6 +4956,10 @@
4952
4956
  width: {},
4953
4957
  labelWidth: {},
4954
4958
  typeMatchValid: { type: Boolean },
4959
+ validateOnInit: {
4960
+ type: Boolean,
4961
+ default: false
4962
+ },
4955
4963
  fullscreen: { type: Boolean },
4956
4964
  disabled: { type: Boolean },
4957
4965
  title: {},
@@ -5142,6 +5150,7 @@
5142
5150
  "prevent-submit-default": __props.preventSubmitDefault,
5143
5151
  "use-field-text-in-error": __props.useFieldTextInError,
5144
5152
  "type-match-valid": __props.typeMatchValid,
5153
+ "validate-on-init": __props.validateOnInit,
5145
5154
  "extend-state": __props.extendState,
5146
5155
  theme: effectiveTheme.value,
5147
5156
  onChange: changeHandler
@@ -5158,6 +5167,7 @@
5158
5167
  "prevent-submit-default",
5159
5168
  "use-field-text-in-error",
5160
5169
  "type-match-valid",
5170
+ "validate-on-init",
5161
5171
  "extend-state",
5162
5172
  "theme"
5163
5173
  ]), (0, vue.renderSlot)(_ctx.$slots, "default")], 4)) : (0, vue.createCommentVNode)("v-if", true)]),
@@ -5192,6 +5202,10 @@
5192
5202
  width: {},
5193
5203
  labelWidth: {},
5194
5204
  typeMatchValid: { type: Boolean },
5205
+ validateOnInit: {
5206
+ type: Boolean,
5207
+ default: false
5208
+ },
5195
5209
  disabled: { type: Boolean },
5196
5210
  closeOnPressEscape: {
5197
5211
  type: Boolean,
@@ -5359,6 +5373,7 @@
5359
5373
  "prevent-submit-default": __props.preventSubmitDefault,
5360
5374
  "use-field-text-in-error": __props.useFieldTextInError,
5361
5375
  "type-match-valid": __props.typeMatchValid,
5376
+ "validate-on-init": __props.validateOnInit,
5362
5377
  "extend-state": __props.extendState,
5363
5378
  theme: effectiveTheme.value,
5364
5379
  onChange: changeHandler
@@ -5374,6 +5389,7 @@
5374
5389
  "prevent-submit-default",
5375
5390
  "use-field-text-in-error",
5376
5391
  "type-match-valid",
5392
+ "validate-on-init",
5377
5393
  "extend-state",
5378
5394
  "theme"
5379
5395
  ]), (0, vue.renderSlot)(_ctx.$slots, "default")], 512)) : (0, vue.createCommentVNode)("v-if", true)]),
@@ -5406,6 +5422,10 @@
5406
5422
  height: {},
5407
5423
  labelWidth: {},
5408
5424
  typeMatchValid: { type: Boolean },
5425
+ validateOnInit: {
5426
+ type: Boolean,
5427
+ default: false
5428
+ },
5409
5429
  disabled: { type: Boolean },
5410
5430
  size: {},
5411
5431
  confirmText: { default: "确定" },
@@ -5482,6 +5502,7 @@
5482
5502
  "use-field-text-in-error": __props.useFieldTextInError,
5483
5503
  "extend-state": __props.extendState,
5484
5504
  "type-match-valid": __props.typeMatchValid,
5505
+ "validate-on-init": __props.validateOnInit,
5485
5506
  onChange: changeHandler
5486
5507
  }, null, 8, [
5487
5508
  "size",
@@ -5495,7 +5516,8 @@
5495
5516
  "prevent-submit-default",
5496
5517
  "use-field-text-in-error",
5497
5518
  "extend-state",
5498
- "type-match-valid"
5519
+ "type-match-valid",
5520
+ "validate-on-init"
5499
5521
  ]), (0, vue.renderSlot)(_ctx.$slots, "default")]),
5500
5522
  _: 3
5501
5523
  })], 4), (0, vue.createElementVNode)("div", {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.8.0-beta.18",
2
+ "version": "1.8.0-beta.19",
3
3
  "name": "@tmagic/form",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -52,9 +52,9 @@
52
52
  "peerDependencies": {
53
53
  "vue": "^3.5.40",
54
54
  "typescript": "^6.0.3",
55
- "@tmagic/design": "1.8.0-beta.18",
56
- "@tmagic/utils": "1.8.0-beta.18",
57
- "@tmagic/form-schema": "1.8.0-beta.18"
55
+ "@tmagic/design": "1.8.0-beta.19",
56
+ "@tmagic/form-schema": "1.8.0-beta.19",
57
+ "@tmagic/utils": "1.8.0-beta.19"
58
58
  },
59
59
  "peerDependenciesMeta": {
60
60
  "typescript": {
package/src/Form.vue CHANGED
@@ -88,6 +88,13 @@ const props = withDefaults(
88
88
  labelWidth?: string;
89
89
  /** 是否开启类型匹配校验 */
90
90
  typeMatchValid?: boolean;
91
+ /**
92
+ * 初始化(`config` / `initValues` 就绪)后是否立即执行一次表单校验。
93
+ *
94
+ * - `false`(默认):不自动校验,避免打开表单时就展示错误态;
95
+ * - `true`:初始化完成后在 `nextTick` 中调用 `validate()`。
96
+ */
97
+ validateOnInit?: boolean;
91
98
  disabled?: boolean;
92
99
  height?: string;
93
100
  stepActive?: string | number;
@@ -156,6 +163,7 @@ const props = withDefaults(
156
163
  labelPosition: 'right',
157
164
  keyProp: '__key',
158
165
  useFieldTextInError: true,
166
+ validateOnInit: false,
159
167
  },
160
168
  );
161
169
 
@@ -353,9 +361,11 @@ watch(
353
361
  // 非对比模式,初始化完成
354
362
  initialized.value = !props.isCompare;
355
363
 
356
- nextTick(() => {
357
- tMagicFormRef.value?.validate();
358
- });
364
+ if (props.validateOnInit) {
365
+ nextTick(() => {
366
+ tMagicFormRef.value?.validate();
367
+ });
368
+ }
359
369
  });
360
370
 
361
371
  if (props.isCompare) {
package/src/FormBox.vue CHANGED
@@ -16,6 +16,7 @@
16
16
  :use-field-text-in-error="useFieldTextInError"
17
17
  :extend-state="extendState"
18
18
  :type-match-valid="typeMatchValid"
19
+ :validate-on-init="validateOnInit"
19
20
  @change="changeHandler"
20
21
  ></Form>
21
22
  <slot></slot>
@@ -59,6 +60,8 @@ const props = withDefaults(
59
60
  labelWidth?: string;
60
61
  /** 是否开启类型匹配校验 */
61
62
  typeMatchValid?: boolean;
63
+ /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
64
+ validateOnInit?: boolean;
62
65
  disabled?: boolean;
63
66
  size?: 'small' | 'default' | 'large';
64
67
  confirmText?: string;
@@ -74,6 +77,7 @@ const props = withDefaults(
74
77
  values: () => ({}),
75
78
  confirmText: '确定',
76
79
  useFieldTextInError: true,
80
+ validateOnInit: false,
77
81
  },
78
82
  );
79
83
 
@@ -33,6 +33,7 @@
33
33
  :prevent-submit-default="preventSubmitDefault"
34
34
  :use-field-text-in-error="useFieldTextInError"
35
35
  :type-match-valid="typeMatchValid"
36
+ :validate-on-init="validateOnInit"
36
37
  :extend-state="extendState"
37
38
  :theme="effectiveTheme"
38
39
  @change="changeHandler"
@@ -87,6 +88,8 @@ const props = withDefaults(
87
88
  labelWidth?: string;
88
89
  /** 是否开启类型匹配校验 */
89
90
  typeMatchValid?: boolean;
91
+ /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
92
+ validateOnInit?: boolean;
90
93
  fullscreen?: boolean;
91
94
  disabled?: boolean;
92
95
  title?: string;
@@ -122,6 +125,7 @@ const props = withDefaults(
122
125
  showClose: true,
123
126
  showCancel: true,
124
127
  useFieldTextInError: true,
128
+ validateOnInit: false,
125
129
  },
126
130
  );
127
131
 
@@ -30,6 +30,7 @@
30
30
  :prevent-submit-default="preventSubmitDefault"
31
31
  :use-field-text-in-error="useFieldTextInError"
32
32
  :type-match-valid="typeMatchValid"
33
+ :validate-on-init="validateOnInit"
33
34
  :extend-state="extendState"
34
35
  :theme="effectiveTheme"
35
36
  @change="changeHandler"
@@ -78,6 +79,8 @@ const props = withDefaults(
78
79
  labelWidth?: string;
79
80
  /** 是否开启类型匹配校验 */
80
81
  typeMatchValid?: boolean;
82
+ /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
83
+ validateOnInit?: boolean;
81
84
  disabled?: boolean;
82
85
  closeOnPressEscape?: boolean;
83
86
  title?: string;
@@ -106,6 +109,7 @@ const props = withDefaults(
106
109
  values: () => ({}),
107
110
  confirmText: '确定',
108
111
  useFieldTextInError: true,
112
+ validateOnInit: false,
109
113
  },
110
114
  );
111
115
 
package/types/index.d.ts CHANGED
@@ -325,6 +325,13 @@ type __VLS_Props$30 = {
325
325
  parentValues?: Record<string, any>;
326
326
  labelWidth?: string; /** 是否开启类型匹配校验 */
327
327
  typeMatchValid?: boolean;
328
+ /**
329
+ * 初始化(`config` / `initValues` 就绪)后是否立即执行一次表单校验。
330
+ *
331
+ * - `false`(默认):不自动校验,避免打开表单时就展示错误态;
332
+ * - `true`:初始化完成后在 `nextTick` 中调用 `validate()`。
333
+ */
334
+ validateOnInit?: boolean;
328
335
  disabled?: boolean;
329
336
  height?: string;
330
337
  stepActive?: string | number;
@@ -435,6 +442,7 @@ declare const __VLS_base$5: import("@vue/runtime-core").DefineComponent<__VLS_Pr
435
442
  keyProp: string;
436
443
  parentValues: Record<string, any>;
437
444
  stepActive: string | number;
445
+ validateOnInit: boolean;
438
446
  useFieldTextInError: boolean;
439
447
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
440
448
  declare const __VLS_export$30: __VLS_WithSlots$5<typeof __VLS_base$5, __VLS_Slots$5>;
@@ -452,7 +460,8 @@ type __VLS_Props$29 = {
452
460
  parentValues?: Object;
453
461
  width?: string | number;
454
462
  labelWidth?: string; /** 是否开启类型匹配校验 */
455
- typeMatchValid?: boolean;
463
+ typeMatchValid?: boolean; /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
464
+ validateOnInit?: boolean;
456
465
  fullscreen?: boolean;
457
466
  disabled?: boolean;
458
467
  title?: string;
@@ -496,6 +505,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
496
505
  readonly parentValues?: Record<string, any> | undefined;
497
506
  readonly labelWidth?: string | undefined;
498
507
  readonly typeMatchValid?: boolean | undefined;
508
+ readonly validateOnInit?: boolean | undefined;
499
509
  readonly disabled?: boolean | undefined;
500
510
  readonly height?: string | undefined;
501
511
  readonly stepActive?: string | number | undefined;
@@ -540,6 +550,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
540
550
  parentValues?: Record<string, any>;
541
551
  labelWidth?: string;
542
552
  typeMatchValid?: boolean;
553
+ validateOnInit?: boolean;
543
554
  disabled?: boolean;
544
555
  height?: string;
545
556
  stepActive?: string | number;
@@ -594,6 +605,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
594
605
  keyProp: string;
595
606
  parentValues: Record<string, any>;
596
607
  stepActive: string | number;
608
+ validateOnInit: boolean;
597
609
  useFieldTextInError: boolean;
598
610
  }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
599
611
  beforeCreate?: (() => void) | (() => void)[];
@@ -628,6 +640,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
628
640
  keyProp: string;
629
641
  parentValues: Record<string, any>;
630
642
  stepActive: string | number;
643
+ validateOnInit: boolean;
631
644
  useFieldTextInError: boolean;
632
645
  }> & Omit<Readonly<{
633
646
  config: schema_d_exports.FormConfig;
@@ -637,6 +650,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
637
650
  parentValues?: Record<string, any>;
638
651
  labelWidth?: string;
639
652
  typeMatchValid?: boolean;
653
+ validateOnInit?: boolean;
640
654
  disabled?: boolean;
641
655
  height?: string;
642
656
  stepActive?: string | number;
@@ -661,7 +675,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
661
675
  "onField-input"?: ((...args: any[]) => any) | undefined;
662
676
  "onField-change"?: ((...args: any[]) => any) | undefined;
663
677
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
664
- }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
678
+ }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "validateOnInit" | "useFieldTextInError")> & {
665
679
  values: schema_d_exports.FormValue;
666
680
  lastValuesProcessed: schema_d_exports.FormValue;
667
681
  formState: schema_d_exports.FormState;
@@ -685,6 +699,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
685
699
  readonly parentValues?: Record<string, any> | undefined;
686
700
  readonly labelWidth?: string | undefined;
687
701
  readonly typeMatchValid?: boolean | undefined;
702
+ readonly validateOnInit?: boolean | undefined;
688
703
  readonly disabled?: boolean | undefined;
689
704
  readonly height?: string | undefined;
690
705
  readonly stepActive?: string | number | undefined;
@@ -729,6 +744,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
729
744
  parentValues?: Record<string, any>;
730
745
  labelWidth?: string;
731
746
  typeMatchValid?: boolean;
747
+ validateOnInit?: boolean;
732
748
  disabled?: boolean;
733
749
  height?: string;
734
750
  stepActive?: string | number;
@@ -783,6 +799,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
783
799
  keyProp: string;
784
800
  parentValues: Record<string, any>;
785
801
  stepActive: string | number;
802
+ validateOnInit: boolean;
786
803
  useFieldTextInError: boolean;
787
804
  }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
788
805
  beforeCreate?: (() => void) | (() => void)[];
@@ -817,6 +834,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
817
834
  keyProp: string;
818
835
  parentValues: Record<string, any>;
819
836
  stepActive: string | number;
837
+ validateOnInit: boolean;
820
838
  useFieldTextInError: boolean;
821
839
  }> & Omit<Readonly<{
822
840
  config: schema_d_exports.FormConfig;
@@ -826,6 +844,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
826
844
  parentValues?: Record<string, any>;
827
845
  labelWidth?: string;
828
846
  typeMatchValid?: boolean;
847
+ validateOnInit?: boolean;
829
848
  disabled?: boolean;
830
849
  height?: string;
831
850
  stepActive?: string | number;
@@ -850,7 +869,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
850
869
  "onField-input"?: ((...args: any[]) => any) | undefined;
851
870
  "onField-change"?: ((...args: any[]) => any) | undefined;
852
871
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
853
- }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
872
+ }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "validateOnInit" | "useFieldTextInError")> & {
854
873
  values: schema_d_exports.FormValue;
855
874
  lastValuesProcessed: schema_d_exports.FormValue;
856
875
  formState: schema_d_exports.FormState;
@@ -887,6 +906,7 @@ declare const __VLS_base$4: import("@vue/runtime-core").DefineComponent<__VLS_Pr
887
906
  destroyOnClose: boolean;
888
907
  showClose: boolean;
889
908
  config: schema_d_exports.FormConfig;
909
+ validateOnInit: boolean;
890
910
  useFieldTextInError: boolean;
891
911
  confirmText: string;
892
912
  showCancel: boolean;
@@ -906,7 +926,8 @@ type __VLS_Props$28 = {
906
926
  parentValues?: Object;
907
927
  width?: string | number;
908
928
  labelWidth?: string; /** 是否开启类型匹配校验 */
909
- typeMatchValid?: boolean;
929
+ typeMatchValid?: boolean; /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
930
+ validateOnInit?: boolean;
910
931
  disabled?: boolean;
911
932
  closeOnPressEscape?: boolean;
912
933
  title?: string;
@@ -946,6 +967,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
946
967
  readonly parentValues?: Record<string, any> | undefined;
947
968
  readonly labelWidth?: string | undefined;
948
969
  readonly typeMatchValid?: boolean | undefined;
970
+ readonly validateOnInit?: boolean | undefined;
949
971
  readonly disabled?: boolean | undefined;
950
972
  readonly height?: string | undefined;
951
973
  readonly stepActive?: string | number | undefined;
@@ -990,6 +1012,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
990
1012
  parentValues?: Record<string, any>;
991
1013
  labelWidth?: string;
992
1014
  typeMatchValid?: boolean;
1015
+ validateOnInit?: boolean;
993
1016
  disabled?: boolean;
994
1017
  height?: string;
995
1018
  stepActive?: string | number;
@@ -1044,6 +1067,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1044
1067
  keyProp: string;
1045
1068
  parentValues: Record<string, any>;
1046
1069
  stepActive: string | number;
1070
+ validateOnInit: boolean;
1047
1071
  useFieldTextInError: boolean;
1048
1072
  }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
1049
1073
  beforeCreate?: (() => void) | (() => void)[];
@@ -1078,6 +1102,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1078
1102
  keyProp: string;
1079
1103
  parentValues: Record<string, any>;
1080
1104
  stepActive: string | number;
1105
+ validateOnInit: boolean;
1081
1106
  useFieldTextInError: boolean;
1082
1107
  }> & Omit<Readonly<{
1083
1108
  config: schema_d_exports.FormConfig;
@@ -1087,6 +1112,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1087
1112
  parentValues?: Record<string, any>;
1088
1113
  labelWidth?: string;
1089
1114
  typeMatchValid?: boolean;
1115
+ validateOnInit?: boolean;
1090
1116
  disabled?: boolean;
1091
1117
  height?: string;
1092
1118
  stepActive?: string | number;
@@ -1111,7 +1137,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1111
1137
  "onField-input"?: ((...args: any[]) => any) | undefined;
1112
1138
  "onField-change"?: ((...args: any[]) => any) | undefined;
1113
1139
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1114
- }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
1140
+ }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "validateOnInit" | "useFieldTextInError")> & {
1115
1141
  values: schema_d_exports.FormValue;
1116
1142
  lastValuesProcessed: schema_d_exports.FormValue;
1117
1143
  formState: schema_d_exports.FormState;
@@ -1135,6 +1161,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1135
1161
  readonly parentValues?: Record<string, any> | undefined;
1136
1162
  readonly labelWidth?: string | undefined;
1137
1163
  readonly typeMatchValid?: boolean | undefined;
1164
+ readonly validateOnInit?: boolean | undefined;
1138
1165
  readonly disabled?: boolean | undefined;
1139
1166
  readonly height?: string | undefined;
1140
1167
  readonly stepActive?: string | number | undefined;
@@ -1179,6 +1206,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1179
1206
  parentValues?: Record<string, any>;
1180
1207
  labelWidth?: string;
1181
1208
  typeMatchValid?: boolean;
1209
+ validateOnInit?: boolean;
1182
1210
  disabled?: boolean;
1183
1211
  height?: string;
1184
1212
  stepActive?: string | number;
@@ -1233,6 +1261,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1233
1261
  keyProp: string;
1234
1262
  parentValues: Record<string, any>;
1235
1263
  stepActive: string | number;
1264
+ validateOnInit: boolean;
1236
1265
  useFieldTextInError: boolean;
1237
1266
  }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
1238
1267
  beforeCreate?: (() => void) | (() => void)[];
@@ -1267,6 +1296,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1267
1296
  keyProp: string;
1268
1297
  parentValues: Record<string, any>;
1269
1298
  stepActive: string | number;
1299
+ validateOnInit: boolean;
1270
1300
  useFieldTextInError: boolean;
1271
1301
  }> & Omit<Readonly<{
1272
1302
  config: schema_d_exports.FormConfig;
@@ -1276,6 +1306,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1276
1306
  parentValues?: Record<string, any>;
1277
1307
  labelWidth?: string;
1278
1308
  typeMatchValid?: boolean;
1309
+ validateOnInit?: boolean;
1279
1310
  disabled?: boolean;
1280
1311
  height?: string;
1281
1312
  stepActive?: string | number;
@@ -1300,7 +1331,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1300
1331
  "onField-input"?: ((...args: any[]) => any) | undefined;
1301
1332
  "onField-change"?: ((...args: any[]) => any) | undefined;
1302
1333
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1303
- }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
1334
+ }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "validateOnInit" | "useFieldTextInError")> & {
1304
1335
  values: schema_d_exports.FormValue;
1305
1336
  lastValuesProcessed: schema_d_exports.FormValue;
1306
1337
  formState: schema_d_exports.FormState;
@@ -1342,6 +1373,7 @@ declare const __VLS_base$3: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1342
1373
  values: Object;
1343
1374
  closeOnPressEscape: boolean;
1344
1375
  config: schema_d_exports.FormConfig;
1376
+ validateOnInit: boolean;
1345
1377
  useFieldTextInError: boolean;
1346
1378
  confirmText: string;
1347
1379
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;
@@ -1361,7 +1393,8 @@ type __VLS_Props$27 = {
1361
1393
  width?: number;
1362
1394
  height?: number;
1363
1395
  labelWidth?: string; /** 是否开启类型匹配校验 */
1364
- typeMatchValid?: boolean;
1396
+ typeMatchValid?: boolean; /** 透传给内部 `MForm`,初始化完成后是否立即校验(默认 `false`) */
1397
+ validateOnInit?: boolean;
1365
1398
  disabled?: boolean;
1366
1399
  size?: 'small' | 'default' | 'large';
1367
1400
  confirmText?: string;
@@ -1391,6 +1424,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1391
1424
  readonly parentValues?: Record<string, any> | undefined;
1392
1425
  readonly labelWidth?: string | undefined;
1393
1426
  readonly typeMatchValid?: boolean | undefined;
1427
+ readonly validateOnInit?: boolean | undefined;
1394
1428
  readonly disabled?: boolean | undefined;
1395
1429
  readonly height?: string | undefined;
1396
1430
  readonly stepActive?: string | number | undefined;
@@ -1435,6 +1469,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1435
1469
  parentValues?: Record<string, any>;
1436
1470
  labelWidth?: string;
1437
1471
  typeMatchValid?: boolean;
1472
+ validateOnInit?: boolean;
1438
1473
  disabled?: boolean;
1439
1474
  height?: string;
1440
1475
  stepActive?: string | number;
@@ -1489,6 +1524,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1489
1524
  keyProp: string;
1490
1525
  parentValues: Record<string, any>;
1491
1526
  stepActive: string | number;
1527
+ validateOnInit: boolean;
1492
1528
  useFieldTextInError: boolean;
1493
1529
  }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
1494
1530
  beforeCreate?: (() => void) | (() => void)[];
@@ -1523,6 +1559,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1523
1559
  keyProp: string;
1524
1560
  parentValues: Record<string, any>;
1525
1561
  stepActive: string | number;
1562
+ validateOnInit: boolean;
1526
1563
  useFieldTextInError: boolean;
1527
1564
  }> & Omit<Readonly<{
1528
1565
  config: schema_d_exports.FormConfig;
@@ -1532,6 +1569,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1532
1569
  parentValues?: Record<string, any>;
1533
1570
  labelWidth?: string;
1534
1571
  typeMatchValid?: boolean;
1572
+ validateOnInit?: boolean;
1535
1573
  disabled?: boolean;
1536
1574
  height?: string;
1537
1575
  stepActive?: string | number;
@@ -1556,7 +1594,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1556
1594
  "onField-input"?: ((...args: any[]) => any) | undefined;
1557
1595
  "onField-change"?: ((...args: any[]) => any) | undefined;
1558
1596
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1559
- }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
1597
+ }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "validateOnInit" | "useFieldTextInError")> & {
1560
1598
  values: schema_d_exports.FormValue;
1561
1599
  lastValuesProcessed: schema_d_exports.FormValue;
1562
1600
  formState: schema_d_exports.FormState;
@@ -1580,6 +1618,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1580
1618
  readonly parentValues?: Record<string, any> | undefined;
1581
1619
  readonly labelWidth?: string | undefined;
1582
1620
  readonly typeMatchValid?: boolean | undefined;
1621
+ readonly validateOnInit?: boolean | undefined;
1583
1622
  readonly disabled?: boolean | undefined;
1584
1623
  readonly height?: string | undefined;
1585
1624
  readonly stepActive?: string | number | undefined;
@@ -1624,6 +1663,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1624
1663
  parentValues?: Record<string, any>;
1625
1664
  labelWidth?: string;
1626
1665
  typeMatchValid?: boolean;
1666
+ validateOnInit?: boolean;
1627
1667
  disabled?: boolean;
1628
1668
  height?: string;
1629
1669
  stepActive?: string | number;
@@ -1678,6 +1718,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1678
1718
  keyProp: string;
1679
1719
  parentValues: Record<string, any>;
1680
1720
  stepActive: string | number;
1721
+ validateOnInit: boolean;
1681
1722
  useFieldTextInError: boolean;
1682
1723
  }, {}, string, {}, import("@vue/runtime-core").GlobalComponents, import("@vue/runtime-core").GlobalDirectives, string, import("@vue/runtime-core").ComponentProvideOptions> & {
1683
1724
  beforeCreate?: (() => void) | (() => void)[];
@@ -1712,6 +1753,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1712
1753
  keyProp: string;
1713
1754
  parentValues: Record<string, any>;
1714
1755
  stepActive: string | number;
1756
+ validateOnInit: boolean;
1715
1757
  useFieldTextInError: boolean;
1716
1758
  }> & Omit<Readonly<{
1717
1759
  config: schema_d_exports.FormConfig;
@@ -1721,6 +1763,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1721
1763
  parentValues?: Record<string, any>;
1722
1764
  labelWidth?: string;
1723
1765
  typeMatchValid?: boolean;
1766
+ validateOnInit?: boolean;
1724
1767
  disabled?: boolean;
1725
1768
  height?: string;
1726
1769
  stepActive?: string | number;
@@ -1745,7 +1788,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1745
1788
  "onField-input"?: ((...args: any[]) => any) | undefined;
1746
1789
  "onField-change"?: ((...args: any[]) => any) | undefined;
1747
1790
  "onUpdate:stepActive"?: ((...args: any[]) => any) | undefined;
1748
- }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "useFieldTextInError")> & {
1791
+ }>, "values" | "changeHandler" | "validate" | "initialized" | "lastValuesProcessed" | "formState" | "changeRecords" | "resetForm" | "submitForm" | "getTextByName" | ("disabled" | "labelWidth" | "inline" | "labelPosition" | "config" | "height" | "initValues" | "lastValues" | "isCompare" | "keyProp" | "parentValues" | "stepActive" | "validateOnInit" | "useFieldTextInError")> & {
1749
1792
  values: schema_d_exports.FormValue;
1750
1793
  lastValuesProcessed: schema_d_exports.FormValue;
1751
1794
  formState: schema_d_exports.FormState;
@@ -1773,6 +1816,7 @@ declare const __VLS_base$2: import("@vue/runtime-core").DefineComponent<__VLS_Pr
1773
1816
  }>, {
1774
1817
  values: Object;
1775
1818
  config: schema_d_exports.FormConfig;
1819
+ validateOnInit: boolean;
1776
1820
  useFieldTextInError: boolean;
1777
1821
  confirmText: string;
1778
1822
  }, {}, {}, {}, string, import("@vue/runtime-core").ComponentProvideOptions, false, {}, any>;