mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-24 04:10:20 +08:00
fix(form): expose formModel,fix #533
This commit is contained in:
parent
5fae2b02ea
commit
7c41c8673c
@ -76,7 +76,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();
|
_props = _props({ formModel });
|
||||||
}
|
}
|
||||||
formModel[key] = value ? (_props?.valueFormat ? value : dateUtil(value)) : null;
|
formModel[key] = value ? (_props?.valueFormat ? value : dateUtil(value)) : null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user