Skip to content

Commit

Permalink
fix(form): expose formModel,fix #533
Browse files Browse the repository at this point in the history
  • Loading branch information
anncwb committed Apr 26, 2021
1 parent 5fae2b0 commit 7c41c86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/src/hooks/useFormEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7c41c86

Please sign in to comment.