From ffd02808777e6ee40df5cf4d29d3bae711c23e4b Mon Sep 17 00:00:00 2001 From: Gene Date: Thu, 16 May 2024 20:42:10 -0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=8B=E4=BB=B6=E7=BB=91=E5=AE=9AJSX?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E6=97=B6=EF=BC=8C=E5=87=BD=E6=95=B0=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=8A=A5=E9=94=99=20(#441)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 绑定事件时保留函数名,避免JSX转换出错 --- packages/settings/events/src/components/BindEventsDialog.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/settings/events/src/components/BindEventsDialog.vue b/packages/settings/events/src/components/BindEventsDialog.vue index 4026953..e7fbc83 100644 --- a/packages/settings/events/src/components/BindEventsDialog.vue +++ b/packages/settings/events/src/components/BindEventsDialog.vue @@ -352,8 +352,8 @@ export default { saveMethod?.({ name: state.bindMethodInfo.name, content: state.enableExtraParams - ? `function (eventArgs,${formatParams}) ${functionBody}` - : `function (${formatParams}) ${functionBody}` + ? `function ${state.bindMethodInfo.name}(eventArgs,${formatParams}) ${functionBody}` + : `function ${state.bindMethodInfo.name}(${formatParams}) ${functionBody}` }) activePagePlugin()