import { FileField } from 'react-admin';
<FileField source="url" title="title" />
// renders the record { id: 123, url: 'doc.pdf', title: 'Presentation' } as
<div>
<a href="doc.pdf" title="Presentation">Presentation</a>
</div>
文件预览
import { FileField } from 'react-admin';
<FileField source="url" title="title" />
// renders the record { id: 123, url: 'doc.pdf', title: 'Presentation' } as
<div>
<a href="doc.pdf" title="Presentation">Presentation</a>
</div>
文件预览