import React from 'react' import { ListBase,Title,ListToolbar,Pagination,Datagrid,TextField,EditButton,DeleteButton,BooleanField } from 'react-admin' import { Card } from '@mui/material'; const MyList = ({ children, actions, filters, title, ...props }) => ( <ListBase {...props}> <Title title={title}/> <ListToolbar filters={filters} actions={actions} /> <Card> {children} </Card> <Pagination /> </ListBase> ); const RListBaseList = (props) => { return <MyList resource="t_geyao_person" exporter={false}> <Datagrid> <TextField source='id'></TextField> <TextField source='name'></TextField> <TextField source='sex'></TextField> <TextField source='salary'></TextField> <BooleanField source='status'></BooleanField> <EditButton></EditButton> <DeleteButton></DeleteButton> </Datagrid> </MyList> } export default RListBaseList