From fcc2684a34a5909c27bd49af5a30a331e83120c3 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 16 Dec 2022 20:29:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0webview=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=B0=81=E8=A3=85=EF=BC=8C=E7=BB=9F=E4=B8=80webview?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/group/GroupWebPanelRender.tsx | 3 ++- client/web/src/components/Webview.tsx | 17 +++++++++++++++++ client/web/src/plugin/component/index.tsx | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 client/web/src/components/Webview.tsx diff --git a/client/web/plugins/com.msgbyte.webview/src/group/GroupWebPanelRender.tsx b/client/web/plugins/com.msgbyte.webview/src/group/GroupWebPanelRender.tsx index fa99bb8b..5336cc3e 100644 --- a/client/web/plugins/com.msgbyte.webview/src/group/GroupWebPanelRender.tsx +++ b/client/web/plugins/com.msgbyte.webview/src/group/GroupWebPanelRender.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Translate } from '../translate'; +import { Webview } from '@capital/component'; const GroupWebPanelRender: React.FC<{ panelInfo: any }> = (props) => { const panelInfo = props.panelInfo; @@ -11,7 +12,7 @@ const GroupWebPanelRender: React.FC<{ panelInfo: any }> = (props) => { const url = panelInfo?.meta?.url; return ( -