@deot/vc-components 1.0.48 → 1.0.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -11488,7 +11488,14 @@ const props$L = {
11488
11488
  labelStyle: [Object, String],
11489
11489
  labelClass: [Object, String],
11490
11490
  errorStyle: [Object, String],
11491
- errorClass: [Object, String]
11491
+ errorClass: [Object, String],
11492
+ // 给nestFormItem统一注入
11493
+ nestedContentStyle: [Object, String],
11494
+ nestedContentClass: [Object, String],
11495
+ nestedLabelStyle: [Object, String],
11496
+ nestedLabelClass: [Object, String],
11497
+ nestedErrorStyle: [Object, String],
11498
+ nestedErrorClass: [Object, String]
11492
11499
  };
11493
11500
 
11494
11501
  const useForm = (expose, options = {}) => {
@@ -11708,31 +11715,32 @@ const useFormItem = (expose) => {
11708
11715
  });
11709
11716
  const classes = vue.computed(() => {
11710
11717
  return {
11711
- "is-require": isRequired.value && props.asterisk,
11718
+ "is-required": isRequired.value && props.asterisk,
11712
11719
  "is-error": validateState.value === "error",
11713
11720
  "is-validating": validateState.value === "validating",
11714
11721
  "is-inline": form.props.inline,
11715
- "is-nest": isNest.value,
11722
+ "is-nested": isNested.value,
11716
11723
  "is-alone": !props.showMessage,
11717
11724
  // 用于单独去除form-item的默认margin_bottom
11718
11725
  [`is-${labelPosition.value}`]: true
11719
11726
  };
11720
11727
  });
