diff --git a/packages/components/src/form-dialog/index.tsx b/packages/components/src/form-dialog/index.tsx index 7c3ec35..cf00329 100644 --- a/packages/components/src/form-dialog/index.tsx +++ b/packages/components/src/form-dialog/index.tsx @@ -20,7 +20,7 @@ import { const PORTAL_TARGET_NAME = 'FormDialogFooter' -type FormDialogRenderer = VNode | ((form: Form) => VNode) +type FormDialogRenderer = VNode | ((ctx: { form: Form }) => VNode) type ModalTitle = string | number | Component | VNode | (() => VNode) diff --git a/packages/components/src/form-drawer/index.tsx b/packages/components/src/form-drawer/index.tsx index da0ac5b..1b8d352 100644 --- a/packages/components/src/form-drawer/index.tsx +++ b/packages/components/src/form-drawer/index.tsx @@ -20,7 +20,7 @@ import { const PORTAL_TARGET_NAME = 'FormDrawerFooter' -type FormDrawerRenderer = VNode | ((form: Form) => VNode) +type FormDrawerRenderer = VNode | ((ctx: { form: Form }) => VNode) type DrawerTitle = string | number | Component | VNode | (() => VNode)