Skip to content

Commit

Permalink
fix(element): remove Formily namepsace usecase
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Aug 26, 2021
1 parent 0dba9f2 commit 0cc9067
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/element/src/form-dialog/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/element/src/form-drawer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 0cc9067

Please sign in to comment.