From fceffce5cdc2cb4aabc7d17b3405bc91ad0d7402 Mon Sep 17 00:00:00 2001 From: "zude.hzd" Date: Sun, 27 Nov 2022 19:23:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9Erender=20notFoundComp?= =?UTF-8?q?onent=E3=80=81faultComponent=20engineConfig=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/designer/src/builtin-simulator/host.ts | 8 ++++++++ packages/react-simulator-renderer/src/renderer-view.tsx | 2 ++ 2 files changed, 10 insertions(+) diff --git a/packages/designer/src/builtin-simulator/host.ts b/packages/designer/src/builtin-simulator/host.ts index 1e0ccd6ab..edb823002 100644 --- a/packages/designer/src/builtin-simulator/host.ts +++ b/packages/designer/src/builtin-simulator/host.ts @@ -258,6 +258,14 @@ export class BuiltinSimulatorHost implements ISimulatorHost documentInstance.getNode(id) as Node} rendererName="PageRenderer" thisRequiredInJSE={host.thisRequiredInJSE} + notFoundComponent={host.notFoundComponent} + faultComponent={host.faultComponent} customCreateElement={(Component: any, props: any, children: any) => { const { __id, ...viewProps } = props; viewProps.componentId = __id;