import { List, BooleanField, TextField, Datagrid, TextInput, BooleanInput } from 'react-admin'; import IconEvent from '@mui/icons-material/Event'; import { Typography } from '@mui/material'; const postFilters = [ <TextInput label="Search" source="q" alwaysOn />, <TextInput label="Title" source="title" defaultValue="Hello, World!" />, <BooleanInput source="is_published" alwaysOn />, ]; export const RFiltersList = () => { return (<List resource="t_geyao_person" filters={postFilters} filterDefaultValues={{ is_published: true }}> <Datagrid> <TextField source='id'></TextField> <TextField source='name'></TextField> <TextField source='sex'></TextField> <TextField source='salary'></TextField> <BooleanField source='status'></BooleanField> </Datagrid> </List>) }