Browse Source

fix: add key in form item for schema-form component

master
yangpei 4 years ago
parent
commit
bb626c327d
  1. 2
      packages/core/src/components/schemaForm/index.tsx

2
packages/core/src/components/schemaForm/index.tsx

@ -126,7 +126,7 @@ const SchemaForm: React.FC<IProps> = (props) => {
ele = <RangePicker />;
}
return (
<FormItem label={obj.title} name={key}>
<FormItem label={obj.title} name={key} key={key}>
{ele}
</FormItem>
);

Loading…
Cancel
Save