mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-26 19:46:42 +08:00
feat(form): groundlist 函数配置增加prop/config两个变量
This commit is contained in:
parent
ecd80cb4a4
commit
3de29e0316
@ -80,6 +80,8 @@ export default defineComponent({
|
|||||||
return props.config.addable(mForm, {
|
return props.config.addable(mForm, {
|
||||||
model: props.model[props.name],
|
model: props.model[props.name],
|
||||||
formValue: mForm?.values,
|
formValue: mForm?.values,
|
||||||
|
prop: props.prop,
|
||||||
|
config: props.config,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,6 +103,8 @@ export default defineComponent({
|
|||||||
initValues = await props.config.defaultAdd(mForm, {
|
initValues = await props.config.defaultAdd(mForm, {
|
||||||
model: props.model[props.name],
|
model: props.model[props.name],
|
||||||
formValue: mForm?.values,
|
formValue: mForm?.values,
|
||||||
|
prop: props.prop,
|
||||||
|
config: props.config,
|
||||||
});
|
});
|
||||||
} else if (props.config.defaultAdd) {
|
} else if (props.config.defaultAdd) {
|
||||||
initValues = props.config.defaultAdd;
|
initValues = props.config.defaultAdd;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user