我是歌谣 这里是歌谣的前端笔记小屋 想加入前端巅峰人才交流群私信我
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 RAnyList = () => {
return (<List title={"geyao"} sort={{ field: 'published_at', order: 'DESC' }} resource="t_geyao_person" queryOptions={{ meta: { foo: 'bar' } }}>
<Datagrid>
<TextField source='id'></TextField>
<TextField source='name'></TextField>
<TextField source='sex'></TextField>
<TextField source='salary'></TextField>
<BooleanField source='status'></BooleanField>
</Datagrid>
</List>)
}