feat(form): select options函数配置添加prop参数

This commit is contained in:
roymondchen 2022-03-31 16:48:00 +08:00 committed by khuntoriia
parent 6a46f98766
commit 7e216e72f2
2 changed files with 2 additions and 0 deletions

View File

@ -289,6 +289,7 @@ export default defineComponent({
Promise.resolve(
props.config.options(mForm, {
model: props.model,
prop: props.prop,
formValues: mForm?.values,
formValue: mForm?.values,
}),

View File

@ -188,6 +188,7 @@ type SelectOptionFunction = (
mForm: FormState | undefined,
data: {
model: any;
prop?: string;
formValues: any;
formValue: any;
},