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 };