@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.
@@ -833,7 +833,9 @@
833
833
  if (typeof props.config.addable === "function") {
834
834
  return props.config.addable(mForm, {
835
835
  model: props.model[props.name],
836
- formValue: mForm?.values
836
+ formValue: mForm?.values,
837
+ prop: props.prop,
838
+ config: props.config
837
839
  });
838
840
  }
839
841
  return typeof props.config.addable === "undefined" ? true : props.config.addable;
@@ -850,7 +852,9 @@
850
852
  if (typeof props.config.defaultAdd === "function") {
851
853
  initValues = await props.config.defaultAdd(mForm, {
852
854
  model: props.model[props.name],
853
- formValue: mForm?.values
855
+ formValue: mForm?.values,
856
+ prop: props.prop,
857
+ config: props.config
854
858
  });
855
859
  } else if (props.config.defaultAdd) {
856
860
  initValues = props.config.defaultAdd;