@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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.0.1",
3
3
  "name": "@tmagic/form",
4
4
  "sideEffects": [
5
5
  "dist/*",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@element-plus/icons": "0.0.11",
36
- "@tmagic/utils": "1.0.0",
36
+ "@tmagic/utils": "1.0.1",
37
37
  "element-plus": "^2.2.0",
38
38
  "lodash-es": "^4.17.21",
39
39
  "moment": "^2.29.2",
@@ -80,6 +80,8 @@ export default defineComponent({
80
80
  return props.config.addable(mForm, {
81
81
  model: props.model[props.name],
82
82
  formValue: mForm?.values,
83
+ prop: props.prop,
84
+ config: props.config,
83
85
  });
84
86
  }
85
87
 
@@ -101,6 +103,8 @@ export default defineComponent({
101
103
  initValues = await props.config.defaultAdd(mForm, {
102
104
  model: props.model[props.name],
103
105
  formValue: mForm?.values,
106
+ prop: props.prop,
107
+ config: props.config,
104
108
  });
105
109
  } else if (props.config.defaultAdd) {
106
110
  initValues = props.config.defaultAdd;