我是歌谣 这里是歌谣的前端笔记小屋 想加入前端巅峰人才交流群私信我
import { List, SimpleListConfigurable,TextField,SimpleList } from 'react-admin';
export const RConfigList = () => (
<List resource="t_geyao_person">
<SimpleListConfigurable
primaryText={record => record.name}
secondaryText={record => `${record.name} views`}
tertiaryText={record => record.name}
linkType={record => record.status ? "edit" : "show"}
rowStyle={record => ({ backgroundColor: record.id >= 2 ? '#efe' : 'white' })}
/>
</List>
);
运行结果