fix(form): expose formModel,fix #533

This commit is contained in:
Vben 2021-04-26 20:59:41 +08:00
parent 5fae2b02ea
commit 7c41c8673c

View File

@ -76,7 +76,7 @@ export function useFormEvents({
const { componentProps } = schema || {};
let _props = componentProps as any;
if (typeof componentProps === 'function') {
_props = _props();
_props = _props({ formModel });
}
formModel[key] = value ? (_props?.valueFormat ? value : dateUtil(value)) : null;
}