Skip to content

Commit 7c41c86

Browse files
committed
fix(form): expose formModel,fix #533
1 parent 5fae2b0 commit 7c41c86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Form/src/hooks/useFormEvents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function useFormEvents({
7676
const { componentProps } = schema || {};
7777
let _props = componentProps as any;
7878
if (typeof componentProps === 'function') {
79-
_props = _props();
79+
_props = _props({ formModel });
8080
}
8181
formModel[key] = value ? (_props?.valueFormat ? value : dateUtil(value)) : null;
8282
}

0 commit comments

Comments
 (0)