From 803334dc0e600f219d514c27461aa7663b7a6653 Mon Sep 17 00:00:00 2001 From: hiyuki <674883329@qq.com> Date: Tue, 22 Oct 2024 19:29:07 +0800 Subject: [PATCH] fix tsc build --- .../lib/runtime/components/react/mpx-web-view.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-plugin/lib/runtime/components/react/mpx-web-view.tsx b/packages/webpack-plugin/lib/runtime/components/react/mpx-web-view.tsx index 382be389b..3d70eb11e 100644 --- a/packages/webpack-plugin/lib/runtime/components/react/mpx-web-view.tsx +++ b/packages/webpack-plugin/lib/runtime/components/react/mpx-web-view.tsx @@ -20,7 +20,7 @@ type CommonCallbackEvent = { } interface WebViewProps { - src: string + src?: string bindmessage?: (event: OnMessageCallbackEvent) => void bindload?: (event: CommonCallbackEvent) => void binderror?: (event: CommonCallbackEvent) => void