From 5d56feaead30b53610e55ea9c40d08fc056907bd Mon Sep 17 00:00:00 2001 From: jianglinjun Date: Sun, 18 Aug 2024 03:10:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0dasboard=E6=8E=A5?= =?UTF-8?q?=E6=94=B6onCustomEvent=E4=BA=8B=E4=BB=B6=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E8=A7=A6=E5=8F=91=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/control/dashboard/dashboard.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/control/dashboard/dashboard.tsx b/src/control/dashboard/dashboard.tsx index fb69f5972..bbc3861a0 100644 --- a/src/control/dashboard/dashboard.tsx +++ b/src/control/dashboard/dashboard.tsx @@ -65,6 +65,9 @@ function renderPortletByType( { ...commonProps, key: model.id, + onCustomEvent: (args: IData) => { + c.triggerViewLogic({ data: [args] }); + }, }, { default: () => @@ -79,6 +82,9 @@ function renderPortletByType( key: refreshTagObj[model.id!]?.refreshtag ? refreshTagObj[model.id!].refreshtag : model.id, + onCustomEvent: (args: IData) => { + c.triggerViewLogic({ data: [args] }); + }, }); } -- Gitee