11721
- const isNest = vue.computed(() => {
11728
+ const isNested = vue.computed(() => {
11722
11729
  return !!formItem.change;
11723
11730
  });
11724
- const isNestLast = vue.ref(false);
11731
+ const isNestedLast = vue.ref(false);
11725
11732
  const hasLabel = vue.computed(() => {
11726
11733
  return !!props.label || slots.label;
11727
11734
  });
11728
11735
  const labelStyle = vue.computed(() => {
11729
- const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : isNest.value ? 0 : form.props.labelWidth;
11736
+ const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : isNested.value ? 0 : form.props.labelWidth;
11730
11737
  return [
11731
11738
  {
11732
11739
  width: labelPosition.value !== "top" && labelWidth && labelWidth > 0 ? `${labelWidth}px` : "auto",
11733
11740
  textAlign: labelPosition.value === "top" ? "left" : labelPosition.value
11734
11741
  },
11735
11742
  form.props.labelStyle,
11743
+ isNested.value && form.props.nestedLabelStyle,
11736
11744
  props.labelStyle
11737
11745
  ];
11738
11746
  });
@@ -11740,24 +11748,25 @@ const useFormItem = (expose) => {
11740
11748
  const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : form.props.labelWidth;
11741
11749
  return [
11742
11750
  {
11743
- marginLeft: !hasLabel.value && isNest.value ? 0 : labelWidth && labelWidth > 0 ? `${labelWidth}px` : "unset",
11744
- marginBottom: isNest.value && !isNestLast.value ? `20px` : 0
11751
+ marginLeft: labelPosition.value === "top" || !hasLabel.value && isNested.value ? 0 : labelWidth && labelWidth > 0 ? `${labelWidth}px` : "unset",
11752
+ marginBottom: isNested.value && !isNestedLast.value ? `20px` : 0
11745
11753
  },
11746
11754
  form.props.contentStyle,
11755
+ isNested.value && form.props.nestedContentStyle,
11747
11756
  props.contentStyle
11748
11757
  ];
11749
11758
  });
11750
11759
  const errorStyle = vue.computed(() => {
11751
- return [form.props.errorStyle, props.errorStyle];
11760
+ return [form.props.errorStyle, isNested.value && form.props.nestedErrorStyle, props.errorStyle];
11752
11761
  });
11753
11762
  const labelClass = vue.computed(() => {
11754
- return [form.props.labelClass, props.labelClass];
11763
+ return [form.props.labelClass, isNested.value && form.props.nestedLabelClass, props.labelClass];
11755
11764
  });
11756
11765
  const contentClass = vue.computed(() => {
11757
- return [form.props.contentClass, props.contentClass];
11766
+ return [form.props.contentClass, isNested.value && form.props.nestedContentClass, props.contentClass];
11758
11767
  });
11759
11768
  const errorClass = vue.computed(() => {
11760
- return [form.props.errorClass, props.errorClass];
11769
+ return [form.props.errorClass, isNested.value && form.props.nestedErrorClass, props.errorClass];
11761
11770
  });
11762
11771
  const isStyleless = vue.computed(() => {
11763
11772
  return props.styleless || form.props.styleless;
@@ -11894,7 +11903,7 @@ const useFormItem = (expose) => {
11894
11903
  vue.watch(
11895
11904
  () => formItem.fields?.length,
11896
11905
  async (v) => {
11897
- if (!isNest.value || !v) return isNestLast.value = false;
11906
+ if (!isNested.value || !v) return isNestedLast.value = false;
11898
11907
  const fields$ = [...vue.toRaw(formItem.fields)];
11899
11908
  const positions = await Promise.all(fields$.map((item) => item.exposed.getPosition()));
11900
11909
  const sortFields = fields$.toSorted((a, b) => {
@@ -11905,7 +11914,7 @@ const useFormItem = (expose) => {
11905
11914
  if (aPosition.top != bPosition.top) return aPosition.top - bPosition.top;
11906
11915
  return aPosition.left - bPosition.left;
11907
11916
  });
11908
- isNestLast.value = sortFields[sortFields.length - 1] === instance;
11917
+ isNestedLast.value = sortFields[sortFields.length - 1] === instance;
11909
11918
  }
11910
11919
  );
11911
11920
  expose({
@@ -11914,9 +11923,9 @@ const useFormItem = (expose) => {
11914
11923
  getPosition
11915
11924
  });
11916
11925
  return {
11917
- isNest,
11926
+ isNested,
11918
11927
  isStyleless,
11919
- isNestLast,
11928
+ isNestedLast,
11920
11929
  validateMessage,
11921
11930
  classes,
11922
11931
  labelStyle,
@@ -11943,7 +11952,7 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
11943
11952
  const it = useFormItem(expose);
11944
11953
  const {
11945
11954
  isStyleless,
11946
- isNest,
11955
+ isNested,
11947
11956
  classes,
11948
11957
  labelStyle,
11949
11958
  contentStyle,
@@ -11954,39 +11963,35 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
11954
11963
  showError,
11955
11964
  validateMessage
11956
11965
  } = it;
11957
- const {
11958
- label,
11959
- labelFor
11960
- } = props;
11961
11966
  const errorColorClass = 'vc-form-item__error';
11962
11967
  return () => {
11963
11968
  if (isStyleless.value) return [slots.default?.(), slots.error?.({
11964
11969
  show: showError.value,
11965
- nest: isNest.value,
11970
+ nested: isNested.value,
11966
11971
  message: validateMessage.value,
11967
11972
  class: [errorColorClass, ...errorClass.value],
11968
11973
  style: errorStyle.value
11969
11974
  })];
11970
11975
  return vue.createVNode("div", {
11971
11976
  "class": ['vc-form-item', classes.value]
11972
- }, [(label || slots.label) && vue.createVNode("div", {
11977
+ }, [(props.label || slots.label) && vue.createVNode("div", {
11973
11978
  "style": labelStyle.value,
11974
11979
  "class": ['vc-form-item__label', ...labelClass.value],
11975
- "for": labelFor
11976
- }, [vue.createVNode("label", null, [label || slots.label?.()])]), vue.createVNode("div", {
11980
+ "for": props.labelFor
11981
+ }, [vue.createVNode("label", null, [props.label || slots.label?.()])]), vue.createVNode("div", {
11977
11982
  "class": "vc-form-item__wrapper"
11978
11983
  }, [vue.createVNode("div", {
11979
11984
  "class": ['vc-form-item__content', ...contentClass.value],
11980
11985
  "style": contentStyle.value
11981
11986
  }, [slots.default?.(), slots.error ? slots.error({
11982
11987
  show: showError.value,
11983
- nest: isNest.value,
11988
+ nest: isNested.value,
11984
11989
  message: validateMessage.value,
11985
11990
  class: [errorColorClass, ...errorClass.value],
11986
11991
  style: errorStyle.value
11987
11992
  }) : vue.createVNode(TransitionFade, null, {
11988
11993
  default: () => [vue.withDirectives(vue.createVNode("div", {
11989
- "class": ['vc-form-item__tip', isNest.value ? 'is-nest' : '', errorColorClass, ...errorClass.value],
11994
+ "class": ['vc-form-item__tip', isNested.value ? 'is-nested' : '', errorColorClass, ...errorClass.value],
11990
11995
  "style": [errorStyle.value]
11991
11996
  }, [validateMessage.value]), [[vue.vShow, showError.value]])]
11992
11997
  })])])]);
@@ -12057,41 +12062,36 @@ const MFormItem = /* @__PURE__ */ vue.defineComponent({
12057
12062
  labelClass,
12058
12063
  contentClass,
12059
12064
  errorClass,
12060
- isNest,
12065
+ isNested,
12061
12066
  showError,
12062
12067
  validateMessage
12063
12068
  } = it;
12064
- const {
12065
- label,
12066
- labelFor,
12067
- showMessage
12068
- } = props;
12069
12069
  const errorColorClass = 'vcm-form-item__error';
12070
12070
  return () => {
12071
12071
  if (isStyleless.value) return [slots.default?.(), slots.error?.({
12072
12072
  show: showError.value,
12073
- nest: isNest.value,
12073
+ nested: isNested.value,
12074
12074
  message: validateMessage.value,
12075
12075
  class: [errorColorClass, ...errorClass.value],
12076
12076
  style: errorStyle.value
12077
12077
  })];
12078
12078
  return vue.createVNode("div", {
12079
12079
  "style": {
12080
- paddingLeft: `${isNest.value ? 0 : props.indent}px`
12080
+ paddingLeft: `${isNested.value ? 0 : props.indent}px`
12081
12081
  },
12082
12082
  "class": [classes.value, 'vcm-form-item']
12083
12083
  }, [vue.createVNode("div", {
12084
12084
  "class": "vcm-form-item__wrapper"
12085
12085
  }, [(props.label || slots.label) && vue.createVNode("label", {
12086
- "for": labelFor,
12086
+ "for": props.labelFor,
12087
12087
  "style": labelStyle.value,
12088
12088
  "class": ['vcm-form-item__label', ...labelClass.value]
12089
- }, [label || slots.label?.()]), vue.createVNode("div", {
12089
+ }, [props.label || slots.label?.()]), vue.createVNode("div", {
12090
12090
  "style": contentStyle.value,
12091
12091
  "class": ['vcm-form-item__content', ...contentClass.value]
12092
- }, [slots.default?.(), showMessage && showError.value && vue.createVNode("div", {
12092
+ }, [slots.default?.(), props.showMessage && showError.value && vue.createVNode("div", {
12093
12093
  "class": [{
12094
- 'is-nest': isNest.value
12094
+ 'is-nested': isNested.value
12095
12095
  }, errorColorClass, ...errorClass.value],
12096
12096
  "style": errorStyle.value
12097
12097
  }, [slots.error ? slots.error({
package/dist/index.d.ts CHANGED
@@ -1887,6 +1887,12 @@ labelStyle: (ObjectConstructor | StringConstructor)[];
1887
1887
  labelClass: (ObjectConstructor | StringConstructor)[];
1888
1888
  errorStyle: (ObjectConstructor | StringConstructor)[];
1889
1889
  errorClass: (ObjectConstructor | StringConstructor)[];
1890
+ nestedContentStyle: (ObjectConstructor | StringConstructor)[];
1891
+ nestedContentClass: (ObjectConstructor | StringConstructor)[];
1892
+ nestedLabelStyle: (ObjectConstructor | StringConstructor)[];
1893
+ nestedLabelClass: (ObjectConstructor | StringConstructor)[];
1894
+ nestedErrorStyle: (ObjectConstructor | StringConstructor)[];
1895
+ nestedErrorClass: (ObjectConstructor | StringConstructor)[];
1890
1896
  }>, () => VNode<RendererNode, RendererElement, {
1891
1897
  [key: string]: any;
1892
1898
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -1929,6 +1935,12 @@ labelStyle: (ObjectConstructor | StringConstructor)[];
1929
1935
  labelClass: (ObjectConstructor | StringConstructor)[];
1930
1936
  errorStyle: (ObjectConstructor | StringConstructor)[];
1931
1937
  errorClass: (ObjectConstructor | StringConstructor)[];
1938
+ nestedContentStyle: (ObjectConstructor | StringConstructor)[];
1939
+ nestedContentClass: (ObjectConstructor | StringConstructor)[];
1940
+ nestedLabelStyle: (ObjectConstructor | StringConstructor)[];
1941
+ nestedLabelClass: (ObjectConstructor | StringConstructor)[];
1942
+ nestedErrorStyle: (ObjectConstructor | StringConstructor)[];
1943
+ nestedErrorClass: (ObjectConstructor | StringConstructor)[];
1932
1944
  }>> & Readonly<{}>, {
1933
1945
  tag: string;
1934
1946
  styleless: boolean;
@@ -4753,6 +4765,12 @@ labelStyle: (ObjectConstructor | StringConstructor)[];
4753
4765
  labelClass: (ObjectConstructor | StringConstructor)[];
4754
4766
  errorStyle: (ObjectConstructor | StringConstructor)[];
4755
4767
  errorClass: (ObjectConstructor | StringConstructor)[];
4768
+ nestedContentStyle: (ObjectConstructor | StringConstructor)[];
4769
+ nestedContentClass: (ObjectConstructor | StringConstructor)[];
4770
+ nestedLabelStyle: (ObjectConstructor | StringConstructor)[];
4771
+ nestedLabelClass: (ObjectConstructor | StringConstructor)[];
4772
+ nestedErrorStyle: (ObjectConstructor | StringConstructor)[];
4773
+ nestedErrorClass: (ObjectConstructor | StringConstructor)[];
4756
4774
  }>, () => VNode<RendererNode, RendererElement, {
4757
4775
  [key: string]: any;
4758
4776
  }>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
@@ -4803,6 +4821,12 @@ labelStyle: (ObjectConstructor | StringConstructor)[];
4803
4821
  labelClass: (ObjectConstructor | StringConstructor)[];
4804
4822
  errorStyle: (ObjectConstructor | StringConstructor)[];
4805
4823
  errorClass: (ObjectConstructor | StringConstructor)[];
4824
+ nestedContentStyle: (ObjectConstructor | StringConstructor)[];
4825
+ nestedContentClass: (ObjectConstructor | StringConstructor)[];
4826
+ nestedLabelStyle: (ObjectConstructor | StringConstructor)[];
4827
+ nestedLabelClass: (ObjectConstructor | StringConstructor)[];
4828
+ nestedErrorStyle: (ObjectConstructor | StringConstructor)[];
4829
+ nestedErrorClass: (ObjectConstructor | StringConstructor)[];
4806
4830
  }>> & Readonly<{}>, {
4807
4831
  tag: string;
4808
4832
  border: boolean;
@@ -11916,6 +11940,12 @@ declare const props_3: {
11916
11940
  labelClass: (ObjectConstructor | StringConstructor)[];
11917
11941
  errorStyle: (ObjectConstructor | StringConstructor)[];
11918
11942
  errorClass: (ObjectConstructor | StringConstructor)[];
11943
+ nestedContentStyle: (ObjectConstructor | StringConstructor)[];
11944
+ nestedContentClass: (ObjectConstructor | StringConstructor)[];
11945
+ nestedLabelStyle: (ObjectConstructor | StringConstructor)[];
11946
+ nestedLabelClass: (ObjectConstructor | StringConstructor)[];
11947
+ nestedErrorStyle: (ObjectConstructor | StringConstructor)[];
11948
+ nestedErrorClass: (ObjectConstructor | StringConstructor)[];
11919
11949
  };
11920
11950
 
11921
11951
  declare type Props_4 = ExtractPropTypes<typeof props_4>;
@@ -19899,7 +19899,14 @@ var VcComponents = (function (exports, vue) {
19899
19899
  labelStyle: [Object, String],
19900
19900
  labelClass: [Object, String],
19901
19901
  errorStyle: [Object, String],
19902
- errorClass: [Object, String]
19902
+ errorClass: [Object, String],
19903
+ // 给nestFormItem统一注入
19904
+ nestedContentStyle: [Object, String],
19905
+ nestedContentClass: [Object, String],
19906
+ nestedLabelStyle: [Object, String],
19907
+ nestedLabelClass: [Object, String],
19908
+ nestedErrorStyle: [Object, String],
19909
+ nestedErrorClass: [Object, String]
19903
19910
  };
19904
19911
 
19905
19912
  const useForm = (expose, options = {}) => {
@@ -20251,31 +20258,32 @@ var VcComponents = (function (exports, vue) {
20251
20258
  });
20252
20259
  const classes = vue.computed(() => {
20253
20260
  return {
20254
- "is-require": isRequired.value && props.asterisk,
20261
+ "is-required": isRequired.value && props.asterisk,
20255
20262
  "is-error": validateState.value === "error",
20256
20263
  "is-validating": validateState.value === "validating",
20257
20264
  "is-inline": form.props.inline,
20258
- "is-nest": isNest.value,
20265
+ "is-nested": isNested.value,
20259
20266
  "is-alone": !props.showMessage,
20260
20267
  // 用于单独去除form-item的默认margin_bottom
20261
20268
  [`is-${labelPosition.value}`]: true
20262
20269
  };
20263
20270
  });
20264
- const isNest = vue.computed(() => {
20271
+ const isNested = vue.computed(() => {
20265
20272
  return !!formItem.change;
20266
20273
  });
20267
- const isNestLast = vue.ref(false);
20274
+ const isNestedLast = vue.ref(false);
20268
20275
  const hasLabel = vue.computed(() => {
20269
20276
  return !!props.label || slots.label;
20270
20277
  });
20271
20278
  const labelStyle = vue.computed(() => {
20272
- const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : isNest.value ? 0 : form.props.labelWidth;
20279
+ const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : isNested.value ? 0 : form.props.labelWidth;
20273
20280
  return [
20274
20281
  {
20275
20282
  width: labelPosition.value !== "top" && labelWidth && labelWidth > 0 ? `${labelWidth}px` : "auto",
20276
20283
  textAlign: labelPosition.value === "top" ? "left" : labelPosition.value
20277
20284
  },
20278
20285
  form.props.labelStyle,
20286
+ isNested.value && form.props.nestedLabelStyle,
20279
20287
  props.labelStyle
20280
20288
  ];
20281
20289
  });
@@ -20283,24 +20291,25 @@ var VcComponents = (function (exports, vue) {
20283
20291
  const labelWidth = props.labelWidth === 0 || props.labelWidth ? props.labelWidth : form.props.labelWidth;
20284
20292
  return [
20285
20293
  {
20286
- marginLeft: !hasLabel.value && isNest.value ? 0 : labelWidth && labelWidth > 0 ? `${labelWidth}px` : "unset",
20287
- marginBottom: isNest.value && !isNestLast.value ? `20px` : 0
20294
+ marginLeft: labelPosition.value === "top" || !hasLabel.value && isNested.value ? 0 : labelWidth && labelWidth > 0 ? `${labelWidth}px` : "unset",
20295
+ marginBottom: isNested.value && !isNestedLast.value ? `20px` : 0
20288
20296
  },
20289
20297
  form.props.contentStyle,
20298
+ isNested.value && form.props.nestedContentStyle,
20290
20299
  props.contentStyle
20291
20300
  ];
20292
20301
  });
20293
20302
  const errorStyle = vue.computed(() => {
20294
- return [form.props.errorStyle, props.errorStyle];
20303
+ return [form.props.errorStyle, isNested.value && form.props.nestedErrorStyle, props.errorStyle];
20295
20304
  });
20296
20305
  const labelClass = vue.computed(() => {
20297
- return [form.props.labelClass, props.labelClass];
20306
+ return [form.props.labelClass, isNested.value && form.props.nestedLabelClass, props.labelClass];
20298
20307
  });
20299
20308
  const contentClass = vue.computed(() => {
20300
- return [form.props.contentClass, props.contentClass];
20309
+ return [form.props.contentClass, isNested.value && form.props.nestedContentClass, props.contentClass];
20301
20310
  });
20302
20311
  const errorClass = vue.computed(() => {
20303
- return [form.props.errorClass, props.errorClass];
20312
+ return [form.props.errorClass, isNested.value && form.props.nestedErrorClass, props.errorClass];
20304
20313
  });
20305
20314
  const isStyleless = vue.computed(() => {
20306
20315
  return props.styleless || form.props.styleless;
@@ -20437,7 +20446,7 @@ var VcComponents = (function (exports, vue) {
20437
20446
  vue.watch(
20438
20447
  () => formItem.fields?.length,
20439
20448
  async (v) => {
20440
- if (!isNest.value || !v) return isNestLast.value = false;
20449
+ if (!isNested.value || !v) return isNestedLast.value = false;
20441
20450
  const fields$ = [...vue.toRaw(formItem.fields)];
20442
20451
  const positions = await Promise.all(fields$.map((item) => item.exposed.getPosition()));
20443
20452
  const sortFields = fields$.toSorted((a, b) => {
@@ -20448,7 +20457,7 @@ var VcComponents = (function (exports, vue) {
20448
20457
  if (aPosition.top != bPosition.top) return aPosition.top - bPosition.top;
20449
20458
  return aPosition.left - bPosition.left;
20450
20459
  });
20451
- isNestLast.value = sortFields[sortFields.length - 1] === instance;
20460
+ isNestedLast.value = sortFields[sortFields.length - 1] === instance;
20452
20461
  }
20453
20462
  );
20454
20463
  expose({
@@ -20457,9 +20466,9 @@ var VcComponents = (function (exports, vue) {
20457
20466
  getPosition
20458
20467
  });
20459
20468
  return {
20460
- isNest,
20469
+ isNested,
20461
20470
  isStyleless,
20462
- isNestLast,
20471
+ isNestedLast,
20463
20472
  validateMessage,
20464
20473
  classes,
20465
20474
  labelStyle,
@@ -20486,7 +20495,7 @@ var VcComponents = (function (exports, vue) {
20486
20495
  const it = useFormItem(expose);
20487
20496
  const {
20488
20497
  isStyleless,
20489
- isNest,
20498
+ isNested,
20490
20499
  classes,
20491
20500
  labelStyle,
20492
20501
  contentStyle,
@@ -20497,39 +20506,35 @@ var VcComponents = (function (exports, vue) {
20497
20506
  showError,
20498
20507
  validateMessage
20499
20508
  } = it;
20500
- const {
20501
- label,
20502
- labelFor
20503
- } = props;
20504
20509
  const errorColorClass = 'vc-form-item__error';
20505
20510
  return () => {
20506
20511
  if (isStyleless.value) return [slots.default?.(), slots.error?.({
20507
20512
  show: showError.value,
20508
- nest: isNest.value,
20513
+ nested: isNested.value,
20509
20514
  message: validateMessage.value,
20510
20515
  class: [errorColorClass, ...errorClass.value],
20511
20516
  style: errorStyle.value
20512
20517
  })];
20513
20518
  return vue.createVNode("div", {
20514
20519
  "class": ['vc-form-item', classes.value]
20515
- }, [(label || slots.label) && vue.createVNode("div", {
20520
+ }, [(props.label || slots.label) && vue.createVNode("div", {
20516
20521
  "style": labelStyle.value,
20517
20522
  "class": ['vc-form-item__label', ...labelClass.value],
20518
- "for": labelFor
20519
- }, [vue.createVNode("label", null, [label || slots.label?.()])]), vue.createVNode("div", {
20523
+ "for": props.labelFor
20524
+ }, [vue.createVNode("label", null, [props.label || slots.label?.()])]), vue.createVNode("div", {
20520
20525
  "class": "vc-form-item__wrapper"
20521
20526
  }, [vue.createVNode("div", {
20522
20527
  "class": ['vc-form-item__content', ...contentClass.value],
20523
20528
  "style": contentStyle.value
20524
20529
  }, [slots.default?.(), slots.error ? slots.error({
20525
20530
  show: showError.value,
20526
- nest: isNest.value,
20531
+ nest: isNested.value,
20527
20532
  message: validateMessage.value,
20528
20533
  class: [errorColorClass, ...errorClass.value],
20529
20534
  style: errorStyle.value
20530
20535
  }) : vue.createVNode(TransitionFade, null, {
20531
20536
  default: () => [vue.withDirectives(vue.createVNode("div", {
20532
- "class": ['vc-form-item__tip', isNest.value ? 'is-nest' : '', errorColorClass, ...errorClass.value],
20537
+ "class": ['vc-form-item__tip', isNested.value ? 'is-nested' : '', errorColorClass, ...errorClass.value],
20533
20538
  "style": [errorStyle.value]
20534
20539
  }, [validateMessage.value]), [[vue.vShow, showError.value]])]
20535
20540
  })])])]);
@@ -20600,41 +20605,36 @@ var VcComponents = (function (exports, vue) {
20600
20605
  labelClass,
20601
20606
  contentClass,
20602
20607
  errorClass,
20603
- isNest,
20608
+ isNested,
20604
20609
  showError,
20605
20610
  validateMessage
20606
20611
  } = it;
20607
- const {
20608
- label,
20609
- labelFor,
20610
- showMessage
20611
- } = props;
20612
20612
  const errorColorClass = 'vcm-form-item__error';
20613
20613
  return () => {
20614
20614
  if (isStyleless.value) return [slots.default?.(), slots.error?.({
20615
20615
  show: showError.value,
20616
- nest: isNest.value,
20616
+ nested: isNested.value,
20617
20617
  message: validateMessage.value,
20618
20618
  class: [errorColorClass, ...errorClass.value],
20619
20619
  style: errorStyle.value
20620
20620
  })];
20621
20621
  return vue.createVNode("div", {
20622
20622
  "style": {
20623
- paddingLeft: `${isNest.value ? 0 : props.indent}px`
20623
+ paddingLeft: `${isNested.value ? 0 : props.indent}px`
20624
20624
  },
20625
20625
  "class": [classes.value, 'vcm-form-item']
20626
20626
  }, [vue.createVNode("div", {
20627
20627
  "class": "vcm-form-item__wrapper"
20628
20628
  }, [(props.label || slots.label) && vue.createVNode("label", {
20629
- "for": labelFor,
20629
+ "for": props.labelFor,
20630
20630
  "style": labelStyle.value,
20631
20631
  "class": ['vcm-form-item__label', ...labelClass.value]
20632
- }, [label || slots.label?.()]), vue.createVNode("div", {
20632
+ }, [props.label || slots.label?.()]), vue.createVNode("div", {
20633
20633
  "style": contentStyle.value,
20634
20634
  "class": ['vcm-form-item__content', ...contentClass.value]
20635
- }, [slots.default?.(), showMessage && showError.value && vue.createVNode("div", {
20635
+ }, [slots.default?.(), props.showMessage && showError.value && vue.createVNode("div", {
20636
20636
  "class": [{
20637
- 'is-nest': isNest.value
20637
+ 'is-nested': isNested.value
20638
20638
  }, errorColorClass, ...errorClass.value],
20639
20639
  "style": errorStyle.value
20640
20640
  }, [slots.error ? slots.error({