我是歌谣 这里是歌谣的前端笔记小屋 想加入前端巅峰人才交流群私信我
import React from 'react'
import { InfiniteList,Datagrid,TextField,EditButton,DeleteButton,BooleanField } from 'react-admin'
const RInfiniteList = () => {
return <InfiniteList 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>
</InfiniteList>
}
export default RInfiniteList
无限滚动