From 9f283723f1bd341fa9a634b50ee6a88050c7d251 Mon Sep 17 00:00:00 2001 From: lijisanxiong <1518062161@qq.com> Date: Wed, 16 Jul 2025 20:44:05 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E9=9D=A2=E6=9D=BF=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=84=9A=E6=9C=AC=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + src/panel-component/panel-button/panel-button.controller.ts | 1 + src/panel-component/panel-button/panel-button.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9464c653..23438275 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - 新增预置虚拟表格插件(VIRTUALIZED_TABLE) - 看板部件新增简单模式 +- 面板按钮点击事件添加默认脚本参数 ### Changed diff --git a/src/panel-component/panel-button/panel-button.controller.ts b/src/panel-component/panel-button/panel-button.controller.ts index 10d3eb28..bbc11c5c 100644 --- a/src/panel-component/panel-button/panel-button.controller.ts +++ b/src/panel-component/panel-button/panel-button.controller.ts @@ -145,6 +145,7 @@ export class PanelButtonController extends PanelItemController { view: this.panel.view, event, noWaitRoute: true, + ctrl: this.panel, }, this.model.appId, ); diff --git a/src/panel-component/panel-button/panel-button.tsx b/src/panel-component/panel-button/panel-button.tsx index 2f2e8f1f..8ae23540 100644 --- a/src/panel-component/panel-button/panel-button.tsx +++ b/src/panel-component/panel-button/panel-button.tsx @@ -71,7 +71,7 @@ export const PanelButton = defineComponent({ try { state.loading = true; await props.controller.onActionClick(event); - props.controller.onClick(); + props.controller.onClick(event); } finally { state.loading = false; } -- Gitee