mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +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, {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user