前端项目实战柒拾react-admin+material ui-踩坑-List需要Datagrid中hover设置写法
我是歌谣 放弃很容易 但是坚持一定很酷 微信公众号关注前端小歌谣学习前端知识
import React from "react";
import { List, Datagrid, TextField, EditButton,BooleanField } from 'react-admin';
export const DatagridBasicList = () => (
<List resource="t_geyao_person">
<Datagrid hover={false}>
<TextField source="id" />
<TextField source='name'></TextField>
<TextField source='sex'></TextField>
<TextField source='salary'></TextField>
<BooleanField source='status'></BooleanField>
<EditButton />
</Datagrid>
</List>
);
hover控制移上去不高亮