我想创建一个包含一个新的组件Inputs,并Fields从aor在使用它<SimpleForm>,并<TabbedForm>如下图所示:
const WrapperComp = () => {
return (
<div>
<TextFieldLabel muiTheme={muiTheme}>Title Example</TextFieldLabel>,
<TextInput source="status"/>,
<TextField source="status"/>
</div>
)
}
<SimpleForm>
<WrapperComp />
</SimpleForm>
但我明白了Uncaught Error: The TextInput component wasn't called within a redux-form <Field>. Did you decorate it and forget to add the addField prop to your component?。
任何帮助,将不胜感激。谢谢!