From 634adae1c3280c9f4eda2f985f50cb2cc428f000 Mon Sep 17 00:00:00 2001 From: xihaoshangdi <34018316+xihaoshangdi@users.noreply.github.com> Date: Fri, 21 Apr 2023 14:01:57 +0800 Subject: [PATCH] fix(a-form):fixed use props.name instead window.name (#6460) --- components/form/FormItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/FormItem.tsx b/components/form/FormItem.tsx index 64b2fa29b..c49cea65e 100644 --- a/components/form/FormItem.tsx +++ b/components/form/FormItem.tsx @@ -208,7 +208,7 @@ export default defineComponent({ if (typeof props.label === 'string') { variables.label = props.label; } else if (props.name) { - variables.label = String(name); + variables.label = String(props.name); } if (props.messageVariables) { variables = { ...variables, ...props.messageVariables };