import { List, SimpleList,TextField } from 'react-admin'; export const RSimpleStandard = () => ( <List resource="t_geyao_person"> <SimpleList primaryText={<TextField source="id" />} secondaryText={record => `${record.name} views`} tertiaryText={record => record.name} linkType={record => record.status ? "edit" : "show"} rowStyle={record => ({ backgroundColor: record.nb_views >= 500 ? '#efe' : 'white' })} /> </List> );
运行结果