Skip to content

Commit 634adae

Browse files
authored
fix(a-form):fixed use props.name instead window.name (#6460)
1 parent 9564261 commit 634adae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/FormItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export default defineComponent({
208208
if (typeof props.label === 'string') {
209209
variables.label = props.label;
210210
} else if (props.name) {
211-
variables.label = String(name);
211+
variables.label = String(props.name);
212212
}
213213
if (props.messageVariables) {
214214
variables = { ...variables, ...props.messageVariables };

0 commit comments

Comments
 (0)