reactjs - ReferenceInput 未归档选择组件
问题描述
在 React-admin 中,我试图实现一个参考输入。我看到列表 api 调用已进行并且响应可用。但是 selectinput 组件仍然为空。我将不胜感激任何帮助。表源列是notes。参考资源是注释:
<Create actions={<CoaActions />} title="New Coa" {...props}>
<SimpleForm variant="standard">
<TextInput source="code" />
<TextInput multiline source="title" />
<TextInput source="iscashbook" />
<TextInput source="isbankbook" />
<ReferenceInput label="Notes" source="notes" resource="notes" reference="notes/list">
<SelectInput optionText="name" />
</ReferenceInput>
<TextInput source="obal" />
<BooleanInput source="active" />
</SimpleForm>
</Create>
解决方案
从参考输入中删除资源道具
推荐阅读
- java - 如何在不同的 Java 文件中调用方法?
- angular - Angular CDK - 将自定义覆盖容器类注入组件会创建它的新实例
- java - 继承容器(Vector)时如何覆盖Intellij Idea的调试窗口中的调试变量格式
- http - IPNS,“哈希”下没有名为“xxxx”的链接
- python - 为什么这个 Python while 循环仅在 2 次迭代后终止?
- java - 修改对象时出现 java.util.ConcurrentModificationException 错误
- api - 尝试发布到 API 时,我在 Flutter 中收到“状态”:400 错误
- python - 如何做像pygame.Rect这样的python类?
- flutter - 如何在 mac OS bigSur 上将 sudo 终端退出到普通终端?- 颤振
- javascript - 即使在我的终端中显示发布后,Github 页面仍显示我的反应应用程序的构建错误