const StyleFirstPage = (props: any) => {
const [dataList,setDataList]=useState<any>()
const { data, isLoading } = useListContext();
useEffect(() => {
props.handleInfo(data)
}, [isLoading,data]);
return (
<>
<Datagrid rowClick='edit'>
<TextField source='code' />
<TextField source='style_name' />
<EditButton></EditButton>
</Datagrid>
</>
)
}
前端项目实战贰佰壹拾肆react-admin+material ui-react-admin-List包裹可以使用useListContext
最新推荐文章于 2024-11-02 15:48:17 发布