{typeList && typeList.map((item: any, index: any) => (
<Paper >
<ListM component="div">
<ListItem button style={typeId == item.id ? { background: '#ccc' } : {}} onClick={() => handleSelectType(item.id)}>
<ListItemText>{item.name}</ListItemText>
</ListItem>
</ListM>
</Paper>
))}
运行结果