前端项目实战壹佰零玖react-admin+material ui-踩坑-react-admin之title

我是歌谣 这里是歌谣的前端笔记小屋 想加入前端巅峰人才交流群私信我

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>)
}

posted @ 2023-07-29 19:48  前端导师歌谣  阅读(10)  评论(0)    收藏  举报  来源