1
0
mirror of synced 2026-03-24 03:38:34 +08:00

feat(form): groundlist 函数配置增加prop/config两个变量

This commit is contained in:
roymondchen
2022-06-27 12:01:41 +08:00
committed by jia000
parent ecd80cb4a4
commit 3de29e0316

View File

@@ -80,6 +80,8 @@ export default defineComponent({
return props.config.addable(mForm, {
model: props.model[props.name],
formValue: mForm?.values,
prop: props.prop,
config: props.config,
});
}
@@ -101,6 +103,8 @@ export default defineComponent({
initValues = await props.config.defaultAdd(mForm, {
model: props.model[props.name],
formValue: mForm?.values,
prop: props.prop,
config: props.config,
});
} else if (props.config.defaultAdd) {
initValues = props.config.defaultAdd;