diff --git a/packages/element/src/form-dialog/index.ts b/packages/element/src/form-dialog/index.ts index 847e1a0be40..44518e5defa 100644 --- a/packages/element/src/form-dialog/index.ts +++ b/packages/element/src/form-dialog/index.ts @@ -335,7 +335,7 @@ export function FormDialog( } return formDialog }, - open: (props: Formily.Core.Types.IFormProps) => { + open: (props: IFormProps) => { if (env.promise) return env.promise env.promise = new Promise(async (resolve, reject) => { diff --git a/packages/element/src/form-drawer/index.ts b/packages/element/src/form-drawer/index.ts index f9983390389..2964a72eece 100644 --- a/packages/element/src/form-drawer/index.ts +++ b/packages/element/src/form-drawer/index.ts @@ -340,7 +340,7 @@ export function FormDrawer( } return formDrawer }, - open: (props: Formily.Core.Types.IFormProps) => { + open: (props: IFormProps) => { if (env.promise) return env.promise env.promise = new Promise(async (resolve, reject) => {