@tmagic/form 1.0.0 → 1.0.1

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.
@@ -830,7 +830,9 @@ const _sfc_main$q = defineComponent({
830
830
  if (typeof props.config.addable === "function") {
831
831
  return props.config.addable(mForm, {
832
832
  model: props.model[props.name],
833
- formValue: mForm?.values
833
+ formValue: mForm?.values,
834
+ prop: props.prop,
835
+ config: props.config
834
836
  });
835
837
  }
836
838
  return typeof props.config.addable === "undefined" ? true : props.config.addable;
@@ -847,7 +849,9 @@ const _sfc_main$q = defineComponent({
847
849
  if (typeof props.config.defaultAdd === "function") {
848
850
  initValues = await props.config.defaultAdd(mForm, {
849
851
  model: props.model[props.name],
850
- formValue: mForm?.values
852
+ formValue: mForm?.values,
853
+ prop: props.prop,
854
+ config: props.config
851
855
  });
852
856
  } else if (props.config.defaultAdd) {
853
857
  initValues = props.config.defaultAdd;