当我从 React 管理员导出页面时。 REferenceField 的值没有出现在我的 csv 文件中。它只显示了 Id
的值const PostListActions = (props) => (
<TopToolbar>
<SelectColumnsButton />
<CreateButton />
<FilterButton />
<ImportButton {...props} />
<ExportButton />
</TopToolbar>
)
export const GalleryList = () => (
<List actions={<PostListActions />} >
<DatagridConfigurable >
<TextField source="id" />
<TextField source="nom" />
<DateField source="createdAt" />
<DateField source="updatedAt" />
<ReferenceField source="paintId" reference="paintings" />
<EditButton/>
</DatagridConfigurable>
</List>
);
```[csv.file](https://i.stack.imgur.com/VT6bB.png)[My page react admin](https://i.stack.imgur.com/Xaoa6.png)
I didn't find a solution[Export Button](https://i.stack.imgur.com/VDfD1.png)
你在使用ReferenceField时出错,应该是这样的:
<ReferenceField source="paintId" reference="paintings" />
<TextField source="you_field" />
</ReferenceField>