mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 10:33:50 +08:00
fix(useFormEvents): 修复setFieldsValue 方法设置完值后,函数 componentProps丢失formActionType 的bug (#3301)
Co-authored-by: gavin-james <meaganlindesy1258@gmail.com>
This commit is contained in:
parent
a9530877c0
commit
82671d0750
@ -123,7 +123,7 @@ export function useFormEvents({
|
|||||||
const { componentProps } = schema || {};
|
const { componentProps } = schema || {};
|
||||||
let _props = componentProps as any;
|
let _props = componentProps as any;
|
||||||
if (typeof componentProps === 'function') {
|
if (typeof componentProps === 'function') {
|
||||||
_props = _props({ formModel: unref(formModel) });
|
_props = _props({ formModel: unref(formModel), formActionType: unref(formElRef) });
|
||||||
}
|
}
|
||||||
|
|
||||||
const constructValue = tryConstructArray(key, values) || tryConstructObject(key, values);
|
const constructValue = tryConstructArray(key, values) || tryConstructObject(key, values);
|
||||||
|
Loading…
Reference in New Issue
Block a user