import { List, Datagrid, ReferenceArrayField, SingleFieldList, TextField, DateField, BooleanField, NumberField, ChipField } from 'react-admin'; export const RSingleFieldList = () => ( <List resource="t_geyao_person"> <Datagrid> <TextField source='id'></TextField> <TextField source='name'></TextField> <TextField source='sex'></TextField> <TextField source='salary'></TextField> <BooleanField source='status'></BooleanField> <ReferenceArrayField label="Tags" reference="name" source="name"> {/* <SingleFieldList> <ChipField source="name" /> </SingleFieldList> */} </ReferenceArrayField> </Datagrid> </List> )
运行结果