From 927c0497c701fdbebf2bef88aae37aa19223a609 Mon Sep 17 00:00:00 2001 From: archer <26474133+over58@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:58:35 +0800 Subject: [PATCH 1/3] Update portal.tsx fix: portId --- packages/components/src/__builtins__/portal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/__builtins__/portal.tsx b/packages/components/src/__builtins__/portal.tsx index c01dc3e..f99ea2e 100644 --- a/packages/components/src/__builtins__/portal.tsx +++ b/packages/components/src/__builtins__/portal.tsx @@ -21,7 +21,7 @@ export const createPortalProvider = (id: string | symbol) => { {props.children} {() => { - if (portalId!) return <> + if (!portalId) return <> const portal = PortalMap.get(portalId) if (portal) return createPortal(portal, document.body) return <> From 0c64fc98b077009f41f7f557aa141adab8613d4f Mon Sep 17 00:00:00 2001 From: archer <26474133+over58@users.noreply.github.com> Date: Thu, 31 Jul 2025 18:00:27 +0800 Subject: [PATCH 2/3] Update FormDialog.zh-CN.md docs: update test case --- docs/components/FormDialog.zh-CN.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/components/FormDialog.zh-CN.md b/docs/components/FormDialog.zh-CN.md index 8cd1b54..6dfc578 100644 --- a/docs/components/FormDialog.zh-CN.md +++ b/docs/components/FormDialog.zh-CN.md @@ -167,10 +167,10 @@ const schema = { export default () => { return ( - + + .open({ + initialValues: { + aaa: '123', + }, + }) + .then(console.log) + }} + > + Click me to open the form + + ) } ```