From 62c7edfd6bbd82cc79966ce9e9565f83fc3cff97 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 18 Dec 2022 22:16:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=8B=86=E5=88=86webview=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E4=B8=8E=E9=9D=9E=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 并迁移部分插件iframe到Webview组件 --- .../com.msgbyte.snapdrop/src/index.tsx | 6 +++++- .../src/group/GroupCustomWebPanelRender.tsx | 5 +++-- .../src/group/GroupWebPanelRender.tsx | 6 ++++-- client/web/src/components/Webview.tsx | 20 ++++++++++++------- client/web/src/plugin/component/index.tsx | 2 +- 5 files changed, 26 insertions(+), 13 deletions(-) diff --git a/client/web/plugins/com.msgbyte.snapdrop/src/index.tsx b/client/web/plugins/com.msgbyte.snapdrop/src/index.tsx index 3b7b06ba..29d4c62f 100644 --- a/client/web/plugins/com.msgbyte.snapdrop/src/index.tsx +++ b/client/web/plugins/com.msgbyte.snapdrop/src/index.tsx @@ -1,4 +1,5 @@ import { regCustomPanel } from '@capital/common'; +import { WebviewKeepAlive } from '@capital/component'; import React from 'react'; import { Translate } from './translate'; @@ -10,6 +11,9 @@ regCustomPanel({ label: Translate.panelName, icon: 'mdi:radio-tower', render: () => ( -