import { ReferenceInput, AutocompleteInput } from 'react-admin';
<ReferenceInput source="company_id" reference="companies">
<AutocompleteInput label="Employer" />
</ReferenceInput>
选择器得显示方式
import { ReferenceInput, AutocompleteInput } from 'react-admin';
<ReferenceInput source="company_id" reference="companies">
<AutocompleteInput label="Employer" />
</ReferenceInput>
选择器得显示方式