From b1ee03e41bc2cc9416b6fbbedb95eb3a92829790 Mon Sep 17 00:00:00 2001 From: lvxiaojiao Date: Thu, 28 Nov 2024 19:02:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=8F=98=E9=87=8F=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=9D=A2=E6=9D=BF=E6=8C=82=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../actionsPanelPlugins/componentActionsPanel/setValue.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx b/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx index 1fc901caa..8fd72d3c2 100644 --- a/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx +++ b/packages/amis-editor/src/renderer/event-control/actionsPanelPlugins/componentActionsPanel/setValue.tsx @@ -116,7 +116,8 @@ registerActionPanel('setValue', { '__containerType' ], descDetail: (info: any, context: any, props: any) => { - const variableManager = info?.variableManager; + const variableManager = props.manager?.variableManager; + return (
{/* 只要path字段存在就认为是应用变量赋值,无论是否有值 */} @@ -124,7 +125,7 @@ registerActionPanel('setValue', { <> 设置变量 - {variableManager.getNameByPath(info.args.path)} + {variableManager?.getNameByPath(info.args.path)} 的数据