import * as React from 'react'; import { useRecordContext, List, Datagrid, TextField, DateField,BooleanField } from 'react-admin'; const FullNameField = () => { const record = useRecordContext(); return <span>{record.id}-{record.name}</span>; } export const DatagridChildrenList = () => ( <List resource="t_geyao_person"> <Datagrid rowclick="edit"> <FullNameField source="name" label="data" /> <TextField source="id" /> <TextField source='name'></TextField> <TextField source='sex'></TextField> <TextField source='salary'></TextField> <BooleanField source='status'></BooleanField> </Datagrid> </List> );