From c3abf107462f9b8cad69b9b0c7eb0aa56b33851d Mon Sep 17 00:00:00 2001 From: chenos Date: Fri, 20 Aug 2021 22:50:12 +0800 Subject: [PATCH] bugfix --- packages/client/package.json | 6 +- packages/client/src/schemas/action/index.tsx | 91 ++++++++------- packages/client/src/schemas/kanban/index.tsx | 2 +- yarn.lock | 114 +++++++++---------- 4 files changed, 109 insertions(+), 104 deletions(-) diff --git a/packages/client/package.json b/packages/client/package.json index c41d78917..664625a81 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -21,9 +21,9 @@ "@antv/g2plot": "^2.3.27", "@dnd-kit/core": "^3.1.1", "@dnd-kit/sortable": "^4.0.0", - "@formily/antd": "^2.0.0-rc.2", - "@formily/core": "^2.0.0-rc.2", - "@formily/react": "^2.0.0-rc.2", + "@formily/antd": "^2.0.0-rc.3", + "@formily/core": "^2.0.0-rc.3", + "@formily/react": "^2.0.0-rc.3", "@monaco-editor/react": "^4.2.1", "ahooks": "^2.10.2", "axios": "^0.21.1", diff --git a/packages/client/src/schemas/action/index.tsx b/packages/client/src/schemas/action/index.tsx index dda75825d..61d51cafe 100644 --- a/packages/client/src/schemas/action/index.tsx +++ b/packages/client/src/schemas/action/index.tsx @@ -238,49 +238,54 @@ Action.Drawer = observer((props: any) => { const isFormDecorator = schema['x-decorator'] === 'Form'; console.log('Action.Modal.field', schema['x-read-pretty']); return ( - - - - - ) - } - {...others} - visible={visible} - onClose={async (e) => { - props.onClose && (await props.onClose(e)); - runCancel && (await runCancel()); - setVisible(false); - }} - > - {props.children} - + <> + {createPortal( + + + + + ) + } + {...others} + visible={visible} + onClose={async (e) => { + props.onClose && (await props.onClose(e)); + runCancel && (await runCancel()); + setVisible(false); + }} + > + {props.children} + , + document.body, + )} + ); }); diff --git a/packages/client/src/schemas/kanban/index.tsx b/packages/client/src/schemas/kanban/index.tsx index a7d3c6bc6..89c8056a4 100644 --- a/packages/client/src/schemas/kanban/index.tsx +++ b/packages/client/src/schemas/kanban/index.tsx @@ -225,7 +225,7 @@ const InternalKanban = observer((props: any) => { }} >