React Admin:Referencearrayfield没有将数据传递给儿童
我正在尝试从媒体ID列表中显示产品媒体的数据杂志。使用ReferenceArrief Field组件,调用了媒体数据提供商的GetMany()函数。提取效果很好。
但是,获取的数据未由Coreencearrayfield组件传递给其子datagrid。
我真的不明白这里发生的事情,可能是一个错误。
<ReferenceArrayField label="Médias" reference="mediaResource" source="mediasIds">
<DataGrid>
<UrlField source="finalUrl" label="Miniature" target="_blank" />
<TextField source="type" />
</DataGrid>
</ReferenceArrayField>
I am trying to display a datagrid of media of a product from a list of media ids. Using ReferenceArrayField component, the getMany() function of the media data provider is called. The fetching is working fine.
However, the data fetched is not passed by the ReferenceArrayField component to its child DataGrid.
I really don't get what is happening here, might be a bug.
<ReferenceArrayField label="Médias" reference="mediaResource" source="mediasIds">
<DataGrid>
<UrlField source="finalUrl" label="Miniature" target="_blank" />
<TextField source="type" />
</DataGrid>
</ReferenceArrayField>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论