Commit 7c41c8673c2fd5f2cf946a3ae84d8688578f9754
1 parent
5fae2b02
fix(form): expose formModel,fix #533
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Form/src/hooks/useFormEvents.ts
... | ... | @@ -76,7 +76,7 @@ export function useFormEvents({ |
76 | 76 | const { componentProps } = schema || {}; |
77 | 77 | let _props = componentProps as any; |
78 | 78 | if (typeof componentProps === 'function') { |
79 | - _props = _props(); | |
79 | + _props = _props({ formModel }); | |
80 | 80 | } |
81 | 81 | formModel[key] = value ? (_props?.valueFormat ? value : dateUtil(value)) : null; |
82 | 82 | } | ... | ... |