Browse Source

fix(a-form):fixed use props.name instead window.name (#6460)

pull/6490/head
xihaoshangdi 2 years ago committed by GitHub
parent
commit
634adae1c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/form/FormItem.tsx

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

Loading…
Cancel
Save